]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve error handling: bail out if one of the files scheduled
authorsobomax <sobomax@FreeBSD.org>
Mon, 25 Feb 2019 23:45:36 +0000 (23:45 +0000)
committersobomax <sobomax@FreeBSD.org>
Mon, 25 Feb 2019 23:45:36 +0000 (23:45 +0000)
commitcecf085528aee220f87d2603ecc961317ececa26
tree1416456435aa70f6b0f92caad644c0316d10f086
parent174d6db527f42518b37886feea3267cf118faad6
Improve error handling: bail out if one of the files scheduled
to go to the FS image we are making cannot be read (e.g. EPERM).
Current behaviour when we issue waring but still proceeed and
return success is definitely not correct: masking out error
condition as well as making a slighly inconsistent FS where
attempt to access the file in question ends up in EBADF. See
linked DR for details.

MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18584
usr.sbin/makefs/ffs.c