Hi,
In data martedì 30 giugno 2015 19:23:08, Chen Hanxiao ha scritto:
> +int
> +btrfs_set_uuid (const char *device, const char *uuid)
> +{
> + CLEANUP_FREE char *err = NULL;
> + int r;
> + int has_uuid_opts = test_btrfstune_uuid_opt ();
> +
> + if (has_uuid_opts <= 0) {
> + reply_with_error_errno (ENOTSUP, "btrfs filesystems' UUID cannot be
> changed");
> + return -1;
> + }
Forgot one thing here: you can use a NOT_SUPPORTED(-1, "btrfs ...") macro here.
--
Pino Toscano
_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs