summaryrefslogtreecommitdiff
path: root/btrfsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfsctl.c')
-rw-r--r--btrfsctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/btrfsctl.c b/btrfsctl.c
index e90c6fc5..7e7e79b5 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -51,6 +51,7 @@ void print_usage(void)
printf("\t-r [+-]size[gkm] resize the FS\n");
printf("\t-A device scans the device for a Btrfs filesystem\n");
printf("\t-a scans all devices for Btrfs filesystems\n");
+ printf("\t-c forces a single FS sync\n");
exit(1);
}
@@ -115,6 +116,8 @@ int main(int ac, char **av)
exit(1);
}
command = BTRFS_IOC_RESIZE;
+ } else if (strcmp(av[i], "-c") == 0) {
+ command = BTRFS_IOC_SYNC;
}
}
if (command == 0) {