Bug 229920 - fsck_ffs(8) exit code on error is 0
Summary: fsck_ffs(8) exit code on error is 0
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-21 08:31 UTC by Peter Holm
Modified: 2018-08-12 14:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Holm freebsd_committer 2018-07-21 08:31:34 UTC
$ cat bug.sh
#!/bin/sh

uname -a
[ -c /dev/md5 ] && mdconfig -d -u 5
mdconfig -t vnode -f /tmp/diskimage -u 5
fsck_ffs -fy /dev/md5; echo "fsck_ffs exit status: $?"
$ ./bug.sh
FreeBSD t2.osted.lan 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r336575: Sat Jul 21 09:21:38 CEST 2018     pho@t2.osted.lan:/usr/src/sys/amd64/compile/PHO  amd64
** /dev/md5
cannot alloc 301741175033823240 bytes for inphead

***** FILE SYSTEM STILL DIRTY *****
fsck_ffs exit status: 0
$