diff options
author | bde <bde@FreeBSD.org> | 2007-07-20 16:21:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2007-07-20 16:21:47 +0000 |
commit | b2bdcce9e10d5055a3afbfebf98e0e05fcd67113 (patch) | |
tree | e4ec23a08ff01518cb0df4d35f6a8c85382b3337 /lib/libc/stdlib/getenv.c | |
parent | fcbc18ed979a9e690e88b07c8dba4cd1f4f1cc5d (diff) | |
download | FreeBSD-src-b2bdcce9e10d5055a3afbfebf98e0e05fcd67113.zip FreeBSD-src-b2bdcce9e10d5055a3afbfebf98e0e05fcd67113.tar.gz |
Clean up before implementing vfs clustering for msdosfs:
In msdosfs_read(), mainly reorder the main loop to the same order as in
ffs_read().
In msdosfs_write() and extendfile(), use vfs_bio_clrbuf() instead of
clrbuf(). I think this just just a bogus optimization, but ffs always
does it and msdosfs already did it in one place, and it is what I've
tested.
In msdosfs_write(), merge good bits from a comment in ffs_write(), and
fix 1 style bug.
In the main comment for msdosfs_pcbmap(), improve wording and catch
up with 13 years of changes in the function. This comment belongs in
VOP_BMAP.9 but that doesn't exist.
In msdosfs_bmap(), return EFBIG if the requested cluster number is out
of bounds instead of blindly truncating it, and fix many style bugs.
Approved by: re (hrs)
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions