Whamcloud - gitweb
LU-11545 debugfs: allow <inode> for ncheck
[tools/e2fsprogs.git] / doc / RelNotes / v1.26.txt
1 E2fsprogs 1.26 (February 3, 2002)
2 =================================
3
4 Dumpe2fs will keep going now if the bad block inode can't be read.
5 (Previously it stopped with a fatal error.)
6
7 E2fsck will now give an opportunity to run the journal even if the
8 recovery flag is not set.  This is the default behaviour if e2fsck is
9 using a backup superblock, since the needs_recovery flag will never be
10 set in the backup superblock copies.
11
12 E2fsck now automatically finds the backup superblock/group descriptors
13 even when the primary superblock is completely destroyed for 2k and 4k
14 filesystems.  (Previously it just guessed/assumed that we were dealing
15 with a 1k filesystem in that case, and users had to manually specify
16 the backup superblock number.)
17
18 Fixed a bug in e2fsck where it dereferences a null pointer when there
19 is a problem opening a filesystem in preen mode.
20
21 E2fsck now handles external journals correctly; previously it trashed
22 the external journal device if the journal needed to be replayed.
23
24 Work around ulimit incompatibility problem caused by recent 2.4
25 kernels; the unix IO module will automatically try to set any resource
26 limits to be infinite on startup.
27
28 Fixed a bug in e2fsck where it wasn't allocating a new block or inode
29 bitmap if it wasn't present and the blocksize was 2k or 4k.
30  (Addresses Debian Bug #116975)
31
32 E2fsck will check and fix botched ext3 V1 to V2 superblock updates by
33 clearing the new V2 fields if they do not make sense or if the ext3
34 superblock is version 1 superblock.
35
36 E2fsck will automatically relocate the ext3 journal from a visible
37 file (i.e., /.journal) to an hidden inode if the filesystem has been
38 opened read/write.  This allows the users to add a journal while the
39 filesystem is mounted, but the next time the system is rebooted, the
40 journal file will disappear.  This avoids problems with backups,
41 stupid operators with superuser bits, etc.
42
43 Fix a bug in fsck where it would not support a filesystem type of
44 "auto" if the device was specified in terms of LABEL=xxx or UUID=xxx.
45
46 Fsck now supports fstab entries of the form "ext3,ext2".  It will also
47 automatically identify reiserfs filesystems.
48
49 The number of processes spawned by fsck can now be limited using the
50 FSCK_MAX_INST environment variable.
51
52 Fsck now searches the LVM proc hierarchy to find logical volumes which
53 should be searched for  UUID and label information.
54
55 Work around a bug in 2.4.10+ kernels by trying to unset the filesize
56 limit if at all possible, when opening a block device.  (The filesize
57 limit shouldn't be applied against writes to a block device.)
58
59 In mke2fs and e2fsck, specifying the -c option twice will now do
60 a read/write test on the disk.  Update the man pages to encourage
61 using the -c option, and to discouraging running badblocks separately,
62 since users tend to forget to set the blocksize when running 
63 badblocks.
64
65 Mke2fs now automatically clears the immutable attribute on a
66 pre-existing .journal file left over from a previous failed attempt to
67 add a journal to an already-mounted filesystem.
68
69 Fixed mke2fs's exit codes to consistently indicate when the mke2fs
70 operation failed.
71
72 Mke2fs now creates the lost+found directory with permissions of 0700,
73 so that files that had previously lived in protected directory are
74 safe if they get dropped in lost+found and the system administrator
75 doesn't deal with immediately.  (Addresses Debian #bug 118443)
76
77 Mke2fs and e2fsck (and all programs that use the
78 ext2fs_check_if_mounted function) will now properly identify that a
79 device is mounted, even in cases where devfs has confused things with
80 multiple devices names with the same identity, or if a dim-witted
81 system administrator has done something stupid like creating device
82 file aliases in their home directory.  Also now checks for swap devices
83 by using /proc/swaps.  (Addresses Debian bug #106622)
84
85 Added a new option (-T) to tune2fs which sets the time a filesystem
86 was last checked.
87
88 Speed up e2image when creating sparse raw image files by optimizing
89 away excess lseek() system calls.
90
91 Fix support of large (> 2GB) files when used as a filesystem in
92 mke2fs, tune2fs, debugfs, and findsuper.
93
94 Debugfs's stat and icheck commands now properly deals with large (>
95 2GB) files.
96
97 Debugfs's set_super_value command now prints out the list of valid
98 superblock fields which can be set using the command.
99
100 Debugfs's rm and kill_file command now updates the superblock free block
101 and inode counts, thus keeping the filesystem consistent.
102
103 Debugfs's lsdel command now takes an optional argument which allows
104 the user to only see the most recently deleted files.
105
106 A new command (undel) was added to debugfs which automates
107 undeleting a deleted inode and linking it back to a directory.
108
109 Debugfs's ls command now takes a new option, -d, which lists 
110 deleted directory entries.
111
112 Debugfs's testb, freeb, setb, and find_free_block commands now take an
113 optional count argument.
114
115 Add support for a new ext2 file attribute, EXT2_NOTAIL_FL, which will
116 be used to signal that a particular inode should not be eligible for
117 tail-merging --- this is needed for programs like LILO.
118
119 The findsuper (an unreleased, uninstalled utility program) has been
120 improved to add extra validity checks and to add a progress meter.
121 (It is still an unsupported program; the officially supported way to
122 recover from a trashed partition table is to use gpart; findsuper is
123 for wizards only.  :-)
124
125 Debugfs was fixed to compile with "configure --disable-swapfs".
126
127 Cleaned up various manual pages.   (Addresses Debian bug #119624, #120171)
128
129 Added new translation file for Turkish.
130
131 Programmer's notes:
132 -------------------
133
134 Fix general gcc -Wall complaints.
135
136 E2fsprogs (mostly) works with the dietlibc.
137
138 The programming texinfo file has been expanded to include description
139 of additional libext2fs functions.  (Still not completely done, but a
140 lot of the more important functions have been documented.)
141
142 Added a umask structure to struct_ext2_filsys, which currently only
143 modifies the behaviour of ext2fs_mkdir(), but if we add any file
144 creation functions to libext2fs, we should also make sure they respect
145 the umask setting.
146
147 The build-rpm script was fixed to be a bit more safe.
148
149 The tests' Makefile now has a way of automating test case creation 
150 for e2fsck, using "make testnew".
151
152 Created a new function, ext2fs_dir_iterate2 which passes more
153 information to the callback function (identical to the one used by
154 ext2fs_dblist_dir_iterate).  The directory iterator functions take a
155 new flag, DIRENT_FLAG_INCLUDE_REMOVED, which will return deleted
156 directory entries.  If the directory entry is deleted, the callback
157 function will be called with the entry parameter set to
158 DIRENT_DELETED_FILE.
159   
160 Added new functions, ext2fs_inode_alloc_stats and
161 ext2fs_block_alloc_stats, which takes updates block/inode allocation
162 statistics in the bitmaps, block group descriptors, and superblock
163 when inodes or blocks are allocated or deallocated.
164