freebsd-dev/sbin
Xin LI 8f0931174a Be more careful when checking superblock. We have already checked
whether fs_bsize is larger than MINBSIZE, which is larger than the
value that is used to compared with fs_bsize, the sizeof fs, so the
check followed, will be always true.

By inspecting the code and some old commit log, I believe that the
check must be that *fs_sbsize* is larger than sizeof fs.  We round
up the size to nearest dev_bsize, as the smallest accepted fs_sbsize,
personally, I think this can be even changed to equal, because this
number is mostly an invariant in file systems.

With this check, fsck_ffs(8) will be more picky and has better
chance rejecting bad first superblock rather than referring to bad
value it supplied, thus gives better chance for it to check the
filesystem carefully.
2008-02-26 03:03:17 +00:00
..
adjkerntz If not compiled for debugging, redirect standard input/output/error 2006-10-23 10:48:19 +00:00
atacontrol Recognize CFA devices using either identification method. 2007-12-16 21:19:07 +00:00
atm Disconnect netatm from the build as it is not MPSAFE and relies on 2007-07-14 21:49:24 +00:00
badsect Expand *n't contractions. 2005-02-13 22:25:33 +00:00
bsdlabel Allow bsdlabel to operate on labels that have at most 26 partitions 2007-12-09 22:58:49 +00:00
camcontrol Add SCSI READ CAPACITY support to camcontrol. The new 'readcap' subcommand 2007-09-08 20:24:12 +00:00
ccdconfig Fix markup and some typos. 2006-04-14 09:20:25 +00:00
clri Use an intermediate pointer to avoid strict alias check warnings 2007-11-20 01:55:37 +00:00
comcontrol Sort sections. 2005-01-18 10:09:38 +00:00
conscontrol Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
ddb Minor formatting tweaks. 2007-12-26 12:20:19 +00:00
devd Minor initialization change to not trigger bogus gcc warning about 2007-12-21 01:00:04 +00:00
devfs - I forgot to bump a date. 2006-11-05 20:12:32 +00:00
dhclient During PREINIT, when giving the interface the address 0.0.0.0, do it as an 2008-01-21 23:54:57 +00:00
dmesg Avoid moving onto a new line while testing if there is a syslog priority 2006-02-27 19:13:47 +00:00
dump (bread): For a read that is contained entirely within a block, never copy 2007-04-05 20:31:23 +00:00
dumpfs Replace incomprehensive description of -m by much clearer text from OpenBSD, 2007-05-12 22:35:22 +00:00
dumpon Whitespace and style nits. 2006-10-31 22:36:49 +00:00
fdisk Add Apple HFS+ (0xAF) MBR partition type identificator. 2007-05-06 18:48:30 +00:00
fdisk_pc98 Another merging from sbin/fdisk/fdisk.8. 2007-05-10 12:33:00 +00:00
ffsinfo Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
fsck Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
fsck_ffs Be more careful when checking superblock. We have already checked 2008-02-26 03:03:17 +00:00
fsck_msdosfs Spot two more bugs WRT adherence to the local prompt style. 2008-01-31 13:22:13 +00:00
fsdb Update after function renames. 2006-10-31 22:07:29 +00:00
fsirand Avoid casts as lvalues. 2004-07-28 05:59:22 +00:00
gbde Remove temporary files when there are no longer needed. 2007-04-06 11:16:11 +00:00
geom - Update geom(8) to explain that GEOM_LIBRARY_PATH can take a comma-separated 2008-02-05 14:02:55 +00:00
ggate Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidental 2007-10-09 23:31:11 +00:00
gpt Bump .Dd for r1.19; use consistent whitespace. 2008-02-05 23:42:37 +00:00
growfs Fix an int overflow on very large file systems. 2007-12-17 08:03:18 +00:00
gvinum Revise markup. 2006-09-30 11:02:17 +00:00
idmapd .PATH isn't necessary here. 2006-10-15 13:51:49 +00:00
ifconfig correct tx rate displayed by list sta: the reported legacy tx rate 2008-02-03 18:29:58 +00:00
init Addition style(9) change. 2007-11-20 21:25:58 +00:00
ipf This makefile builds contrib code, so I won't try to fix all the 2007-11-18 03:29:10 +00:00
ipfw Add table/tablearg support to ipfw's nat. 2008-02-24 15:37:45 +00:00
iscontrol Fix typo. 2008-02-06 08:03:27 +00:00
kldconfig Fix malloc size (visible on amd64, with "kldconfig -r"). 2005-11-07 19:22:20 +00:00
kldload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
kldstat Add the full module path name to the kld_file_stat structure 2007-10-22 04:12:57 +00:00
kldunload Mark up lkm with .Nm, since lkm is name of an api. 2007-02-13 17:06:15 +00:00
ldconfig Remove unused reference to objformat.h 2007-01-25 22:38:58 +00:00
mca Markup nit. 2006-09-30 11:12:36 +00:00
md5 style(9) (verifed no-change in .o's) 2008-02-07 18:10:24 +00:00
mdconfig Every newline should start on it's own line. I didn't do that in the 2007-11-28 12:29:59 +00:00
mdmfs -n is used by newfs to tell "do not generate a .snap directory" instead of 2007-05-14 19:23:13 +00:00
mknod In the previous changeset a cast of myminor to u_int were 2007-06-14 03:16:16 +00:00
mksnap_ffs Make sure we don't pass garbage to the kernel. 2004-12-08 11:54:50 +00:00
mount Correct the description of getmnt_silent: unknown options are silently 2008-02-17 20:25:25 +00:00
mount_autofs spell "file system" correctly 2005-01-24 20:06:16 +00:00
mount_cd9660 Fixing multi-session disc mount by passing the correct "ssector" option 2005-12-19 05:52:37 +00:00
mount_ext2fs Convert mount_ext2fs to a simple program which passes "-o option" to nmount(). 2007-01-28 00:51:01 +00:00
mount_hpfs Use MOPT_END in favor of MOPT_NULL, which better describes the purporse 2005-06-10 09:51:43 +00:00
mount_msdosfs Pass "errmsg" to nmount(), so that if nmount() fails, we can get 2007-01-29 01:49:08 +00:00
mount_nfs Undo the damage I did in sys/kern/vfs_mount.c #1.274 and 2008-02-18 20:58:57 +00:00
mount_ntfs o Fix Dd format. 2007-11-18 09:18:20 +00:00
mount_nullfs Add a missing .Pp call. 2006-04-19 19:21:42 +00:00
mount_reiserfs Increase WARNS level to 6. 2005-11-13 01:47:04 +00:00
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_unionfs Added whiteout behavior option. ``-o whiteout=always'' is default mode 2007-10-14 13:55:38 +00:00
natd Improve rev. 1.63. Document -instance and -globalport options. 2008-02-04 15:27:09 +00:00
newfs Report erase interval (correctly) in sectors. 2007-12-16 20:19:55 +00:00
newfs_msdos Be more accurate in the maximum filesize, it's 4GB not 4.3GB. 2007-12-09 13:34:10 +00:00
nfsiod When accessing the sysctl vfs.nfs.iodmax, don't report errors as being 2005-04-07 20:37:04 +00:00
nos-tun Expand *n't contractions. 2005-02-13 22:25:33 +00:00
pfctl Link pf 4.1 to the build: 2007-07-03 12:46:08 +00:00
pflogd Fixed misspelling of DPADD. 2004-10-24 14:25:53 +00:00
ping Commit IPv6 support for FAST_IPSEC to the tree. 2007-07-01 12:08:08 +00:00
ping6 Decrease ping6's minimum allowed interval 2008-02-25 10:45:25 +00:00
quotacheck Sync up quotacheck's preen.c with fsck's. This makes quotacheck 2008-01-26 12:03:26 +00:00
rcorder Cleanup of userland __P use 2007-11-07 10:53:41 +00:00
reboot - Sweep the boot(8) man page after addition of boot.config(5). 2007-08-18 07:58:36 +00:00
recoverdisk Improve reporting in recoverdisk a good deal. 2007-04-23 12:17:27 +00:00
restore Move macros describing extended attributes in UFS from 2007-03-06 08:13:21 +00:00
route Don't mask the address in inet_makenetandmask() according to what class 2007-11-04 11:12:40 +00:00
routed Sync up with rhyolite routed 2.31 which fixes the handling of varargs. 2006-11-05 14:49:47 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore Compare kernel dump header magic with textdump magic using strncmp() 2007-12-27 21:28:48 +00:00
sconfig getopt(3) returns -1, not EOF. 2008-02-19 07:09:19 +00:00
setkey o Allow setkey(8) to recognize esp as a protocoal name for spdadd. 2008-01-12 20:00:23 +00:00
shutdown Use new style declarations instead of K&R ones. 2005-01-25 08:40:51 +00:00
slattach Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
spppcontrol Use a cast that doesn't create a compiler warning. 2007-11-18 00:33:23 +00:00
startslip - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
sunlabel Fix grammar error caused by my previous edit. 2005-03-30 18:54:41 +00:00
swapon Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
sysctl Remove mentionings of kern.dumpdev which is no longer available. 2007-11-28 14:48:30 +00:00
tunefs o s/filesystem/file system/g. 2007-09-23 16:06:37 +00:00
umount Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
Makefile Add command-line tool ddb(8), which allows DDB(4) scripts to be 2007-12-26 09:38:22 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00