git: sys/vfs/hammer: Don't reblock when volume to delete is empty
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Aug 8 13:47:18 PDT 2015
commit 1e94cea68de46fe62ada9e33cbf25441c2329200
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Tue Aug 4 05:39:14 2015 +0900
sys/vfs/hammer: Don't reblock when volume to delete is empty
hammer_ioc_volume_del() needs to reblock filesystem only
when the volume hammer volume-del is trying to remove is
not empty. If it's empty (means the volume's blockmap has
nothing other than layer2 big-block in non-root volume)
it can be removed right away.
The way it always reblocks on hammer volume-del is also
counter intuitive since not everyone expects this command
to do extra effort to delete it when it's not empty, and
force one to wait for reblock to finish.
Summary of changes:
sbin/hammer/hammer.8 | 4 ++
sys/vfs/hammer/hammer_volume.c | 88 +++++++++++++++++++++++++++++-------------
2 files changed, 66 insertions(+), 26 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1e94cea68de46fe62ada9e33cbf25441c2329200
--
DragonFly BSD source repository
More information about the Commits
mailing list