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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to