linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs-progs: suggestion of removing --commit-after option of subvol delete
@ 2017-09-19  7:50 Misono, Tomohiro
  2017-09-19  8:31 ` Qu Wenruo
  2017-09-19 14:48 ` David Sterba
  0 siblings, 2 replies; 9+ messages in thread
From: Misono, Tomohiro @ 2017-09-19  7:50 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I read the code of "subvolume delete" and found that --commit-after option is
not working well.

Since it issues BTRFS_IOC_START/WAIT_SYNC to the last fd (of directory
containing the last deleted subvolume),
1. sync operation affects only the last fd's filesystem.
   ("subvolume delete" can take multiple subvolumes on different filesystems.)
2. if the last delete action fails to open the path (fd == -1),
   SYNC is not issued at all.

One solution is to keep every fd for deleted subvolumes, but I think it takes
too much cost. Since we can just use "btrfs filesystem sync" after delete if
needed, I think it is ok to remove --comit-after option.

Regards,
Tomohiro Misono
(misono.tomohiro@jp.fujitsu.com)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-21  2:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19  7:50 btrfs-progs: suggestion of removing --commit-after option of subvol delete Misono, Tomohiro
2017-09-19  8:31 ` Qu Wenruo
2017-09-19 14:48 ` David Sterba
2017-09-20  0:01   ` Misono, Tomohiro
2017-09-20  0:22   ` Qu Wenruo
2017-09-20 14:03     ` David Sterba
2017-09-20 14:21       ` Qu Wenruo
2017-09-21  2:49         ` Misono, Tomohiro
2017-09-21  2:52           ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).