makefs(8) proposed changes [repost from fs@]

Sean Bruno sean_bruno at yahoo.com
Tue Oct 15 17:18:32 UTC 2013


On Tue, 2013-10-15 at 10:04 -0700, John-Mark Gurney wrote:
> 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...
> 

yep, sounds good.  

does this "proof of concept" code seem to make sense to you?

sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20131015/62967fc2/attachment.sig>


More information about the freebsd-embedded mailing list