Re: [PATCH] btrfs-progs: add options to sync filesystem after subvol delete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






If the command with sync option finishes succesfully, the subvolume(s)
deletion status is safely stored on the media.


+	if (sync_mode == 1) {
+		res = ioctl(fd, BTRFS_IOC_SYNC);
+		if (res < 0) {
+			fprintf(stderr,
+				"ERROR: unable to sync after '%s': %s\n",
+				path, strerror(e));
+			ret = 1;
+		}
+	}
+

generalized sync isn't too viable option in all production environment
as it would disturb the steady state performance in some environment.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux