usr.sbin/makefs/hammer2: Properly support block device for image creation
commit764bf12e00c840fa36ebb916d29aea76b7bd9537
authorTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 1 Dec 2023 08:01:23 +0000 (1 00:01 -0800)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 1 Dec 2023 09:37:52 +0000 (1 01:37 -0800)
treeb50a8de75ea1340f352537f8fbb25285a8052ff7
parent096d2ac46cce3c1c16ee3e09ca2526d921cbf0c5
usr.sbin/makefs/hammer2: Properly support block device for image creation

Unlike regular file image, block device image creation fails
if estimated image size exceeds the device size.

Sparse file option is ignored. The block device blocks aren't
zero cleared.
usr.sbin/makefs/hammer2.c
usr.sbin/makefs/hammer2/hammer2_ondisk.c