summaryrefslogtreecommitdiff
path: root/debugfs/lsdel.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-08misc: use EXT2_I_SIZE() consistently to get sizeAndreas Dilger1-4/+1
Use the EXT2_I_SIZE() macro consistently to access the inode size. The i_size/i_size_high combination is open coded in several places. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-09-07debugfs: Convert to support 64-bit filesystemsValerie Aurora Henson1-3/+3
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count()Valerie Aurora Henson1-1/+1
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-22debugfs: Move everything to new bitmap interfaceValerie Aurora Henson1-1/+1
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o1-13/+13
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-18Use BLOCK_FLAG_READ_ONLY flag in debugfs, e2image, and tune2fsTheodore Ts'o1-1/+2
Pass BLOCK_FLAG_READ_ONLY to ext2fs_block_iterate2() so that debugfs, e2image, and tune2fs will work well with filesystems containing extents. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-03debugfs: Change lsdel to use ext2fs_block_iterate2 it can find large filesTheodore Ts'o1-14/+17
Addresses-Sourceforge-Feature-Request: #1257500 Addresses-Sourceforge-Support-Request: #1253511 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-05-08Fix mke2fs and debugfs to support large (> 16 bit) uid's and gid'sEric Sandeen1-2/+2
Mke2fs is supposed to set the uid/gid ownership of the root directory when a non-rooot user creates the filesystem. This wasn't working correctly if the uid/gid was > 16 bits. In additional, debugfs wasn't displaying large uid/gid's correctly. This patch fixes these two programs. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-08-29Fix debugfs coredump when lsdel is run without an open filesystemTheodore Ts'o1-1/+3
Addresses Debian Bug: #378335 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-09-24New debugfs command: set_current_timeTheodore Ts'o1-1/+1
Generalize the time parsing code and move it to util.c:string_to_time(). Add new command, set_current_time, which sets the time used to set the filesystems's time fields. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2003-12-07Fix gcc -Wall nitpicksTheodore Ts'o1-2/+2
2002-03-05Two bug fixes to debugfs, courtesy of Jaroslav Drzik <jdrzik@host.sk> for ↵Theodore Ts'o1-3/+7
suggesting this enh ancement. 1) The modify_inode command was core dumping if no filesystem was open. 2) The lsdel command command now uses the pager. Also updated the Makefile.in file with "make depend".
2002-01-03Add new debugfs commands and arguments which make it easier to Theodore Ts'o1-9/+18
recover deleted files. The lsdel command now takes an optional argument which allows the user to only see the most recently deleted files. Also added a new command, undel, which automates undeleting a deleted inode and linking it back to a directory. Also added an optional count argument to the testb, freeb, setb, and find_free_block commands. The ls command now takes a new option, -d, which lists deleted directory entries. Factored out out commonly used code into utility subroutines for ease of maintenance and to make the executable size smaller.
2001-11-08Support very large files with debugfs (first pass).Andreas Dilger1-1/+1
If a file is created with "dd if=/dev/zero of=<file> bs=1k skip=2047M" it is created properly by the kernel, but fails to be seen properly by debugfs - the blocks are not shown by stat <inum>, nor can they be found by icheck. This change fixes that.
2001-01-11Many files:Theodore Ts'o1-10/+10
debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c, setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few minor gcc-wall complaints while we're at it.
2000-06-10lsdel.c:Theodore Ts'o1-3/+5
Fix missed call to ext2fs_get_next_inode() to check for EXT2_ET_BAD_BLOCK_INODE.
2000-06-09ChangeLog, lsdel.c:Theodore Ts'o1-1/+3
Handle bad blocks in inode table.
1998-03-24Many files:Theodore Ts'o1-2/+5
block.c (ext2fs_block_iterate3): Make the ref_offset field contain the offset into the inode.i_blocks array when ref_block is zero. Since we haven't done a formal release of e2fsprogs since block_iterate2 was first introduced, I removed block_iterate2, and renamed block_iterate3 to be block_iterate2. bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c, expanddir.c, ext2fs.h, ext2fsP.h, read_bb.c: Change use of block_iterate and block_iterate2 to block_iterate2 with the new prototype for the interator function. (using blkcnt_t forr blockcount) ChangeLog, debugfs.c, ls.c, lsdel.c: debugfs.c, ls.c, lsdel.c: Add support for large files. (The high 32 bits share space with the i_dir_acl field.)
1997-04-29Many files:Theodore Ts'o1-1/+1
Checked in e2fsprogs-1.07
1997-04-29Many files:Theodore Ts'o1-3/+3
Checked in e2fsprogs 1.05
1997-04-26Many files:Theodore Ts'o1-9/+11
Checked in e2fsprogs 0.5c
1997-04-26Many files:Theodore Ts'o1-0/+186
Checkin of e2fsprogs 0.5b