sbin/hammer: Check S_ISREG() if not block device
commit586115aa05cd0ed9b4aca7bbafa624b775c27347
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 11 Apr 2017 19:23:07 +0000 (11 22:23 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 11 Apr 2017 21:10:57 +0000 (12 00:10 +0300)
tree1c4dc77f681967b61ba093f863290e3d9fa8e975
parent06a1d31fe1e13bc69789a3ebb767957fa9271217
sbin/hammer: Check S_ISREG() if not block device

ioctl(DIOCGPART) failure doesn't mean path is a regfile.
sbin/hammer/ondisk.c