History log of /src/sbin/fsck_ext2fs/inode.c |
Revision | | Date | Author | Comments |
1.37 |
| 04-Aug-2016 |
jdolecek | rename struct ext2fs_dinode attribute e2di_dacl to correct e2di_size_high; even Linux ext2 filesystem code actually uses it unconditionally this way and ext4 code finally also calls it that way in their struct definition too; if there was any trace of this for other purpose it's long gone
|
1.36 |
| 23-Jun-2013 |
dholland | branches: 1.36.10; 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
|
1.35 |
| 23-Jun-2013 |
dholland | fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB() dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()
(Christos already did the lfs ones a few days back)
|
1.34 |
| 19-Jun-2013 |
dholland | 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.
|
1.33 |
| 22-Jan-2013 |
dholland | 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.
|
1.32 |
| 25-Nov-2012 |
jakllsch | Catch up to the kernel with respect to Ext2 huge_file feature.
|
1.31 |
| 04-Feb-2010 |
christos | branches: 1.31.6; 1.31.12; Centralize time printing and deal with ctime possibly returning NULL.
|
1.30 |
| 19-Oct-2009 |
bouyer | Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen for the booring work !
|
1.29 |
| 06-Apr-2009 |
lukem | fix sign-compare issues
|
1.28 |
| 02-Mar-2009 |
tsutsui | - add a sanity check for e2fs_inode_size in readsb() - use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets
|
1.27 |
| 24-Nov-2008 |
tsutsui | branches: 1.27.2; Handle 32 bit uid field on E2FS_REV1.
|
1.26 |
| 24-Nov-2008 |
tsutsui | Add missed byteswap ops against ext2fs_dinode members.
|
1.25 |
| 24-Nov-2008 |
tsutsui | Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit.
|
1.24 |
| 24-Nov-2008 |
tsutsui | - unsigned -> unsigned int - remove unnecessary casts from malloc(3) and free(3) - fix a bogus indent
|
1.23 |
| 09-Oct-2008 |
christos | branches: 1.23.2; 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.
|
1.22 |
| 16-Mar-2008 |
lukem | errexit() now provides the trailing \n (since fsck_ffs assumed that from a conversion from err(3)), so "make it so".
|
1.21 |
| 16-Nov-2007 |
tsutsui | branches: 1.21.6; 1.21.8; Add a workaround for incorrect "SUMMARY INFORMATIONS WRONG FOR CG #N" and "BLK(S) MISSING IN BIT MAP #N" reports on newer ext2fs with EXT2F_COMPAT_RESIZE feature by accounting blocks in EXT2_RESIZEINO.
XXX1: Should we account blocks allocated by all other reserved inodes? XXX2: We should really check and fix EXT2_RESIZEINO accordingly.
|
1.20 |
| 19-Aug-2005 |
christos | branches: 1.20.4; 1.20.10; 64 bit inode changes
|
1.19 |
| 26-Jun-2005 |
christos | more const.
|
1.18 |
| 26-Jun-2005 |
christos | constify.
|
1.17 |
| 09-Feb-2005 |
ws | Add support for large files (>2GB). Allow conversion of old filesystems to use this, if they are already at revision 1.
There probably should be an option to turn revision 0 to revision 1.
Reviewed (in part) by Manuel (bouyer@).
|
1.16 |
| 05-Feb-2005 |
xtraeme | Kill __P();
|
1.15 |
| 19-Jan-2005 |
xtraeme | Kill __P(), ANSIfy, remove main() prototype; WARNS=2
|
1.14 |
| 22-Mar-2004 |
bouyer | Fix disclaimer in my copyright. Pointed out by Thomas Klausner.
|
1.13 |
| 05-Oct-2003 |
bouyer | More licence fixes, pointed out by Thomas Klausner.
|
1.12 |
| 05-Oct-2003 |
bouyer | Remove references to University of California from my copyright notices.
|
1.11 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
|
1.10 |
| 13-Jul-2003 |
itojun | use bounded string op (one strcpy remains) VS: ----------------------------------------------------------------------
|
1.9 |
| 24-Jan-2003 |
fvdl | Bump daddr_t to 64 bits. Replace it with int32_t in all places where it was used on-disk, so that on-disk formats remain the same. Remove ufs_daddr_t and ufs_lbn_t for the time being.
|
1.8 |
| 28-Jan-2000 |
bouyer | Correct bogons in filetype option support, and add support for the sparse_super option.
|
1.7 |
| 26-Jan-2000 |
bouyer | First cut at ext2fs rev 1 support (as of mke2fs 1.18): supports the filetype option read/write and the sparse option read-only.
|
1.6 |
| 17-Feb-1999 |
bouyer | Properly handle FIFO (linux seems to puts something in the block addr fields here) and a new field that can be different in the master superblock and its first copy. From Tim Shepard.
|
1.5 |
| 28-Jul-1998 |
mycroft | __AUDIT__ cleanup.
|
1.4 |
| 01-Apr-1998 |
kleink | Need <time.h> for ctime() and time() prototypes.
|
1.3 |
| 09-Oct-1997 |
bouyer | Ext2 metadata are always stored on disk in little-endian byte order, so do byte-swapping on big-endian system. The byte-swap routines are in fsck/bswap.c because they will also be used in fsck_ffs in future. Tested on i386 and sparc.
|
1.2 |
| 14-Sep-1997 |
lukem | * cleanup for WARNS=1 * deprecate register * cleanup manpage * remove unused docheck() * getopt returns -1 not EOF * put a ) in the correct place in a printf, so that the argument gets & 0xff, not the result of printf() itself...
|
1.1 |
| 11-Jun-1997 |
bouyer | Add support programs for ext2fs. fsck_ext2fs is derived from fsck_ffs.
|
1.20.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.20.10.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.20.4.1 |
| 24-Mar-2009 |
bouyer | Pull up following revision(s) (requested by manu in ticket #1288): sbin/fsck_lfs/inode.c: revision 1.40 via patch sbin/fsck_ffs/fsck_ffs.8: revision 1.44 via patch sbin/fsck_ext2fs/fsck.h: revision 1.14 via patch sbin/fsck_ext2fs/main.c: revision 1.30 via patch sbin/fsck_ffs/inode.c: revision 1.61 via patch sbin/fsck_ffs/main.c: revision 1.71 via patch sbin/fsck_ext2fs/inode.c: revision 1.23 via patch sbin/fsck_lfs/fsck.h: revision 1.18 via patch sbin/fsck_lfs/fsck_lfs.8: revision 1.21 via patch sbin/fsck_lfs/main.c: revision 1.38 via patch sbin/fsck_ext2fs/fsck_ext2fs.8: revision 1.15 via patch sbin/fsck_ffs/fsck.h: revision 1.47 via patch 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.
|
1.21.8.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.21.8.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.21.6.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.23.2.1 |
| 16-Jan-2011 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1486): sbin/fsck_ext2fs/setup.c: revision 1.26 sbin/newfs_ext2fs/mke2fs.c: revision 1.10 sbin/newfs_ext2fs/mke2fs.c: revision 1.11 sbin/newfs_ext2fs/mke2fs.c: revision 1.12 sbin/fsck_ext2fs/inode.c: revision 1.24 sys/lib/libsa/ext2fs.c: revision 1.6 sbin/newfs_ext2fs/extern.h: revision 1.3 sbin/fsck_ext2fs/inode.c: revision 1.25 sys/lib/libsa/ext2fs.c: revision 1.7 sbin/fsck_ext2fs/inode.c: revision 1.26 sys/ufs/ext2fs/ext2fs_inode.c: revision 1.68 sbin/fsck_ext2fs/inode.c: revision 1.27 sbin/fsck_ext2fs/inode.c: revision 1.28 sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.18 sys/ufs/ext2fs/ext2fs_dinode.h: revision 1.19 sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.5 sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.2 sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.6 sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.3 sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.142 sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.7 sbin/newfs_ext2fs/newfs_ext2fs.8: revision 1.4 sbin/newfs_ext2fs/newfs_ext2fs.c: revision 1.8 PR/40936: Frederik Sausmikat: ext2fs: add support for inodes > 128 bytes Support variable inode sizes. catch up with variable inode size. Don't use e2fs_inode_size in superblock on E2FS_REV0 file system. - accept only EXT2_REV0_DINODE_SIZE inodesize on -O 0 - use inodesize to get offset of inode, not struct ext2fs_dinode array Replace a magic number with a new EXT2_REV0_DINODE_SIZE macro. Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array. Fix botched logic in inodesize check. Use inodesize to get offset of inode in one more place. - add a sanity check for e2fs_inode_size in readsb() - use EXT2_DINODE_SIZE() rather than sizeof(struct ext2fs_dinode) or struct ext2fs_dinode array/pointer to see e2fs_ipb and inode offsets Sort options. New sentence, new line. Sort options in usage. - unsigned -> unsigned int - remove unnecessary casts from malloc(3) and free(3) - fix a bogus indent Use "size > INT32_MAX" rather than "size >= 0x80000000U" to check 2GB limit. Add missed byteswap ops against ext2fs_dinode members. Handle 32 bit uid field on E2FS_REV1.
|
1.27.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.31.12.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.31.12.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.31.12.1 |
| 25-Feb-2013 |
tls | resync with head
|
1.31.6.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.31.6.2 |
| 23-Jan-2013 |
yamt | sync with head
|
1.31.6.1 |
| 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.36.10.1 |
| 06-Aug-2016 |
pgoyette | Sync with HEAD
|