search for: ca71c4d

Displaying 2 results from an estimated 2 matches for "ca71c4d".

2015 Oct 27
1
[PATCHv2] Added xfs support to vfs_minimum_size.
...vice); extern int xfs_set_label (const char *device, const char *label); +extern int64_t xfs_minimum_size (const char *path); /*-- debug-bmap.c --*/ extern 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...
2015 Oct 27
1
[PATCHv3] Added btrfs support to vfs_minimum_size.
...uid (const char *device, const char *uuid); extern int btrfs_set_uuid_random (const char *device); +extern int64_t btrfs_minimum_size (const char *path); /*-- in ntfs.c --*/ extern char *ntfs_get_label (const char *device); diff --git a/daemon/fs-min-size.c b/daemon/fs-min-size.c index 4f93f8c..ca71c4d 100644 --- a/daemon/fs-min-size.c +++ b/daemon/fs-min-size.c @@ -25,12 +25,37 @@ #include "daemon.h" #include "actions.h" +static char* +get_mount_point (const char *device) +{ + CLEANUP_FREE_STRING_LIST char **mountpoints = do_mountpoints(); + size_t i; + char *path; + +...