summaryrefslogtreecommitdiff
path: root/tests/f_dupfsblks
Commit message (Collapse)AuthorAgeFilesLines
* e2fsck: print runs of duplicate blocks instead of all of themDarrick J. Wong2014-03-151-2/+2
| | | | | | | | | | | | When pass1 finds blocks that are mapped to multiple files, it will print every duplicated block. If there are long sequences of duplicate blocks (e.g. the e_pblk field is wrong in an extent), this can cause a gigantic flood of output when a range could convey the same information. Therefore, teach pass1b to print ranges when possible. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* libext2fs: Don't use the extended rec_len encoding for standard file systemsTheodore Ts'o2010-12-221-4/+7
| | | | | | | | If the file system has a blocksize less than 64k, then don't use the extended rec_len encoding, to be consistent with what the kernel will do. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* e2fsck: Interpret negative blkcount in file system problem reportsTheodore Ts'o2009-10-041-1/+1
| | | | | | | | | | | | | | Non-expert users get confused when they see messages like this: Illegal block #-1 (2291965952) in inode 176. CLEARED. So change it to be something a little bit more understandable: Illegal indirect block (2291965952) in inode 176. CLEARED. Addresses-SourceForge-Bug: #2871782 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Fix encoding for rec_len in directories for >= 64k blocksize file systemsTheodore Ts'o2009-06-211-7/+4
| | | | | | | | | | | | | | Previously e2fsprogs interpreted 0 for a rec_len of 65536 (which could occur if the directory block is completely empty in 64k blocksize filesystems), while the kernel interpreted 65535 to mean 65536. The kernel will accept both to mean 65536, and encodes 65535 to be 65536. This commit changes e2fsprogs to match. We add the encoding agreed upon for 128k and 256k filesystems, but we don't enable support for these larger block sizes, since they haven't been fully tested. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Make e2fsck uninit block group awareJose R. Santos2008-03-201-1/+2
| | | | | | | | | This patch has all the necesary pieces to open and fix filesystems created with the uninit block group feature. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Make e2fsck Pass 1C header consistent with the other headersTheodore Ts'o2005-07-041-1/+1
| | | | | | | Removed the period from the Pass 1C header to make it consistent with the other e2fsck pass headers.
* Clean up e2fsck problem description messages for typo's and to make themTheodore Ts'o2005-06-191-14/+15
| | | | | | | | | | | | | | | easier to understand (sorry, translators). Add new @m (multiply-claimed) and @n (invalid) expansions for e2fsck problem descriptions. Add Dutch translation, and update French translation. Add an explanation of how the @-expansion and %-exapansion works in e2fsck/problem.c to make life easier for the translators. Synchronize and update po files.
* Change e2fsck to use a red/black tree in pass1b, to remove O(n**2) Theodore Ts'o2002-08-012-6/+6
| | | | | | algorithms. Makes e2fsck much, much faster in certain rare cases where the filesystem is severely corrupted.
* ChangeLog, expect.1, expect.2, image.gz:Theodore Ts'o1999-09-143-7/+32
| | | | | | | | | | f_expand: Make test case better by testing increasing the size of lost+found where an indirect block must be created. Also add checks to see what happens when directories are disconnected because their containing directory is destroyed (turned into a socket :-) f_dupfsblks: Add additional test cases where files share duplicate blocks with both other files and filesystem metadata.
* Many files:Theodore Ts'o1997-10-031-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | pass*.c, super.c: Massive changes to avoid using printf and com_err routines. All diagnostic messages are now routed through the fix_problem interface. pass2.c (check_dir_block): Check for duplicate '.' and '..' entries. problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and PR_2_DUP_DOT_DOT. problem.c: Added new problem codes for some of the superblock corruption checks, and for the pass header messages. ("Pass 1: xxxxx") util.c (print_resource_track): Now takes a description argument. super.c, unix.c, e2fsck.c: New files to separate out the operating-specific operations out from e2fsck.c. e2fsck.c now contains the global e2fsck context management routines, and super.c contains the "pass 0" initial validation of the superblock and global block group descriptors. pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate (nearly) all global variables and moved them to the e2fsck context structure. problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT, PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS, PR_0_BLOCKS_PER_GROUP, PR_0_FIRST_DATA_BLOCK expect.1, expect.2: Updated tests to align with e2fsck problem.c changes.
* Many files:Theodore Ts'o1997-04-291-9/+16
| | | | | Checked in e2fsprogs 1.08.
* Many files:Theodore Ts'o1997-04-291-12/+9
| | | | | Checked in e2fsprogs-1.07
* Many files:Theodore Ts'o1997-04-291-0/+2
| | | | | Checked in e2fsprogs 1.05
* Many files:Theodore Ts'o1997-04-262-2/+2
| | | | | Checkin of e2fsprogs 1.02.
* Many files:Theodore Ts'o1997-04-264-0/+39
Checked in e2fsprogs 0.5c