Theodore Ts'o
df614db6ef
Add initial support in debugfs for examining directory indexing
...
information.
2002-02-25 04:28:45 -05:00
Theodore Ts'o
25813b1313
Fix typo in previous changeset; the man pages for fsck.ext2 and
...
fsck.ext3 should be linked to the one for e2fsck, not fsck.
2002-02-24 03:48:45 -05:00
Theodore Ts'o
b9f409255e
Update makefiles to install mkfs.ext3, and to install man pages for
...
mkfs.ext2/3 and fsck.ext2/3. Also remove any compressed man pages
before installing the man pages.
2002-02-24 03:08:57 -05:00
Theodore Ts'o
541d173d91
Update with the Debian package e2fsprogs-1.26-1.
...
Clarify and clean up the badblocks man page and the com_err info file.
2002-02-23 21:23:26 -05:00
Theodore Ts'o
64e1b274ed
unix_io.c (unix_open): Fix 2.4 resource limit workaround so that
...
it doesn't break things on mis32, sparc32, and alpha
platforms.
2002-02-23 18:50:32 -05:00
Theodore Ts'o
d1a2182a18
Cleaned up journal handling code in e2fsck.
...
Fixed up two minor memory leaks.
2002-02-22 00:17:59 -05:00
Theodore Ts'o
f3e3d31502
ismounted.c (is_swap_device): Fix file descriptor/memory leak;
...
we were missing an fclose().
2002-02-21 20:48:25 -05:00
Theodore Ts'o
f12e285ffd
Add new inode I/O abstraction interface which exports an inode as
...
an I/O object.
Export ext2_file_flush as a public interface.
Also minor cleanups to tighten code in other I/O abstractions, and to
mark a void * pointer as const in the ext2_file_write interface.
2002-02-20 01:06:25 -05:00
Theodore Ts'o
7d4343d0d0
Lots of small random portability fixes to make e2fsprogs build
...
under AIX --- even without the 5L compatibility toolkit, and even
using the uber-crippled AIX native C compiler.
2002-02-12 02:34:44 -05:00
tiniou@crusoe.alcove-fr
d166e24a54
ADD TAG: E2FSPROGS-1_26
2002-02-06 15:59:55 +01:00
tiniou@crusoe.alcove-fr
eac31fcd76
Corrected version number in e2fsprogs.spec, making able to rpm -ta again.
2002-02-06 15:59:55 +01:00
Theodore Ts'o
0d73590c71
ADD TAG: E2FSPROGS-1_26
2002-02-03 01:36:54 -05:00
Theodore Ts'o
0698739ad8
Fix really stupid date typo for 1.26 release-notes.
2002-02-03 01:36:54 -05:00
Theodore Ts'o
fc29b57455
ADD TAG: E2FSPROGS-1_26
2002-02-03 01:32:57 -05:00
Theodore Ts'o
7de592a5b4
Final adjustment of LSM file before 1.26 release.
2002-02-03 01:32:57 -05:00
Theodore Ts'o
7f961d424b
Fix bug where ext2fs_mkdir wasn't correctly bumping the number of
...
directories in use in a bloock group.
2002-02-03 01:28:52 -05:00
Theodore Ts'o
31a20a34da
f_swapfs: Fix expect script to deal with extra spaces now printed
...
by debugfs's ls command.
2002-02-03 01:24:37 -05:00
Theodore Ts'o
a5f3f5c191
Update files for 1.26 release.
2002-02-03 01:00:22 -05:00
Theodore Ts'o
5599c2fa87
Changed fsck to support filesystems types in /etc/fstab of the form
...
"ext3,ext2", etc.
Added support for only searching for a specified list of filesystems.
Also add support for identifying reiserfs filesystems.
2002-02-03 00:08:52 -05:00
Theodore Ts'o
a1069118d4
fsck.c: Allow the number of outstanding processes fs-specific
...
fsck programs to be capped via the FSCK_MAX_INST
envrionment variable.
fsck.8.in: Document all of the environment variables used by fsck.
2002-01-29 12:49:14 -05:00
Theodore Ts'o
177ab2bebe
Document the -f flag to tune2fs.
2002-01-27 18:23:49 -05:00
Stephen Tweedie
dad36d029b
Fix build-rpm script to work a bit more safely.
2002-01-10 17:56:07 +00:00
Andreas Dilger
f10ff6429b
Add new Makefile target "make testnew" which will allow easy testcase
...
creation for e2fsck.
2002-01-06 21:58:52 -07:00
Andreas Dilger
c713f6066c
Always free vdirname.
2002-01-06 21:52:44 -07:00
Andreas Dilger
c007bc06d9
Return a non-zero exit code on error.
2001-12-25 23:10:40 -07:00
Theodore Ts'o
682720a41b
Fix gcc -Wall nits.
2002-01-03 05:10:04 -05:00
Theodore Ts'o
e1018eeaa3
Add new debugfs commands and arguments which make it easier to
...
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.
2002-01-03 04:55:25 -05:00
Theodore Ts'o
8bd0c95908
dir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block):
...
Add support for a new flag, DIRENT_FLAG_INCLUDE_REMOVED,
which will return deleted directory entries.
ext2fs_dir_iterate2 takes a new callback function which
is identical with the one used by
ext2fs_dblist_dir_iterate(). If the directory entry is
deleted, the callback function will be called with the
entry paraemter set to DIRENT_DELETED_FILE.
Makefile.in, alloc_stats.c (ext2fs_inode_alloc_stats,
ext2fs_block_alloc_stats): New functions which update
block/inode allocation statistics in the bitmaps, block
group descriptors, and superblock.
mkjournal.c (mkjournal_proc), mkdir.c (ext2fs_mkdir),
expanddir.c (expand_dir_proc), bb_inode.c
(clear_bad_block_proc, set_bad_block_proc,
ext2fs_update_bb_inode), alloc.c (ext2fs_alloc_block):
Update to use new block/inode allocation statistics.
2002-01-03 03:29:19 -05:00
Theodore Ts'o
5493a27dc1
badblocks.c (main): Open the device as O_RDWR if possible, since
...
fsync() isn't guaranteed to work if the filesystem is
opened read-only.
2002-01-02 14:15:35 -05:00
Theodore Ts'o
d4de4aa938
tune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): Add
...
support for new option, -T, which allows the user to set
the last checked time on the filesystem.
2001-12-26 08:58:01 -05:00
Theodore Ts'o
07b84e1e1e
ADD TAG: E2FSPROGS-1_26-WIP-1224
2001-12-24 15:33:49 -05:00
Theodore Ts'o
96b5cacc04
Miscellaneous cleanup before 1.26-WIP release. Removed unused
...
.cvsignore in include/asm directory so it can disappear. Updated
makefile dependencies, and stop including <topsrc>/include in the
-I search path, since it's no longer needed.
2001-12-24 15:33:49 -05:00
Theodore Ts'o
750ff8b66a
Remove include/linux/ChangeLog to clean up the include/linux subdirectory.
2001-12-24 15:24:54 -05:00
Theodore Ts'o
446314fce8
Update for 1.26-WIP release.
2001-12-24 15:22:27 -05:00
Theodore Ts'o
07cefe7a70
ismounted.c (is_swap_device): New function used by
...
ext2fs_check_if_mounted and ext2fs_check_mount_point which
determines whether or not the specified device is a swap
device by using /proc/swaps. More bulletproofing for
idiotic/careless system administrators!
2001-12-24 15:20:22 -05:00
Theodore Ts'o
3ed57c27df
In mke2fs and e2fsck, specifying the -c option twice will now do
...
a read/write test on the disk. Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o
5f0fabe6db
Fix broken Makefile dependencies.
2001-12-24 12:42:45 -05:00
Theodore Ts'o
6a525069a9
Mke2fs now creates the lost+found directory with 0700 permissions,
...
since files which get dropped into that directory may have come
from a protected directory, and the system administrator may not
deal with immediately. (Addresses Debian bug #118443 )
2001-12-24 09:40:00 -05:00
Theodore Ts'o
a8fd6e36b8
ismounted.c (check_mntent_file): Stat all of the entries in
...
/etc/mtab and/or /proc/mounts in order to catch dim-witted
system administrators who might have created alias
devices.
2001-12-24 01:40:35 -05:00
Theodore Ts'o
fae9bfaa5c
Initialize buf to NULL to avoid crashing when called by fix_problem()
2001-12-23 22:56:12 -05:00
Theodore Ts'o
f1a1761d67
Enhnaced the get backup superblock function so that it does
...
the right thing if the filesystem superblock is unavailable;
it will search for the superblock by iterating over possible
blocksizes.
2001-12-23 22:27:52 -05:00
Theodore Ts'o
19007e51a5
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
...
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)
2001-12-23 19:33:51 -05:00
Theodore Ts'o
344368911e
Update the group descriptor free block and inode counts when
...
deleting or killing a file.
2001-12-22 13:06:02 -05:00
Theodore Ts'o
eaf4dc5c98
Add support to read out information from the LVM proc hierarchy,
...
so that the UUID cache can search the LVM logical volumes for
UUID's, labels, etc.
2001-12-22 00:04:22 -05:00
Theodore Ts'o
0655b104e6
Change dumpe2fs to not die if the listing of the bad blocks
...
can't be found. Slimmed down dumpe2fs by eliminating duplicate
code paths.
2001-12-21 23:59:46 -05:00
Theodore Ts'o
6a50c5ed57
Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.
2001-12-21 23:29:35 -05:00
Theodore Ts'o
d37066a9fa
Give the opportunity for e2fsck to run the journal even if
...
recovery flag is cleared. If we're using a backup
superblock, run the journal by default.
2001-12-21 23:28:54 -05:00
Theodore Ts'o
4ea7bd0439
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
...
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
2001-12-16 23:23:37 -05:00
Theodore Ts'o
8cf93332d1
Fix e2fsck's handling of external journals,and update journal
...
recovery files from 2.4.17-pre8.
2001-12-16 02:23:36 -05:00
Theodore Ts'o
5d57ad14f3
* Add new descriptions for the following functions:
...
ext2fs_block_iterate, ext2fs_block_iterate2,
ext2fs_read_dir_block, ext2fs_write_dir_block,
ext2fs_new_dir_block, ext2fs_dir_iterate, ext2fs_mkdir,
ext2fs_expand_dir, ext2fs_link, ext2fs_unlink,
ext2fs_clear_block_bitmap, ext2fs_set_block_bitmap,
ext2fs_group_of_blk, ext2fs_group_of_ino.
2001-12-11 10:15:31 -05:00