search for: btrfs_minimum_size

Displaying 10 results from an estimated 10 matches for "btrfs_minimum_size".

2015 Oct 27
1
[PATCHv3] Added btrfs support to vfs_minimum_size.
...result; + + r = commandr (&out, &err, str_btrfs, "--help", NULL); + + if (r == -1) { + reply_with_error ("btrfs: %s", err); + return -1; + } + + if (strstr (out, cmd_pattern) == NULL) + result = 0; + else + result = 1; + + return result; +} + +int64_t +btrfs_minimum_size (const char *path) +{ + CLEANUP_FREE char *err = NULL, *out = NULL; + int64_t ret = 0; + int r; + int min_size_supported = test_btrfs_min_dev_size (); + + if (min_size_supported == -1) + return -1; + else if (min_size_supported == 0) + NOT_SUPPORTED (-1, "'btrfs inspect-interna...
2015 Oct 22
2
[PATCH] Added btrfs support for vfs_min_size.
...ot;; + + int r = commandr (&out, &err, str_btrfs, "--help", NULL); + + if (r == -1) { + reply_with_error ("btrfs: %s", err); + return -1; + } + + if (strstr (out, cmd_pattern) == NULL) + result = 0; + else + result = 1; + + return result; +} + +int64_t +btrfs_minimum_size (const char *path) +{ + CLEANUP_FREE char *err = NULL, *out = NULL; + int64_t ret = 0; + int min_size_supported = test_btrfs_min_dev_size (); + if (min_size_supported == -1) + return -1; + else if (min_size_supported == 0) + NOT_SUPPORTED (-1, "'btrfs inspect-internal min-dev-si...
2015 Oct 23
0
Re: [PATCH] Added btrfs support for vfs_min_size.
...of the code. > + if (r == -1) { > + reply_with_error ("btrfs: %s", err); > + return -1; > + } > + > + if (strstr (out, cmd_pattern) == NULL) > + result = 0; > + else > + result = 1; > + > + return result; > +} > > +int64_t > +btrfs_minimum_size (const char *path) > +{ > + CLEANUP_FREE char *err = NULL, *out = NULL; > + int64_t ret = 0; > + int min_size_supported = test_btrfs_min_dev_size (); > + if (min_size_supported == -1) > + return -1; > + else if (min_size_supported == 0) > + NOT_SUPPORTED (-1, &quo...
2015 Oct 23
1
[PATCHv2] Added btrfs support for vfs_min_size.
...result; + + r = commandr (&out, &err, str_btrfs, "--help", NULL); + + if (r == -1) { + reply_with_error ("btrfs: %s", err); + return -1; + } + + if (strstr (out, cmd_pattern) == NULL) + result = 0; + else + result = 1; + + return result; +} + +int64_t +btrfs_minimum_size (const char *path) +{ + CLEANUP_FREE char *err = NULL, *out = NULL; + int64_t ret = 0; + int r; + int min_size_supported = test_btrfs_min_dev_size (); + + if (min_size_supported == -1) + return -1; + else if (min_size_supported == 0) + NOT_SUPPORTED (-1, "'btrfs inspect-interna...
2015 Oct 27
1
[PATCHv2] Added xfs support to vfs_minimum_size.
...rn char *debug_bmap (const char *subcmd, size_t argc, char *const *const argv); diff --git a/daemon/fs-min-size.c b/daemon/fs-min-size.c index ca71c4d..ba0f739 100644 --- a/daemon/fs-min-size.c +++ b/daemon/fs-min-size.c @@ -73,6 +73,13 @@ do_vfs_minimum_size (const mountable_t *mountable) r = btrfs_minimum_size (path); } + else if (STREQ (vfs_type, "xfs")) { + CLEANUP_FREE char *path = get_mount_point (mountable->device); + if (path == NULL) + return -1; + r = xfs_minimum_size (path); + } + else NOT_SUPPORTED (-1, "don't know how to get minimum size of ...
2015 Oct 24
3
[PATCH] Added xfs support for vfs_min_size.
...rn char *debug_bmap (const char *subcmd, size_t argc, char *const *const argv); diff --git a/daemon/fs-min-size.c b/daemon/fs-min-size.c index e43237b..432e04f 100644 --- a/daemon/fs-min-size.c +++ b/daemon/fs-min-size.c @@ -64,6 +64,13 @@ do_vfs_minimum_size (const mountable_t *mountable) r = btrfs_minimum_size (path); } + else if (STREQ (vfs_type, "xfs")) { + CLEANUP_FREE char *path = get_mount_point (mountable->device); + if (path == NULL) + return -1; + r = xfs_minimum_size (path); + } + else NOT_SUPPORTED (-1, "don't know how to get minimum size of ...
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...oid) if (result != -1) return result; - r = commandr (&out, &err, str_btrfs, "--help", NULL); + r = commandr (&out, &err, "btrfs", "--help", NULL); if (r == -1) { reply_with_error ("btrfs: %s", err); @@ -2340,7 +2333,7 @@ btrfs_minimum_size (const char *path) return -1; } - r = command (&out, &err, str_btrfs, "inspect-internal", + r = command (&out, &err, "btrfs", "inspect-internal", "min-dev-size", buf, NULL); if (r == -1) { diff --git a/daemon/c...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...oid) if (result != -1) return result; - r = commandr (&out, &err, str_btrfs, "--help", NULL); + r = commandr (&out, &err, "btrfs", "--help", NULL); if (r == -1) { reply_with_error ("btrfs: %s", err); @@ -2340,7 +2336,7 @@ btrfs_minimum_size (const char *path) return -1; } - r = command (&out, &err, str_btrfs, "inspect-internal", + r = command (&out, &err, "btrfs", "inspect-internal", "min-dev-size", buf, NULL); if (r == -1) { diff --git a/daemon/c...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.