linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] btrfs-progs: subvol: fix del --commit-after
@ 2017-09-26  5:44 Misono, Tomohiro
  2017-09-26  5:45 ` [PATCH 1/4] btrfs-progs: move get_fsid() to util.c Misono, Tomohiro
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Misono, Tomohiro @ 2017-09-26  5:44 UTC (permalink / raw)
  To: linux-btrfs

Fix subvol del --commit-after to work properly:
 - SYNC ioctl will be issued even when last delete is failed
 - SYNC ioctl will be issued on each file system only once in the end

To achieve this, each deleted subvol's (parent's) fsid is checked each
time. If the fsid is seen for the first time, its fd will be kept in order
to issue SYNC ioctl in the end.

There already exists get_fsid() in cmds-property.c and seen_fsid which
keeps fsid in hush function in cmds-filesystem.c. First three patches
make them to common functions and last one is the main part.

Tomohiro Misono (4):
  btrfs-progs: move get_fsid() to util.c
  btrfs-progs: move seen_fsid to util.c
  btrfs-progs: change seen_fsid to hold fd and DIR*
  btrfs-progs: subvol: fix subvol del --commit-after

 cmds-filesystem.c |  88 +++------------------------------------------
 cmds-property.c   |  30 ----------------
 cmds-subvolume.c  |  77 ++++++++++++++++++++++++++++-----------
 utils.c           | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 utils.h           |  15 ++++++++
 5 files changed, 181 insertions(+), 134 deletions(-)

-- 
2.9.5


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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26  5:44 [PATCH 0/4] btrfs-progs: subvol: fix del --commit-after Misono, Tomohiro
2017-09-26  5:45 ` [PATCH 1/4] btrfs-progs: move get_fsid() to util.c Misono, Tomohiro
2017-09-26  5:45 ` [PATCH 2/4] btrfs-progs: move seen_fsid " Misono, Tomohiro
2017-09-26  5:45 ` [PATCH 3/4] btrfs-progs: change seen_fsid to hold fd and DIR* Misono, Tomohiro
2017-09-26 13:08   ` Qu Wenruo
2017-09-27  0:42     ` Misono, Tomohiro
2017-09-27  0:52       ` Qu Wenruo
2017-09-26  5:46 ` [PATCH 4/4] btrfs-progs: subvol: fix subvol del --commit-after Misono, Tomohiro
2017-09-26 13:16   ` Qu Wenruo
2017-09-26 13:19 ` [PATCH 0/4] btrfs-progs: subvol: fix " 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).