blob: 9964624c46e77197f65f239b63171c1dd73e9283 [file] [log] [blame]
Theodore Ts'o4bb0c042001-06-01 15:22:38 +000012001-06-01 Theodore Tso <tytso@valinux.com>
2
3 * logdump.c (read_journal_block): Replace pread with lseek/read
4 combination.
5
Theodore Ts'obb185862001-05-25 17:35:00 +000062001-05-25 Theodore Tso <tytso@valinux.com>
7
8 * Release of E2fsprogs 1.20
9
Theodore Ts'o54c637d2001-05-14 11:45:38 +0000102001-05-14 Theodore Tso <tytso@valinux.com>
11
12 * debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
13
Theodore Ts'o777ebb32001-05-13 02:45:15 +0000142001-05-12 Theodore Tso <tytso@valinux.com>
15
16 * debugfs.c (print_features): Use fputs instead of printf to
17 output using the passed-in FILE *.
18
Theodore Ts'o085cb192001-05-09 06:09:12 +0000192001-05-09 Theodore Tso <tytso@valinux.com>
20
21 * debugfs.c (do_write, do_mknod): Set the file type information
22 when creating the inode.
23
Theodore Ts'o59cf7e02001-05-03 15:05:55 +0000242001-05-03 Theodore Tso <tytso@valinux.com>
25
26 * debugfs.c (do_open_filesys, main): Add -i option which will
27 allow debugfs to examine ext2 image files.
28
Theodore Ts'oda81e3f2001-03-29 20:49:58 +0000292001-03-29 Theodore Tso <tytso@valinux.com>
30
31 * debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
32 internal_dump_inode() interface for the logdump command.
33
34 * logdump.c: Imported code from Stephen Tweedie to dump the ext3
35 journal.
36
Theodore Ts'o0a24c002001-03-18 18:16:18 +0000372001-03-18 Theodore Tso <tytso@valinux.com>
38
39 * debugfs.c (do_write, do_mknod): Remove extra (useless) call to
40 ext2fs_write_inode.
41
Theodore Ts'ob74d1d82001-01-12 17:23:52 +0000422001-01-12 Theodore Ts'o <tytso@valinux.com>
43
Theodore Ts'o426d7342001-01-13 01:29:05 +000044 * setsuper.c: Cleaned up some random whitespace problems.
45
46 * debugfs.h, debugfs.c (do_show_super_stats): Use full words
Theodore Ts'ob74d1d82001-01-12 17:23:52 +000047 instead of pluralism hack to make I18N conversion easier.
48 Clean up gcc -Wall complaints.
49
Theodore Ts'ob044c2e2001-01-11 15:26:39 +0000502001-01-11 <tytso@snap.thunk.org>
51
52 * debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
53 setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few
54 minor gcc-wall complaints while we're at it.
55
Theodore Ts'o5dd8f962001-01-01 15:51:50 +0000562001-01-01 <tytso@snap.thunk.org>
57
58 * debugfs.c Replace use of struct ext2fs_sb with struct
59 ext2_super_block.
60
Theodore Ts'o3db93052000-12-30 20:26:31 +0000612000-12-30 <tytso@snap.thunk.org>
62
Theodore Ts'oc5de1d42000-12-31 01:39:54 +000063 * dump.c (fix_perms): Fix bug for systems which don't have fchown;
64 was incorrectly using chmod instead of chown.
65
Theodore Ts'o3db93052000-12-30 20:26:31 +000066 * setsuper.c (find_field): Strip the s_prefix if given for ssv
Theodore Ts'oc5de1d42000-12-31 01:39:54 +000067 fields. Remove hard-coded s_ from inode_size
68 field. (Suggested by Andreas Dilger)
Theodore Ts'o3db93052000-12-30 20:26:31 +000069
70 * debugfs.c (do_modify_inode): Add the ability to set the inode
71 generation number. (Suggested by Andreas Dilger)
72
Theodore Ts'o9131a752000-08-23 04:36:25 +0000732000-08-23 <tytso@valinux.com>
74
75 * util.c (string_to_inode): Use strtoul instead of atoi, so that
76 hex inode numbers will be accepted.
77
Theodore Ts'o2c4a5402000-08-19 17:33:28 +0000782000-08-19 <tytso@valinux.com>
79
80 * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
81 out of the pager doesn't blow away debugfs.
82
Theodore Ts'o0a3db932000-08-14 17:06:05 +0000832000-08-14 <tytso@valinux.com>
84
Theodore Ts'obd09eff2000-08-14 20:39:17 +000085 * debugfs.c (do_show_super_stats): Use list_super2() instead of
86 using explicit printf statements. (We get a more complete
87 printout this way.)
88
Theodore Ts'oc6bd0c92000-08-14 20:37:09 +000089 * util.c (open_pager): If the PAGER environment variable is not
90 set, default to using "more".
91
92 * setsuper.c: New function which implements the set_super_value
93 command. Allows the user to set arbitrary superblock
94 fields.
95
Theodore Ts'o0a3db932000-08-14 17:06:05 +000096 * debugfs.c (dump_inode): Cap the length when printing a fast
97 symbolic link to inode.i_size.
98 (list_blocks_proc): Print block ranges (4510-4533) to make
99 the stat output easier to read.
100
Theodore Ts'oa5eef732000-08-14 15:47:15 +00001012000-06-27 Andreas Dilger <adilger@turbolabs.com>
102
103 * debugfs.c (list_blocks_proc): show relative inode block numbers
104 and/or indirect block status
105
Theodore Ts'of9e67062000-07-13 23:25:54 +00001062000-07-13 <tytso@valinux.com>
107
108 * Release of E2fsprogs 1.19
109
Theodore Ts'o14197172000-07-05 17:48:34 +00001102000-07-05 Theodore Ts'o <tytso@valinux.com>
111
112 * debugfs.c (dump_inode): Make the generation field be printed as
113 an unsigned integer.
114
Theodore Ts'o619dd192000-07-04 12:37:55 +00001152000-07-04 <tytso@snap.thunk.org>
116
117 * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
118 mk_cmds support files from the source tree.
119
Theodore Ts'oee753092000-06-09 04:24:36 +00001202000-06-09 <tytso@snap.thunk.org>
121
122 * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
123
Theodore Ts'od61f6172000-05-27 16:04:00 +00001242000-05-27 Theodore Ts'o <tytso@valinux.com>
125
126 * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
127 coredumping if the bitmaps aren't loaded.
128
129 * util.c (check_fs_bitmaps): New function which checks whether or
130 not the bitmaps are loaded.
131
Theodore Ts'o2e8d40d2000-05-27 15:15:40 +00001322000-05-23 Aaron Crane <aaronc@pobox.com>
133
134 * debugfs.8.in: Documented new behaviour.
135
136 * ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for
137 recent files. Switched to 4-digit years.
138
139 * dump.c, debug_cmds.ct (do_rdump): Add new debugfs command
140 "rdump", which recursively dumps a directory and its
141 contents.
142 (fix_perms): New function. Break permission-fixing
143 code out of dump_file() so it can be called by rdump
144 code as well.
145 (dump_file): Call fix_perms().
146
147 * debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command
148 "lcd", which changes the cwd on the native filesystem.
149
150 * debugfs.c (open_filesystem): Extra args for superblock,
151 blocksize, and catastrophic mode. Changed callers.
152 (do_open_filesys, main): Accept new -b, -s, -c options
153 for open_filesystem.
154
Theodore Ts'o80e808f2000-02-02 16:19:59 +00001552000-02-02 Theodore Ts'o <tytso@valinux.com>
156
157 * debugfs.c (dump_inode): Remove #ifdef for i_version
158 vs. i_generation since we know it will always be
159 i_generation now.
160
Theodore Ts'o77200f42000-01-18 17:53:27 +00001612000-01-18 Theodore Ts'o <tytso@valinux.com>
162
Theodore Ts'oe5973042000-01-18 17:58:34 +0000163 * debugfs.c (main): Use return instead of exit at the end of main
164 to avoid some compiler warnings.
165
Theodore Ts'o77200f42000-01-18 17:53:27 +0000166 * Makefile.in: Since LIBUUID can sometimes include
167 "-lsocket" we need a separate DEPLIBUUID that can be used
168 in Makefile's dependency rules.
169
Theodore Ts'o5c36a2f1999-11-19 18:42:30 +00001701999-11-19 <tytso@valinux.com>
171
172 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
173 the source directory.
174
Theodore Ts'ocd086361999-11-10 16:00:39 +00001751999-11-10 <tytso@valinux.com>
176
177 * Release of E2fsprogs 1.18
178
Theodore Ts'o643efb81999-11-08 19:27:13 +00001791999-11-08 <tytso@valinux.com>
180
181 * icheck.c (do_icheck):
182 * ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns
183 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad
184 blocks in the inode table.
185
Theodore Ts'of68aa411999-10-26 14:20:22 +00001861999-10-26 <tytso@valinux.com>
187
Theodore Ts'o28e11941999-10-26 18:17:20 +0000188 * Release of E2fsprogs 1.17
189
1901999-10-26 <tytso@valinux.com>
191
Theodore Ts'of68aa411999-10-26 14:20:22 +0000192 * debugfs.h: Add declaration for do_features()
193
194 * debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
195
Theodore Ts'o601002b1999-10-26 02:06:39 +00001961999-10-25 <tytso@valinux.com>
197
198 * debugfs.c (do_dirty_filesys): Make the "dirty" command clear the
199 valid bit on the superblock. (And with a -clean option to
200 set the valid bit.) Originally it was used just to set
201 the "needs to be written" bit in the in-core version of
202 the fs structure.
203
Theodore Ts'o614fdfd1999-10-23 03:19:51 +00002041999-10-22 <tytso@valinux.com>
205
206 * Release of E2fsprogs 1.16
207
Theodore Ts'od3aea7d1999-09-14 20:55:37 +00002081999-09-07 <tytso@rsts-11.mit.edu>
209
210 * debugfs.c, debug_cmds.ct: Add new debugfs command "feature"
211 which allows the user to set or clear filesystme features.
212 Add the -f (force) option to the open command. Add the
213 -h (superblock header only) option to the stats command.
214
Theodore Ts'o55376d81999-07-31 00:32:57 +00002151999-07-30 <tytso@rsts-11.mit.edu>
216
217 * debugfs.c (dump_inode): Fix debugfs message so it is the same
218 for when compiled under either Linux 2.2 or 2.3. This
219 allows for the f_swapfs regression test suite to work
220 regardless of which OS e2fsprogs was compiled on.
221
Theodore Ts'o657cb971999-07-30 23:19:10 +00002221999-07-18 Theodore Ts'o <tytso@rsts-11.mit.edu>
223
224 * Release of E2fsprogs 1.15
225
Theodore Ts'ob41d3601999-06-25 15:32:37 +00002261999-06-23 <tytso@valinux.com>
227
228 * debugfs.c (dump_inode): Add compatibility for Linux 2.3 kernels
229 that use i_generation instead of i_version. Patch
230 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
231
Theodore Ts'oce5ee991999-02-19 18:56:43 +00002321999-02-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
233
234 * icheck.c (do_icheck): Check to make sure the inode has valid
235 blocks before iterating over that inode's blocks.
236
Theodore Ts'o9e51eca1999-01-09 16:32:31 +00002371999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
238
239 * Release of E2fsprogs 1.14
240
Theodore Ts'o556ad131998-12-19 08:10:58 +00002411998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
242
243 * Release of E2fsprogs 1.13
244
Theodore Ts'odba838b1998-12-04 06:15:12 +00002451998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
246
247 * Makefile.in: Updated dependencies.
248
Theodore Ts'o91d6d481998-08-01 01:03:39 +00002491998-07-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
250
251 * debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't
252 displaying the error message if ext2fs_read_inode() failed.
253 (do_rm): Fix similar problem for call to ext2fs_namei().
254
Theodore Ts'o4a5fa191998-07-09 05:42:45 +00002551998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
256
257 * Release of E2fsprogs 1.12
258
Theodore Ts'o818180c1998-06-27 05:11:14 +00002591998-06-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
260
261 * debugfs.c: Add a -V option which displays the current version.
262
Theodore Ts'o7e44f241998-04-01 03:16:29 +00002631998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
264
265 * Makefile.in: Change to use new installation directory variables
266 convention. Fix installdirs and uninstall rules to reflect
267 the fact that debugfs has been installed in the root
268 filesystem. Fix uninstall rules to take $(DESTDIR) into
269 account.
270
Theodore Ts'o4a31c481998-03-30 01:27:25 +00002711998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
272
273 * debugfs.h: Add declaration for do_dirty_filsys() to prevent
274 -Wall warnings.
275
276 * debugfs.c (copy_file):
277 * dump.c (dump_file): Fix -Wall warning caused by
278 signed/unsigned mismatch.
279
Theodore Ts'o36a43d61998-03-24 16:17:51 +00002801998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu>
281
282 * debugfs.c, ls.c, lsdel.c: Add support for large files. (The
283 high 32 bits share space with the i_dir_acl field.)
284
Theodore Ts'occe382b1998-03-09 13:07:09 +0000285Sun Mar 8 22:53:04 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
286
287 * ls.c (list_dir_proc): Mask off high 8 bits from
288 dirent->name_len.
289
Theodore Ts'o5be8dc21997-12-01 18:24:10 +0000290Mon Dec 1 13:21:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
291
292 * Makefile.in: Install debugfs in /sbin, instead of /usr/sbin.
293
Theodore Ts'o5a513841997-10-25 22:41:14 +0000294Sat Oct 25 18:35:30 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
295
296 * debugfs.c (copy_file), dump.c (dump_file): Change to use the new
297 fileio primitives in libext2.
298
Theodore Ts'of1304811997-10-25 03:51:53 +0000299Fri Oct 24 23:47:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
300
301 * debugfs.c (main, do_open_filesys):
302 * dump.c (do_dump): Make the variable which getopt returns into be
303 an int, so that it won't lose on platforms where char is
304 unsigned.
305
Theodore Ts'ob4ac9cc1997-10-15 01:54:48 +0000306Tue Oct 14 21:50:24 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
307
308 * debugfs.c (main): When printing a usage message, have main
309 return 1 (instead of not specifying a return value, bad!)
310
Theodore Ts'oa8859ca1997-09-16 02:08:28 +0000311Mon Sep 15 22:03:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
312
313 * debugfs.c (main): Fix declaration of main so that it returns an int.
314
Theodore Ts'o024996c1997-06-17 05:38:35 +0000315Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
316
317 * Release of E2fsprogs 1.11
318
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000319Thu May 8 23:05:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
320
321 * debugfs.8.in: Fix minor typos and grammer oops found by Bill
322 Hawes (whawes@star.net).
323
Theodore Ts'oa29f4d31997-04-29 21:26:48 +0000324Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
325
326 * Release of E2fsprogs version 1.10
327
328Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
329
330 * Release of E2fsprogs version 1.09
331
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +0000332Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
333
334 * Release of E2fsprogs version 1.08
335
Theodore Ts'o521e3681997-04-29 17:48:10 +0000336Thu Apr 10 14:36:05 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
337
338 * ls.c: New file which implements the ls command. Added the -l
339 option.
340
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000341Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
342
343 * Release of E2fsprogs version 1.07
344
345Wed Jan 1 23:53:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
346
347 * lsdel.c (do_lsdel): Use time_to_string() instead of ctime().
348
349Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
350
351 * Release of E2fsprogs version 1.06
352
Theodore Ts'o5c576471997-04-29 15:29:49 +0000353Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
354
355 * Release of E2fsprogs version 1.05
356
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000357Mon Sep 9 23:05:11 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
358
359 * debugfs.c (unlink_file_by_name): If unlinking a file with a
360 directory path, correctly replace the slash with a NULL.
361 (do_show_debugfs_params): Don't try to print the open mode
362 if there's no filesystem opened (since that will cause a
363 core dump).
364 (main): Fix usage string; the -w and device elements are
365 independently optional.
366
367Tu Sep 3 15:09:39 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
368
369 * debugfs.c (main): Added -f option to debugfs, which takes a
370 command file of debugfs commands and executes them.
371
372Sat Aug 31 01:18:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
373
374 * debugfs.8.in: Heavily edited and improved manual page.
375
376 * dump.c (dump_file): Improve the write function for writing out
377 the file, so that it is limited to the actual size of the
378 file, instead of outputing the nulls following the EOF.
379 Make sure dump_file does the right thing for files with holes.
380 (do_dump): Add support for the -p option to the dump
381 command, which attempts to preserve the owner and
382 permissions field.
383
384Fri Aug 30 14:56:59 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
385
386 * debugfs.c (main): Add -R option to debugfs, which allows it to
387 take a single debugfs command on the command line.
388
389Fri Aug 9 09:03:31 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
390
391 * debugfs.c (do_open_filesys): Set optind to 0 to reset getopt(),
392 to be complete correct.
393 (do_show_super_stats): Print OS type, volume label, last
394 mounted directory, and UUID.
395 (dump_inode): Print the fragment information in a
396 filesystem independent way.
397 (do_modify_inode): Modify the fragement information in a
398 filesystem independent way.
399
Theodore Ts'o62c06f71997-04-29 14:34:47 +0000400Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
401
402 * Release of E2fsprogs version 1.04
403
404Wed May 3 20:41:26 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
405
406 * debugfs.c (dump_inode): Correctly print the translator on the hurd.
407 (do_modify_inode): Modify the translator block on the hurd.
408
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000409Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
410
411 * Release of E2fsprogs version 1.03
412
Theodore Ts'o74becf31997-04-26 14:37:06 +0000413Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
414
415 * Release of E2fsprogs version 1.02
416
417Fri Dec 1 22:42:31 1995 <tytso@rsts-11.mit.edu>
418
419 * Makefile.in (LIBS): Rearrange the order of the libraries to be
420 linked, so that -lext2fs is before -lcom_err.
421
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000422Thu Oct 26 12:05:06 1995 <tytso@rsts-11.mit.edu>
423
424 * Makefile.in (install): Strip programs when they are installed.
425
426Fri Aug 18 15:09:08 1995 Theodore Y. Ts'o <tytso@dcl>
427
428 * debugfs.c (do_find_free_block): Fix typo in code which checked
429 to see if the usage message should be printed.
430
431Thu Aug 17 22:55:58 1995 <tytso@rsts-11.mit.edu>
432
433 * debugfs.c (do_open_filesys): Change to always set optreset to 1,
434 to make BSD getopt()'s happy. Also set optind to 1, which
435 should make more getopt()'s happy.
436
437Fri Aug 11 08:45:01 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
438
439 * debugfs.c (do_find_free_block, do_find_free_inode): Fix bug in
440 the usage handling where "ffi ?" or "ffb ?" would
441 dereference a NULL pointer.
442
443Fri Aug 11 14:21:07 1995 Remy Card <card@bbj>
444
445 * debugfs.8: Updated date and version number.
446
447Thu Aug 10 14:28:50 1995 Remy Card <card@bbj>
448
449 * debugfs.8: Fixed a spelling error in Ted's name :-)
450
451Mon Jun 12 19:08:25 1995 Theodore Y. Ts'o (tytso@dcl)
452
453 * debugfs.c, ncheck.c, icheck.c, lsdel.c, dump.c: Include
454 <errno.h> (if it exists)
455
456 * debugfs.c, dump.c, icheck.c, lsdel.c, ncheck.c: Don't include
457 <getopt.h> if it doesn't exist.
458
459Sun Jun 11 15:21:07 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
460
461 * ncheck.c (do_ncheck): Use LINUX_S_ISDIR instead of S_ISDIR
462
463 * debugfs.c: Implement the mknod and write commands (from Linus).
464
465 Change names of modify_char, modify_short, and modify_long
466 to be modify_u8, modify_u16, and modify_u32, respectively.
467
468Thu Jun 8 12:29:15 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
469
470 * debugfs.c (dump_inode): Only print out inode frag fields if
471 HAVE_EXT2_FRAGS is defined (by configure). Don't print out the
472 reserved field at all for now.
473
474 * Makefile.in: Rewritten to conform to GNU coding standards and
475 support separate compilation directories.
476
Theodore Ts'o6f4a1091997-04-26 13:32:25 +0000477Thu Nov 24 17:46:23 1994 Theodore Y. Ts'o (tytso@rt-11)
478
479 * dump.c: Added two new commands, "dump" and "cat", which allow
480 the user to dump the contents of an inode to a file or to
481 stdout, respectively.
482
483