makefs(8) proposed changes [repost from fs@]
John-Mark Gurney
jmg at funkthat.com
Tue Oct 15 17:04:04 UTC 2013
Sean Bruno wrote this message on Tue, Oct 15, 2013 at 09:07 -0700:
> Is this patch going to break non "device" makefs calls? e.g. if I want
> to create an image file and not use a loopback device?
If the image file is zero bytes, then yes, it will break it... as the
read will return a short value (possibly zero) ... Why not add some
error checking and if the read doesn't read enough, write the
remaining bytes? If there is a failure from the read, the operation
should fail...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
More information about the freebsd-embedded
mailing list