#
64569d51 |
| 05-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
Revert "fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S)."
C17 lifted this restriction.
|
#
aa5cfbe7 |
| 04-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
fsck_ffs(8): Fix whitespace issues.
- Nix trailing whitespace. - Omit excessive blank lines. - Insert missing blank lines between $NetBSD$ and copyright.
No functional change intended.
|
#
c6b08bc9 |
| 04-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S).
Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2, p. 348:
The value of alignment shall be a valid alignment supported
fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S).
Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2, p. 348:
The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment.
XXX pullup-10
show more ...
|
#
158768aa |
| 14-Jan-2023 |
kre <kre@NetBSD.org> |
Use %zu rather than %lu to print a size_t (should fix i386 build).
But, philosophical question, shouldn't the product of two size_t variables really be an area_t, or something like that?
|
#
7a6a94a0 |
| 14-Jan-2023 |
christos <christos@NetBSD.org> |
catch up with sign changes in the fs.h
|
#
7778159d |
| 17-Apr-2020 |
jdolecek <jdolecek@NetBSD.org> |
align buffers used for I/O to DEV_BSIZE so it's executed more optimally when run for xbd(4) raw (character) device
|
#
af31ffbc |
| 08-Feb-2017 |
rin <rin@NetBSD.org> |
Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1 and APPLE_UFS=1 are added to CRUNCHENV, respecti
Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1 and APPLE_UFS=1 are added to CRUNCHENV, respectively.
This reduces the size of ramdisk image for atari by over 15KB.
Thanks tsutsui and christos for their useful comments.
show more ...
|
#
a3ec7759 |
| 05-Apr-2014 |
justin <justin@NetBSD.org> |
Iterate over fields of struct seperately to avoid warnings from pedantic compilers
|
#
fc99f541 |
| 02-Dec-2013 |
bouyer <bouyer@NetBSD.org> |
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2). This would be a problem only when allocating a new data block and the indir block is already allocated, which explains why automated test
Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2). This would be a problem only when allocating a new data block and the indir block is already allocated, which explains why automated tests didn't find it. Problem reported on tech-kern@ and fix tested by manu@.
show more ...
|
#
d8699e04 |
| 23-Jun-2013 |
dholland <dholland@NetBSD.org> |
Stick ffs_ in front of the following macros: fragstoblks() blkstofrags() fragnum() blknum()
to finish the job of distinguishing them from the lfs versions, which Christos renamed the oth
Stick ffs_ in front of the following macros: fragstoblks() blkstofrags() fragnum() blknum()
to finish the job of distinguishing them from the lfs versions, which Christos renamed the other day.
I believe this is the last of the overtly ambiguous exported symbols from ffs... or at least, the last of the ones that conflicted with lfs. ffs still pollutes the C namespace very broadly (as does ufs) and this needs quite a bit more cleanup.
XXX: boo on macros with lowercase names. But I'm not tackling that just yet.
show more ...
|
#
ea9309de |
| 23-Jun-2013 |
dholland <dholland@NetBSD.org> |
Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of the following symbols so as to disambiguate fully. (Christos already did the lfs ones.)
lblkno lblktosize lfragtosize nu
Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of the following symbols so as to disambiguate fully. (Christos already did the lfs ones.)
lblkno lblktosize lfragtosize numfrags blkroundup fragroundup
show more ...
|
#
63d01f6c |
| 23-Jun-2013 |
dholland <dholland@NetBSD.org> |
fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB() dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()
(Christos already did the lfs ones a few days back)
|
#
e50fdbdd |
| 19-Jun-2013 |
dholland <dholland@NetBSD.org> |
Rename ambiguous macros: MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR INOPB -> FFS_INOPB, LFS_INOPB INOPF -> FFS_INOPF, LFS_
Rename ambiguous macros: MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR INOPB -> FFS_INOPB, LFS_INOPB INOPF -> FFS_INOPF, LFS_INOPF blksize -> ffs_blksize, ext2_blksize, or lfs_blksize sblksize -> ffs_blksize
These are not the only ambiguously defined filesystem macros, of course, there's a pile more. I may not have found all the ambiguous definitions of blksize(), too, as there are a lot of other things called 'blksize' in the system.
show more ...
|
#
d8eae7d2 |
| 22-Jan-2013 |
dholland <dholland@NetBSD.org> |
Stuff UFS_ in front of a few of ufs's symbols to reduce namespace pollution. Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> U
Stuff UFS_ in front of a few of ufs's symbols to reduce namespace pollution. Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)
Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have the same values in ext2fs and ffs.
No functional change intended.
show more ...
|
#
0367ea04 |
| 06-Mar-2011 |
bouyer <bouyer@NetBSD.org> |
merge the bouyer-quota2 branch. This adds a new on-disk format to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by
merge the bouyer-quota2 branch. This adds a new on-disk format to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by the WAPBL journal. Enabled with kernel option QUOTA2 (added where QUOTA was enabled in kernel config files), turned on with tunefs(8) on a per-filesystem basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html for details.
show more ...
|
#
c68c36a5 |
| 04-Feb-2010 |
christos <christos@NetBSD.org> |
Centralize time printing and deal with ctime possibly returning NULL.
|
#
8e2fe698 |
| 11-Apr-2009 |
lukem <lukem@NetBSD.org> |
fix sign-compare issues
|
#
59334248 |
| 09-Oct-2008 |
christos <christos@NetBSD.org> |
Disable userid to username lookups by default. Add a -U flag to perform them. In single user mode lookups that involve the network might not work and they slow down fsck.
|
#
9e826282 |
| 08-Jul-2008 |
simonb <simonb@NetBSD.org> |
Fix funny whitespace in a variable assignment.
|
#
742b48d5 |
| 23-Feb-2008 |
christos <christos@NetBSD.org> |
Make sure that the exit values are always sane, and use symbolic instead of magic constants. Reviewed by go@
|
#
cb9ef1cf |
| 12-Apr-2007 |
chs <chs@NetBSD.org> |
apply revision 1.31 yet again: "make sure that we don't try to allocate negative memory when blks == 0." or on amd64, "make sure that we don't allocate 32 GB when blks == 0."
|
#
7ba7efe1 |
| 21-Apr-2006 |
skrll <skrll@NetBSD.org> |
Don't use cast expressions as lvalues as newer versions of gcc warn.
|
#
c4ee9f6d |
| 19-Aug-2005 |
christos <christos@NetBSD.org> |
64 bit inode changes
|
#
c236bddb |
| 27-Jun-2005 |
christos <christos@NetBSD.org> |
sprinkle const.
|
#
700088dc |
| 02-Jun-2005 |
lukem <lukem@NetBSD.org> |
appease gcc -Wuninitialized
|