sbin/hammer: Add assertion to ensure not to clear modified buffer
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 24 Mar 2016 10:20:29 +0000 (19:20 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 27 Mar 2016 15:43:22 +0000 (00:43 +0900)
commitf1833f81bd066ffb692453e7ea9ef259dd209535
tree85a13be344ffbba1a67af544dbf1f25442c60c6f
parentac7bbfe04beb69d9bf912e8f27e9fe9c7b445916
sbin/hammer: Add assertion to ensure not to clear modified buffer

get_buffer(isnew=1) should have an assertion here before it
zero clears ondisk buffer. If the buffer is modified but not
written back, get_buffer(isnew=1) will screw up the volume.
sbin/hammer/ondisk.c