dholland
c13a12500a
Tidy up the LFS userland build hacks.
...
Don't use -I${NETBSDSRCDIR}/sys; don't include files other than the
exported LFS headers, which are lfs.h, lfs_inode.h, and (for now)
lfs_extern.h.
2013-06-08 02:16:03 +00:00
dholland
25bc01ad43
DIRBLKSIZ -> LFS_DIRBLKSIZ
...
DIRECTSIZ -> LFS_DIRECTSIZ
DIRSIZ -> LFS_DIRSIZ
OLDDIRFMT -> LFS_OLDDIRFMT
NEWDIRFMT -> LFS_NEWDIRFMT
IFTODT -> LFS_IFTODT
DTTOIF -> LFS_DTTOIF
2013-06-08 02:14:46 +00:00
dholland
4b157546cf
struct direct -> struct lfs_direct
...
struct dirtemplate -> struct lfs_dirtemplate
struct odirtemplate -> struct lfs_odirtemplate
DT_* -> LFS_DT_*
2013-06-08 02:12:56 +00:00
dholland
b6eb36b1f1
Stick LFS_ in front of IFMT, IFIFO, IFREG, etc. so as not to conflict
...
with the UFS copies of these symbols. (Which themselves ought to have
UFS_ stuck on.)
2013-06-08 02:11:11 +00:00
dholland
1ebd9aa225
ufs -> ulfs for fsck_lfs.
2013-06-06 00:52:50 +00:00
dholland
dcd34a91c5
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.
2013-01-22 09:39:11 +00:00
christos
b6479e9fff
Fix malloc/realloc/calloc issues: always check and exit, use EEXIT instead
...
of 8.
2006-11-09 19:36:36 +00:00
perseant
cb2499ac6e
Several fixes to improve the reliability of the roll-forward agent.
...
Also, note "properly orphaned" files as distinct from corrupted files.
2006-09-01 19:52:48 +00:00
christos
100801ed72
rename lfs.h to lfs_user.h so that it does not conflict.
2005-09-13 04:14:17 +00:00
christos
e0dd0ca293
constify
2005-06-27 02:48:28 +00:00
perseant
1d4cc6a17b
Be more efficient with the hash tables for the buffer and vnode caches.
...
Note that roll-forward can add more inodes to the filesystem; don't overflow
the tables but reallocate them.
2005-04-11 23:19:24 +00:00
perry
5c9f370160
remove obsolete "register" declarations.
2005-02-06 06:13:47 +00:00
xtraeme
0f821b7962
ANSIfy, WARNS=2
2005-01-19 19:41:59 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
itojun
8883e1fb40
use bounded string op
2003-07-13 08:05:58 +00:00
fvdl
42614ed3f3
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
...
64 bit block pointers, extended attribute storage, and a few
other things.
This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.
Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
perseant
ba10361ab2
Add working writing ability to fsck_lfs, including roll-forward, based on
...
a partial-segment writer ported from the kernel.
2003-03-28 08:09:52 +00:00
wiz
c2370c3f0a
Add some \n to error messages.
2001-09-25 00:03:25 +00:00
perseant
75453f286d
Add "-i" flag to specify the location of the index file inode, to
...
examine alternate checkpoints. Regularize usage of maxino. Remove olf
debugging cruft.
2000-06-14 18:43:57 +00:00
perseant
1d2596714b
Convert to NetBSD source code style
2000-05-23 01:48:52 +00:00
kleink
9d343b25ca
RCS Id police.
1999-07-03 19:55:03 +00:00
nathanw
210c7f5748
printf format fixes for Alpha.
1999-03-24 05:32:23 +00:00
perseant
369e9cadf8
Initial checkin of fsck_lfs. This version cannot do any repair (-p flag
...
does nothing, and one of -p or -n is required) but can be useful as a
diagnostic tool.
1999-03-18 02:02:18 +00:00