btrfs-progs: fi sync: make it silent by default

Report only errors returned by the ioctl.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-03-31 18:58:39 +02:00
parent 12234d0202
commit b005ca0249

View file

@ -927,7 +927,6 @@ static int cmd_filesystem_sync(int argc, char **argv)
if (fd < 0) if (fd < 0)
return 1; return 1;
printf("FSSync '%s'\n", path);
res = ioctl(fd, BTRFS_IOC_SYNC); res = ioctl(fd, BTRFS_IOC_SYNC);
e = errno; e = errno;
close_file_or_dir(fd, dirstream); close_file_or_dir(fd, dirstream);