sys/vfs/hammer: Check ronly when overwriting volume header
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 18 Aug 2015 10:11:04 +0000 (19:11 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 22 Aug 2015 15:48:28 +0000 (00:48 +0900)
commit0b818f293c44a0b45af4fa6aaae7a6b80baafa3d
treea2bca92a1492f443abe6923d0559b4955168a23c
parentc54975d55ebb13f3c51c0eb21f91dd43ecbfbd33
sys/vfs/hammer: Check ronly when overwriting volume header

Check readonly mount before overwriting volume header
with non-NULL data on load/unload.

(hammer volume-add|del ioctls which are the only cases
with non-NULL data do have readonly mount check before
load/unload, so there isn't any issue without ronly==0
but the check should be done here too)
sys/vfs/hammer/hammer_ondisk.c