sbin/hammer: Allow any volume to be stripped by strip command
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 13 Apr 2017 18:56:00 +0000 (21:56 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 13 Apr 2017 21:35:50 +0000 (00:35 +0300)
commit8b6688a481ea13fef18f5cbeb6b86bc6632c3cd2
tree0a42df728bd27434b8f684973efb00d0286c9f9b
parent6f3c8414f4d4746c8d9d9e6f46f7af3eac34f36c
sbin/hammer: Allow any volume to be stripped by strip command

hammer strip should be able to strip each volume independently whether
all volumes that consist filesystem are available or not. It makes no
sense to require all volumes when the purpose of command is to destroy
them, even though that's necessary to go through the whole process.

If root volume is missing or root volume has incomplete offset format,
layer1/2 won't be erased, but just header part.
sbin/hammer/cmd_strip.c
sbin/hammer/hammer.c