blob: 60af1f22592c507c0f55f611108cff67dcedec2c [file] [log] [blame]
Theodore Ts'oc461e161999-01-12 23:40:01 +00001User request:
2
3BTW: Could you please add some sort of deleted and possibly corrupted file
4 and inode list to e2fsck report. There should be filenames deleted
5 from directory inodes, files with duplicate blocks e.t.c.
6 It's pretty annoying to filter this information from e2fsck output
Theodore Ts'oe2e69ba1999-06-18 01:13:31 +00007 by hand :-
8
9------------------------------------------
10
11Add a "answer Yes always to this class of question" response.
12
13----------------------------------
14
15ext2fs_flush() should return a different error message for primary
16versus backup superblock flushing, so that mke2fs can print an
17appropriate error message.
18
Theodore Ts'oe2e69ba1999-06-18 01:13:31 +000019---------------------------------
Theodore Ts'oe2e69ba1999-06-18 01:13:31 +000020Date: Mon, 08 Mar 1999 21:46:14 +0100
21From: Sergio Polini <s.polini@mclink.it>
22
23
24I'm reading the sorce code of e2fsck 1.14.
25In pass2.c, lines 352-357, I read:
26
27if ((dirent->name_len & 0xFF) > EXT2_NAME_LEN) {
28 if (fix_problem(ctx, PR_2_FILENAME_LONG, &cd->pctx)) {
29 dirent->name_len = EXT2_NAME_LEN;
30 dir_modified++;
31 }
32}
33
34I think that I'll never see any messages about too long filenames,
35because "whatever & 0xFF" can never be "> 0xFF".
36Am I wrong?
37--------------------------------------
38
Theodore Ts'oe2a99be1999-07-19 15:48:08 +000039Add chmod command to debugfs.
Theodore Ts'oe2e69ba1999-06-18 01:13:31 +000040
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000041------------------------------------------
42
Theodore Ts'o24ded091999-11-10 15:56:16 +000043Maybe a bug in debugfs v.1.14:
44if a file has more than one hardlink, only the first filename is shown when
45using command
46 ncheck <inode>
47
48------------------------------------
Theodore Ts'ofdbba5c2000-02-08 23:16:51 +000049
50Add a filesystem creation date to the superblock
51
52-----------------------------------
53Date: Tue, 18 Jan 2000 17:54:53 -0800 (PST)
54From: Alan Blanchard <alan@abraxas.to>
55To: tytso@MIT.EDU
56Subject: DEBUGFS - thanks and a feature idea
57Content-Type: TEXT/PLAIN; charset=US-ASCII
58
59Theodore:
60
61First, let me thank you for writing debugfs. Recently, my Linux box
62(RH 6.0, 400 MHz PIII, on a DSL line) was hacked into. The intruder did
63an "rm -Rf" on a 34 GB drive with about 5GB of data on it. I was able to
64restore essentially the entire thing with debugfs and a bit of C code and Perl.
65Actually, I could have done the entire thing with debugfs and Perl, but I
66thought it would be too slow.
67
68During this exercise, I noticed that one small feature was lacking that would
69have made my job a bit easier. The length of a deleted directory is
70reported as 0, hence debugfs won't dump the contents of the directory to a
71file using the "dump" command. The only thing that saved me was that the
72list of disk blocks is not zeroed out. I was able to dump the contents of the
73directories by using debugfs to get the relevant block numbers, then
74using dd to get the actual data.
75
76If debugfs had a feature where it ignored the size of a directory reported by
77the inode and instead just dumped all the blocks, it would have facilited
78things a bit. This seems like a very easy feature to add.
79
80Again, thanks for writing debugfs (and all the other Linux stuff you've written!).
81
82Cheers,
83Alan Blanchard
84alan@abraxas.to
85
86
87-------------------------------------------------------------------
88
89Date: Fri, 21 Jan 2000 14:07:12 -0800
90From: "H. Peter Anvin" <hpa@www.transmeta.com>
91Subject: mkfs -cc and fsck -c
92
Theodore Ts'ofdbba5c2000-02-08 23:16:51 +000093b) An option to mkfs to zero the partition. Yes, it can be done with
94dd, but it would be a nicer way of doing it.
95
Theodore Ts'o19178752000-02-11 15:55:07 +000096------------------------------------------------------------------
97
98Add support for in ext2fs_block_iterate() for a returning the
99compressed flag blocks to block_iterate. Change default to not return
100EXT2_COMPRESSED_BLKADDR. Change e2fsck to pass this flag in.
101
102(The old compression patches did this by default all the time, which
103is bad, since it meant e2fsck never saw the EXT2_COMPRESSED_BLKADDR
104flagword.
105
106------------------------------------------------------------
107
108E2fsck should offer to clear all the blocks in an indirect block, not
109the entire inode, so there's better recovery for when an indirect
110block gets trashed.
111
112
Theodore Ts'occ73e042000-04-06 23:05:32 +0000113-------------------------------------------------------------
114
115From: Yann Dirson - LOGATIQUE <Yann.Dirson@France.Sun.COM>
116Date: Thu, 2 Mar 2000 13:52:13 +0100 (MET)
117
118During my experiments on the broken system, I noticed the following in
119the badblocks program (which I'm aware is not designed for IDE drives)
120- I'd probably have already fixed them if my home system was up :(
121
122* the syntax summary documents 2nd arg as blocks_count, which should
123probably read something like end_count.
124
125* testing past end of device is not detected, and lists those blocks
126as bad, whereas they simply do not exist.
127
128
129I think I'll probably add a "max count" option to findsuper(8), so
130that I do not have to wait for the whole disk to be scanned when the
131system had to be launched with "init=/bin/sh", in which case Ctrl-[CZ]
132and friends appear to be absolutely ignored.
133
134
135Somewhat unrelated, I just noticed the
136http://web.mit.edu/tytso/www/linux/ext2.html could be updated:
137
Theodore Ts'occ73e042000-04-06 23:05:32 +0000138- could mention SGI xfs (http://oss.sgi.com/projects/xfs/ - they just
139 release 0.03 snapshot)
140
141----------------------------------------------------------------
142
143Return-Path: <tytso@MIT.EDU>
144Date: Thu, 10 Feb 2000 13:20:14 -0500
145From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
146To: R.E.Wolff@BitWizard.nl
147In-Reply-To: Rogier Wolff's message of Thu, 10 Feb 2000 08:46:30 +0100 (MET),
148 <200002100746.IAA24573@cave.bitwizard.nl>
149Subject: Re: e2fsck request for enhancement.
150Phone: (781) 391-3464
151
152 Date: Thu, 10 Feb 2000 08:46:30 +0100 (MET)
153 From: R.E.Wolff@BitWizard.nl (Rogier Wolff)
154
155 Lately, while trying to recover a broken disk, my system froze (twice,
156 until I tried something else) while copying the disk.
157
158 So I had a file of about 50Mb that was growing frantically at the
159 moment of the crash.
160
161 e2fsck, then finds an indirect block that is completely bogus. It
162 starts by asking me if it's ok to clear a few of the referenced
163 blocks. I say yes. Then it comes to the conclusion:
164
165 too many invalid blocks. Clear inode?
166
167 and then I get the option to delete the whole file. Not to truncate
168 the file to a "working" size.
169
170
171 I'd MUCH rather have e2fsck say something like:
172
173 inode 1234 references an invalid block 134345454. Hmm.
174 inode 1234 references 567 out of 50176 invalid blocks,
175 all near the end. Truncate file to 49152 blocks?
176
177 Here you can see that of the 1024 blocks near the end of the file,
178 only 567 were detected as invalid. However now 48Mb of the file will
179 be recovered, instead of thrown away.
180
181That's a good point. Actually, the right thing is for e2fsck to offer
182to clear all of the bad blocks in a particular indirect block. I don't
183know how hard it would be to do that, but I'll put it on my e2fsprogs
184TODO list.
185
186 - Ted
187
Theodore Ts'od3cd93c2000-10-24 18:33:16 +0000188-----------------------------------------------------------------
Theodore Ts'o0cf43d82001-05-11 05:12:07 +0000189
190Debugfs's link command should set the file type information
191
192---------------------------------------------------------------
Theodore Ts'o151c86a2003-07-25 07:03:00 -0400193From e2fsprogs Debian TODO file as of 1.10-13.
194
195* Maybe make -dbg packages. Look at how others do it.
196