search for: cec3c4e47

Displaying 3 results from an estimated 3 matches for "cec3c4e47".

2020 Feb 26
1
[PATCH] filesystems: fix size reporting for filesystems
...e. In case mounting fails, fall back to the previous method, which is still a good value in the majority of the cases. Thanks to: Erik Skultety. --- cat/filesystems.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cat/filesystems.c b/cat/filesystems.c index cec3c4e47..2b95d3112 100644 --- a/cat/filesystems.c +++ b/cat/filesystems.c @@ -508,7 +508,23 @@ do_output_filesystems (void) guestfs_pop_error_handler (g); if (!device || !subvolume) { - size = guestfs_blockdev_getsize64 (g, fses[i]); + /* Try mounting and stating the device....
2020 Feb 13
0
[PATCH v3 1/1] tools: add '--blocksize' option for C-based tools
...} else @@ -232,6 +239,7 @@ main (int argc, char *argv[]) usage (EXIT_FAILURE); CHECK_OPTION_format_consumed; + CHECK_OPTION_blocksize_consumed; /* User must have specified some drives. */ if (drvs == NULL) { diff --git a/cat/filesystems.c b/cat/filesystems.c index 74e994169..cec3c4e47 100644 --- a/cat/filesystems.c +++ b/cat/filesystems.c @@ -104,6 +104,8 @@ usage (int status) " --all Display everything\n" " --blkdevs|--block-devices\n" " Display block devices\n" +...
2020 Feb 13
2
[PATCH v3 0/1] tools: add '--blocksize' option for C-based tools
From: Nikolay Ivanets <stenavin@gmail.com> This patch depends on changes in 'common' sub-module posted here: https://www.redhat.com/archives/libguestfs/2020-February/msg00150.html v3 fixes issue found during code review: - options now appear in alphabetical order v2: Almost the same as v1 except '--blocksize' option description is moved into a common submodule (similar to