]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - debugfs/ChangeLog
debugfs.c (do_stat): Check to make sure a filesystem is open
[thirdparty/e2fsprogs.git] / debugfs / ChangeLog
1 2005-05-05 Theodore Ts'o <tytso@mit.edu>
2
3 * debugfs.c (do_stat): Check to make sure a filesystem is open
4 and abort if with an error if not, to prevent a seg fault
5 in that case.
6
7 2005-03-21 Theodore Ts'o <tytso@mit.edu>
8
9 * Release of E2fsprogs 1.37
10
11 2005-03-21 Theodore Ts'o <tytso@mit.edu>
12
13 * debugfs.c (internal_dump_inode_extra): Print the size of
14 the inode's extra fields.
15
16 2005-03-20 Theodore Ts'o <tytso@mit.edu>
17
18 * util.c (debugfs_write_new_inode): New function
19
20 * debgufs.c (do_write, do_mknod): Call ext2fs_write_new_inode()
21 instead of ext2fs_write_inode().
22
23 * debugfs.c (do_stat): Add support for dumping extended attributes
24 which are stored in the inode body.
25
26 * util.c (debugfs_read_inode_full): new function
27
28 2006-02-05 Theodore Ts'o <tytso@mit.edu>
29
30 * Release of E2fsprogs 1.36
31
32 2005-02-03 Theodore Ts'o <tytso@mit.edu>
33
34 * set_fields.c: Define _XOPEN_SOURCE to be 500 to fix compilation
35 problems on Solaris.
36
37 2005-01-20 Theodore Ts'o <tytso@mit.edu>
38
39 * set_fields.c: Add support for the jnl_blocks[] for set_super_value
40
41 2005-01-19 Matthias Andree <matthias.andree@gmx.de>
42
43 * set_fields.c: Add _XOPEN_SOURCE #define on all but Solaris
44 systems so that strptime() gets defined.
45 (parse_bmap): Add missing return statement.
46
47 2005-01-07 Theodore Ts'o <tytso@mit.edu>
48
49 * debug_cmds.ct: Make the official name of set_inode be
50 set_inode_field, since it is more intuitive.
51
52 * set_fields.c (print_possible_fields): Document bmap[] in
53 "set_inode_field -l" listing. Change name of set_inode to
54 set_inode_field in usage message.
55
56 2004-12-23 Theodore Ts'o <tytso@mit.edu>
57
58 * set_fields.c: Add support for array indexes, which we use for
59 the i_block[] array. Also add the pseudo inode field
60 bmap, which can be used for setting logical->physical
61 mappings directly.
62
63 2004-12-21 Theodore Ts'o <tytso@mit.edu>
64
65 * setfields.c: Renamed from setsuper.c
66 Added support to set date/time fields.
67 Added support for setting superblock values wtime, mtime,
68 lastcheck, and mkfs_time as date/time fields.
69 Added support for the set_inode command.
70 * debugfs.h, debug_cmds.ct, debugfs.8.in: Added set_inode command
71
72 2004-12-16 Theodore Ts'o <tytso@mit.edu>
73
74 * setsuper.c: Add definitions for newer superblock fields:
75 reserved_gdt_blocks, jnl_backup_type, default_mount_opts,
76 first_meta_bg, and mkfs_time.
77
78 2004-12-14 Theodore Ts'o <tytso@mit.edu>
79
80 * Makefile.in: Move strip command to install-strip target.
81 Use Linux-kernel-style makefile output for "make install"
82
83 * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
84
85 2004-11-30 Theodore Ts'o <tytso@mit.edu>
86
87 * util.c (time_to_string): If the TZ environment variable is set
88 to GMT, use gmtime() instead of localtime() or ctime() to
89 force the use of GMT. This is because the dietlibc
90 doesn't honor the TZ environment variable.
91
92 * Makefile.in: Use Linux-kernel-style makefile output to make it
93 easier to see errors/warnings.
94
95 2004-11-29 Theodore Ts'o <tytso@mit.edu>
96
97 * debugfs.c (do_open_filesys): Fix obvious uninitialized variable
98 buglet.
99
100 2004-11-19 Theodore Ts'o <tytso@mit.edu>
101
102 * debugfs.c (kill_file_by_inode): Only iterate over the inode to
103 release blocks if the inode has them; otherwise attempting
104 to rm devices and fast symlinks will lead to errors.
105 (Addresses Sourceforge Bug #954741 and #957244)
106
107 2004-07-28 Theodore Ts'o <tytso@mit.edu>
108
109 * debugfs.c, debugfs.8.in: Add new option -d which allows the
110 system administrator to specify data source of a
111 filesystem being opened via an e2image file.
112
113 2004-04-11 Theodore Ts'o <tytso@mit.edu>
114
115 * util.c (open_pager): Use DEBUGFS_PAGER in preference to PAGER
116 (Addresses Debian Bug #239547)
117
118 2004-04-03 Theodore Ts'o <tytso@mit.edu>
119
120 * Makefile.in: Update the modtime even if subst doesn't need to
121 update the debugfs man page, to avoid always re-running
122 subst, especially since there are no dependencies on the
123 man page.
124
125 2004-03-20 Theodore Ts'o <tytso@mit.edu>
126
127 * debugfs.c (make_link): Set the filetype information when
128 creating a link.
129
130 2004-02-28 Theodore Ts'o <tytso@mit.edu>
131
132 * Release of E2fsprogs 1.35
133
134 2004-02-23 Theodore Ts'o <tytso@mit.edu>
135
136 * debugfs.c (internal_dump_inode): Display the major/minor device
137 numbers for block/character devices.
138 (do_mknod): Add support for new-style device numbers (where
139 the major or minor number is greater than 255 and less
140 than 65535). (Addresses Sourceforge bug #865289)
141
142 2004-02-21 Theodore Ts'o <tytso@mit.edu>
143
144 * debugfs.8.in: Fix the debugfs man page to reference the
145 init_filesys command, instead of "initialize". (Addresses
146 Debian Bug #232406)
147
148 2004-02-14 Theodore Ts'o <tytso@mit.edu>
149
150 * debugfs.c (internal_dump_inode): Correctly deal with symlinks
151 that have extended attribute information. (Addresses
152 Debian Bug #232328)
153
154 2004-01-24 Theodore Ts'o <tytso@mit.edu>
155
156 * debugfs.8.in: Document the PAGER and DEBUGFS_PAGER environment
157 variables.
158
159 * util.c (open_pager): Use the "more" pager in preference to
160 "less", since "less" doesn't work terribly well for
161 debugfs's purpose.
162
163 2003-12-25 Theodore Ts'o <tytso@mit.edu>
164
165 * util.c (open_pager): Try to use the DEBUGFS_PAGER environment
166 variable first, and then fall back to the PAGER
167 environment variable. Finally, search for an appropriate
168 pager executable.
169
170 2003-12-11 Theodore Ts'o <tytso@thunk.org>
171
172 * debugfs.c (do_write, do_mkdir): If the directory is full,
173 automatically call ext2fs_expand_dir() and then retry to
174 add the link to the directory as a convenience to the
175 user. (Addresses Debian Bug: #217892)
176 (do_mknod): Clean up expand_dir error handling.
177
178 2003-12-07 Theodore Ts'o <tytso@mit.edu>
179
180 * debugfs.c (do_write): Mask off the file type bits, and OR in the
181 regular file information. (Addresses Debian Bug: #217456)
182
183 * util.c (open_pager): Search for the pager to use, starting with
184 'pager', and then falling back to 'less' and then 'more'.
185 (Addresses Debian Bug: #221977)
186
187 * debugfs.c, debugfs.h, dump.c, htree.c, icheck.c, logdump.c,
188 ls.c, lsdel.c, ncheck.c, setsuper.c, unused.c: Fix gcc
189 -Wall nitpicks.
190
191 2003-08-24 Theodore Ts'o <tytso@mit.edu>
192
193 * debugfs.8.in: Adjust description line so that apropos
194 "ext2" or "ext3" will find the man page. (Addresses
195 Debian Bug #206845)
196
197 2003-08-21 Theodore Ts'o <tytso@mit.edu>
198
199 * debugfs.8.in: Fully document the logdump command in the debugfs
200 man page.
201
202 * logdump.c (do_logdump): Add -s option which will use the journal
203 inode information in the superblock.
204
205 2003-07-25 Theodore Ts'o <tytso@mit.edu>
206
207 * Release of E2fsprogs 1.34
208
209 2003-07-06 Theodore Ts'o <tytso@mit.edu>
210
211 * debugfs.c (do_imap): Fix gcc -Wall nitpicks (printf format types).
212
213 2003-05-21 Theodore Ts'o <tytso@mit.edu>
214
215 * unused.c (do_dump_unused): Add new command which dumps the
216 unused blocks. (Initial implementation; currently only
217 dumps the output to stdout.)
218
219 2003-05-13 root <tytso@mit.edu>
220
221 * util.c (reset_getopt), debugfs.c (do_open_filesys,
222 do_show_super_stats), ls.c (do_list_dir), dump.c (do_dump),
223 htree.c (do_htree_dump, do_dx_hash), logdump.c (do_logdump):
224 Define and use a new function, reset_getopt(), which does whatever
225 is necessary to reset getopt() again. This is different for
226 different implementations, so the portabilty issues are a bit of a
227 nightmare. (Addresses Debian bug #192834)
228
229 2003-05-05 Theodore Ts'o <tytso@mit.edu>
230
231 * debugfs.c (do_imap), debugfs.h, debug_cmds.ct, debugfs.8.in:
232 Added new command, imap, which prints the location of a
233 specified inode in the inode table.
234
235 2003-04-21 Theodore Ts'o <tytso@mit.edu>
236
237 * Release of E2fsprogs 1.33
238
239 2003-03-16 Theodore Ts'o <tytso@mit.edu>
240
241 * Makefile.in (DLOPEN_LIB): Link in the libdl library if it is
242 present on the system.
243
244 * debugfs.c (main): Call ss_get_readline() to attempt to pull in
245 the readline library.
246
247 2003-03-06 Theodore Tso <tytso@mit.edu>
248
249 * debugfs.c (do_open_filesys, do_show_super_stats),
250 ls.c (do_list_dir), dump.c (do_dump), htree.c (do_htree_dump,
251 do_dx_hash), logdump.c (do_logdump): Reset optind to 1 for better
252 compatibility with non-glibc implementations of getopt.
253
254 2003-03-01 Theodore Ts'o <tytso@mit.edu>
255
256 * Makefile.in, logdump.c (do_logdump): Use the blkid functions to
257 find the external journal device.
258
259 2003-01-21 Theodore Ts'o <tytso@mit.edu>
260
261 * dump.c (do_dump): Open the output file with O_LARGEFILE so we
262 can write files larger than 2GB.
263
264 2002-11-09 Theodore Ts'o <tytso@mit.edu>
265
266 * Release of E2fsprogs 1.32
267
268 2002-11-08 Theodore Ts'o <tytso@mit.edu>
269
270 * Release of E2fsprogs 1.31
271
272 2002-10-31 Theodore Ts'o <tytso@mit.edu>
273
274 * Release of E2fsprogs 1.30
275
276 2002-10-31 Theodore Ts'o <tytso@mit.edu>
277
278 * debugfs.c (do_write): Check to see if the filename exists before
279 creating it, and give an error if so. Addresses
280 Sourceforge bug #478195.
281
282 2002-10-30 Theodore Ts'o <tytso@mit.edu>
283
284 * Makefile.in (install): Search all compression extensions when
285 deleting old man pages.
286
287 2002-10-13 Theodore Ts'o <tytso@mit.edu>
288
289 * debugfs.h, htree.c, setsuper.c: Fix gcc -Wall nits.
290
291 2002-10-02 Theodore Y. Ts'o <tytso@mit.edu>
292
293 * htree.c (htree_dump_leaf_node): Use ext2fs_read_dir_block2 so
294 that the directory entries are appropriately byte-swapped.
295
296 2001-09-24 Theodore Tso <tytso@mit.edu>
297
298 * Release of E2fsprogs 1.29
299
300 2002-09-22 root <tytso@mit.edu>
301
302 * htree.c (htree_dump_int_node): Flag continuation hashes to make
303 them easier to find.
304
305 2001-08-31 Theodore Tso <tytso@thunk.org>
306
307 * Release of E2fsprogs 1.28
308
309 2002-08-23 Theodore Ts'o <tytso@mit.edu>
310
311 * setsuper.c: Add support for the fields s_uuid, s_journal_uuid,
312 s_hash_seed, s_def_hash_version. Add routines for parsing
313 UUID's and hash algorithm identifiers.
314
315 2002-08-16 Theodore Ts'o <tytso@mit.edu>
316
317 * icheck.c (do_icheck): Check to see if the block is listed as
318 part of the extended attribute block.
319
320 2002-07-21 Theodore Ts'o <tytso@mit.edu>
321
322 * htree.c (do_htree_dump): Fix a bug where we were not cleanly
323 closing the pager after errors, which would leave the
324 tty in noecho mode.
325
326 2002-07-18 Theodore Ts'o <tytso@mit.edu>
327
328 * htree.c (htree_dump_int_node): Add byte swapping code sot that
329 the htree dump function works on a big-endian machine.
330
331 2002-07-15 Theodore Ts'o <tytso@mit.edu>
332
333 * debugfs.c (do_show_super_stats): Calculate and print the number
334 of directories on a filesystem --- because we can and
335 because it can be useful.
336
337 2002-07-09 Theodore Ts'o <tytso@mit.edu>
338
339 * debugfs.c (do_rmdir), debugfs.8.in: Implement the rmdir command.
340 Addresses Debian bug #138003.
341
342 2002-06-26 Theodore Ts'o <tytso@mit.edu>
343
344 * htree.c (do_dx_hash): Use new ext2fs_dirhash function signature.
345 Add getopt support so user can specify the hash version.
346
347 2002-05-11 <tytso@snap.thunk.org>
348
349 * debug_cmds.ct, debugfs.c (do_bmap): Add new command "bmap" which
350 calculates the logical->physical block mapping for an
351 inode.
352
353 * debugfs.c (do_init_filsys, main), util.c
354 (common_block_args_process): Fix bad calling parameter
355 order when calling parse_ulong. This broke the -b and -s
356 options to debugfs, as well as do_init, and the testb,
357 setb, clearb functions.
358
359 2002-04-01 <tytso@snap.thunk.org>
360
361 * util.c (parse_ulong): Fix typo which cases parse_ulong to
362 coredump if the err variable is filled in (for example, if
363 the -b or -s options are passed to the debugfs's
364 command-line invocation).
365
366 2002-03-11 Theodore Tso <tytso@mit.edu>
367
368 * ls.c (list_dir_proc): Fix bug: ls -l fails to print the file
369 type correctly if running on big-endian systems.
370
371 * htree.c (htree_dump_leaf_node): Use the ext2_dirhash function
372 instead of a local static function.
373
374 2002-03-08 Theodore Tso <tytso@mit.edu>
375
376 * Release of E2fsprogs 1.27
377
378 2002-03-07 <tytso@snap.thunk.org>
379
380 * ls.c (list_dir_proc): Fix typo in debugfs which was causing a
381 compiler warning.
382
383 2002-03-05 Theodore Tso <tytso@mit.edu>
384
385 * lsdel.c (do_lsdel): lsdel uses the pager to print out the list
386 of potentially deleted inode. Thanks to Jaroslav Drzik
387 <jdrzik@host.sk> for suggesting this enhancement.
388
389 * debugfs.c (do_modify_inode): Fix bug which caused modify_inode
390 to core dump if a fliesystem isn't open. Thanks to
391 Jaroslav Drzik <jdrzik@host.sk> for finding and reporting
392 the bug and his proposed fix.
393
394 2002-02-26 Theodore Tso <tytso@mit.edu>
395
396 * ls.c (list_dir_proc): When listing the directory entry in long
397 format, include the file type of the directory entry in
398 parenthesis.
399
400 2002-02-25 Theodore Tso <tytso@mit.edu>
401
402 * util.c (open_pager): If the PAGER environment is set to __none__
403 then don't use a pager at all, and ship it all to stdout.
404
405 * Makefile.in, debug_cmds.ct, htree.c: Add new file htree.c, which
406 implements the three new commands, htree_dump, dx_hash,
407 and dirsearch.
408
409 2002-02-24 Theodore Tso <tytso@mit.edu>
410
411 * Makefile.in (install): Remove any compressed man pages before
412 installing the man pages.
413
414 2002-02-03 Theodore Tso <tytso@thunk.org>
415
416 * Release of E2fsprogs 1.26
417
418 2002-01-03 Theodore Tso <tytso@mit.edu>
419
420 * lsdel.c (do_lsdel): New optional argument which allows the user
421 to only see the most recently deleted files.
422
423 * debugfs.c (do_undel, do_testb, do_freeb, do_setb, do_ffb): Add
424 new command, undelete, which automates undeleting a
425 deleted inode and linking it back to a directory. Add a
426 count argument to the testb, freeb, setb, and ffb commands.
427
428 * ls.c (list_dir_proc, do_list_dir): Add support for -d option
429 which lists deleted directory entries.
430
431 * debug_cmds.ct: Add new command, undelete.
432
433 * dump.c, icheck.c, logdump.c, ls.c, lsdel.c, setsuper.c,
434 debugfs.c: Use new utility functions which factor out
435 commonly used code.
436
437 * util.c (debugfs_read_inode, debugfs_write_inode,
438 common_block_args_process, common_inode_args_process,
439 common_args_process, strtoblk, parse_ulong): New
440 functions which factor out commonly used code into
441 subroutines for ease of maintenance and to make the
442 executable size smaller.
443
444 2001-12-23 Theodore Tso <tytso@mit.edu>
445
446 * Makefile.in, jfs_user.h: Move linux/jbd.h to
447 ext2fs/kernel-jbd.h, to avoid using the system header
448 file version of hbd.h when using diet glibc (since it
449 forcibly adds /usr/include to the beginning of the
450 include search path.)
451
452 2001-12-22 Theodore Tso <tytso@mit.edu>
453
454 * debugfs.c (kill_file_by_inode, release_blocks_proc): Update the
455 group descriptor free block and inode counts when deleting
456 or killing a file.
457
458 2001-12-16 Theodore Tso <tytso@mit.edu>
459
460 * setsuper.c (print_possible_fields),
461 logdump.c (dump_journal): Fix gcc -Wall nits
462
463 * Makefile.in, jfs_user.h: linux/jfs.h has been renamed to
464 linux/jbd.h
465
466 2001-12-02 Theodore Tso <tytso@mit.edu>
467
468 * util.c (close_pager): Use pclose() instead of fclose() when
469 closing the pager stream.
470
471 2001-11-30 Theodore Tso <tytso@mit.edu>
472
473 * debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
474 2GB support changes: you need to use %lld when printf'ing
475 an long long variable.
476
477 2001-11-24 Theodore Tso <tytso@mit.edu>
478
479 * debugfs.8.in: Update manual page to document the set_super_value
480 and logdump commands, and move the "specifying files"
481 section closer to the beginning of the man page so people
482 won't miss it.
483
484 * setsuper.c (print_possible_fields): "set_super_value -l" now
485 prints out the list of valid superblock fields which the
486 ssv command can set.
487
488 2001-09-20 Theodore Tso <tytso@thunk.org>
489
490 * Release of E2fsprogs 1.25
491
492 2001-09-02 Theodore Tso <tytso@thunk.org>
493
494 * Release of E2fsprogs 1.24a
495
496 2001-08-30 Theodore Tso <tytso@thunk.org>
497
498 * Release of E2fsprogs 1.24
499
500 2001-08-27 Theodore Tso <tytso@valinux.com>
501
502 * debugfs.c (main): Remove EXT2FS_VERSION from the version
503 display, since it only confuses people.
504
505 2001-08-15 Theodore Tso <tytso@valinux.com>
506
507 * Release of E2fsprogs 1.23
508
509 2001-08-12 Theodore Tso <tytso@valinux.com>
510
511 * logdump.c (do_logdump, dump_journal): Add support for dumping
512 external journals.
513
514 2001-06-23 Theodore Tso <tytso@valinux.com>
515
516 * Release of E2fsprogs 1.22
517
518 2001-06-15 Theodore Tso <tytso@valinux.com>
519
520 * Release of E2fsprogs 1.21
521
522 2001-06-13 Theodore Tso <tytso@valinux.com>
523
524 * setsuper.c: Add s_lastcheck field to the fields which can be
525 modified using set_super_value. (Suggested by Andreas
526 Dilger)
527
528 2001-06-03 Theodore Tso <tytso@valinux.com>
529
530 * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes
531 read errors to not be noticed.
532
533 2001-06-01 Theodore Tso <tytso@valinux.com>
534
535 * Makefile.in: Move include/asm/types.h.in to
536 lib/ext2fs/ext2_types.h.in.
537
538 * debugfs.c, debugfs.h, logdump.c: Fix various gcc -Wall nitpicks.
539
540 * logdump.c (read_journal_block): Replace pread with lseek/read
541 combination.
542
543 2001-05-25 Theodore Tso <tytso@valinux.com>
544
545 * Release of E2fsprogs 1.20
546
547 2001-05-14 Theodore Tso <tytso@valinux.com>
548
549 * debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
550
551 2001-05-12 Theodore Tso <tytso@valinux.com>
552
553 * debugfs.c (print_features): Use fputs instead of printf to
554 output using the passed-in FILE *.
555
556 2001-05-09 Theodore Tso <tytso@valinux.com>
557
558 * debugfs.c (do_write, do_mknod): Set the file type information
559 when creating the inode.
560
561 2001-05-03 Theodore Tso <tytso@valinux.com>
562
563 * debugfs.c (do_open_filesys, main): Add -i option which will
564 allow debugfs to examine ext2 image files.
565
566 2001-03-29 Theodore Tso <tytso@valinux.com>
567
568 * debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
569 internal_dump_inode() interface for the logdump command.
570
571 * logdump.c: Imported code from Stephen Tweedie to dump the ext3
572 journal.
573
574 2001-03-18 Theodore Tso <tytso@valinux.com>
575
576 * debugfs.c (do_write, do_mknod): Remove extra (useless) call to
577 ext2fs_write_inode.
578
579 2001-01-12 Theodore Ts'o <tytso@valinux.com>
580
581 * setsuper.c: Cleaned up some random whitespace problems.
582
583 * debugfs.h, debugfs.c (do_show_super_stats): Use full words
584 instead of pluralism hack to make I18N conversion easier.
585 Clean up gcc -Wall complaints.
586
587 2001-01-11 <tytso@snap.thunk.org>
588
589 * debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
590 setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few
591 minor gcc-wall complaints while we're at it.
592
593 2001-01-01 <tytso@snap.thunk.org>
594
595 * debugfs.c Replace use of struct ext2fs_sb with struct
596 ext2_super_block.
597
598 2000-12-30 <tytso@snap.thunk.org>
599
600 * dump.c (fix_perms): Fix bug for systems which don't have fchown;
601 was incorrectly using chmod instead of chown.
602
603 * setsuper.c (find_field): Strip the s_prefix if given for ssv
604 fields. Remove hard-coded s_ from inode_size
605 field. (Suggested by Andreas Dilger)
606
607 * debugfs.c (do_modify_inode): Add the ability to set the inode
608 generation number. (Suggested by Andreas Dilger)
609
610 2000-08-23 <tytso@valinux.com>
611
612 * util.c (string_to_inode): Use strtoul instead of atoi, so that
613 hex inode numbers will be accepted.
614
615 2000-08-19 <tytso@valinux.com>
616
617 * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
618 out of the pager doesn't blow away debugfs.
619
620 2000-08-14 <tytso@valinux.com>
621
622 * debugfs.c (do_show_super_stats): Use list_super2() instead of
623 using explicit printf statements. (We get a more complete
624 printout this way.)
625
626 * util.c (open_pager): If the PAGER environment variable is not
627 set, default to using "more".
628
629 * setsuper.c: New function which implements the set_super_value
630 command. Allows the user to set arbitrary superblock
631 fields.
632
633 * debugfs.c (dump_inode): Cap the length when printing a fast
634 symbolic link to inode.i_size.
635 (list_blocks_proc): Print block ranges (4510-4533) to make
636 the stat output easier to read.
637
638 2000-06-27 Andreas Dilger <adilger@turbolabs.com>
639
640 * debugfs.c (list_blocks_proc): show relative inode block numbers
641 and/or indirect block status
642
643 2000-07-13 <tytso@valinux.com>
644
645 * Release of E2fsprogs 1.19
646
647 2000-07-05 Theodore Ts'o <tytso@valinux.com>
648
649 * debugfs.c (dump_inode): Make the generation field be printed as
650 an unsigned integer.
651
652 2000-07-04 <tytso@snap.thunk.org>
653
654 * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
655 mk_cmds support files from the source tree.
656
657 2000-06-09 <tytso@snap.thunk.org>
658
659 * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
660
661 2000-05-27 Theodore Ts'o <tytso@valinux.com>
662
663 * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
664 coredumping if the bitmaps aren't loaded.
665
666 * util.c (check_fs_bitmaps): New function which checks whether or
667 not the bitmaps are loaded.
668
669 2000-05-23 Aaron Crane <aaronc@pobox.com>
670
671 * debugfs.8.in: Documented new behaviour.
672
673 * ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for
674 recent files. Switched to 4-digit years.
675
676 * dump.c, debug_cmds.ct (do_rdump): Add new debugfs command
677 "rdump", which recursively dumps a directory and its
678 contents.
679 (fix_perms): New function. Break permission-fixing
680 code out of dump_file() so it can be called by rdump
681 code as well.
682 (dump_file): Call fix_perms().
683
684 * debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command
685 "lcd", which changes the cwd on the native filesystem.
686
687 * debugfs.c (open_filesystem): Extra args for superblock,
688 blocksize, and catastrophic mode. Changed callers.
689 (do_open_filesys, main): Accept new -b, -s, -c options
690 for open_filesystem.
691
692 2000-02-02 Theodore Ts'o <tytso@valinux.com>
693
694 * debugfs.c (dump_inode): Remove #ifdef for i_version
695 vs. i_generation since we know it will always be
696 i_generation now.
697
698 2000-01-18 Theodore Ts'o <tytso@valinux.com>
699
700 * debugfs.c (main): Use return instead of exit at the end of main
701 to avoid some compiler warnings.
702
703 * Makefile.in: Since LIBUUID can sometimes include
704 "-lsocket" we need a separate DEPLIBUUID that can be used
705 in Makefile's dependency rules.
706
707 1999-11-19 <tytso@valinux.com>
708
709 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
710 the source directory.
711
712 1999-11-10 <tytso@valinux.com>
713
714 * Release of E2fsprogs 1.18
715
716 1999-11-08 <tytso@valinux.com>
717
718 * icheck.c (do_icheck):
719 * ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns
720 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad
721 blocks in the inode table.
722
723 1999-10-26 <tytso@valinux.com>
724
725 * Release of E2fsprogs 1.17
726
727 1999-10-26 <tytso@valinux.com>
728
729 * debugfs.h: Add declaration for do_features()
730
731 * debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
732
733 1999-10-25 <tytso@valinux.com>
734
735 * debugfs.c (do_dirty_filesys): Make the "dirty" command clear the
736 valid bit on the superblock. (And with a -clean option to
737 set the valid bit.) Originally it was used just to set
738 the "needs to be written" bit in the in-core version of
739 the fs structure.
740
741 1999-10-22 <tytso@valinux.com>
742
743 * Release of E2fsprogs 1.16
744
745 1999-09-07 <tytso@rsts-11.mit.edu>
746
747 * debugfs.c, debug_cmds.ct: Add new debugfs command "feature"
748 which allows the user to set or clear filesystme features.
749 Add the -f (force) option to the open command. Add the
750 -h (superblock header only) option to the stats command.
751
752 1999-07-30 <tytso@rsts-11.mit.edu>
753
754 * debugfs.c (dump_inode): Fix debugfs message so it is the same
755 for when compiled under either Linux 2.2 or 2.3. This
756 allows for the f_swapfs regression test suite to work
757 regardless of which OS e2fsprogs was compiled on.
758
759 1999-07-18 Theodore Ts'o <tytso@rsts-11.mit.edu>
760
761 * Release of E2fsprogs 1.15
762
763 1999-06-23 <tytso@valinux.com>
764
765 * debugfs.c (dump_inode): Add compatibility for Linux 2.3 kernels
766 that use i_generation instead of i_version. Patch
767 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
768
769 1999-02-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
770
771 * icheck.c (do_icheck): Check to make sure the inode has valid
772 blocks before iterating over that inode's blocks.
773
774 1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
775
776 * Release of E2fsprogs 1.14
777
778 1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
779
780 * Release of E2fsprogs 1.13
781
782 1998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
783
784 * Makefile.in: Updated dependencies.
785
786 1998-07-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
787
788 * debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't
789 displaying the error message if ext2fs_read_inode() failed.
790 (do_rm): Fix similar problem for call to ext2fs_namei().
791
792 1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
793
794 * Release of E2fsprogs 1.12
795
796 1998-06-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
797
798 * debugfs.c: Add a -V option which displays the current version.
799
800 1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
801
802 * Makefile.in: Change to use new installation directory variables
803 convention. Fix installdirs and uninstall rules to reflect
804 the fact that debugfs has been installed in the root
805 filesystem. Fix uninstall rules to take $(DESTDIR) into
806 account.
807
808 1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
809
810 * debugfs.h: Add declaration for do_dirty_filsys() to prevent
811 -Wall warnings.
812
813 * debugfs.c (copy_file):
814 * dump.c (dump_file): Fix -Wall warning caused by
815 signed/unsigned mismatch.
816
817 1998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu>
818
819 * debugfs.c, ls.c, lsdel.c: Add support for large files. (The
820 high 32 bits share space with the i_dir_acl field.)
821
822 Sun Mar 8 22:53:04 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
823
824 * ls.c (list_dir_proc): Mask off high 8 bits from
825 dirent->name_len.
826
827 Mon Dec 1 13:21:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
828
829 * Makefile.in: Install debugfs in /sbin, instead of /usr/sbin.
830
831 Sat Oct 25 18:35:30 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
832
833 * debugfs.c (copy_file), dump.c (dump_file): Change to use the new
834 fileio primitives in libext2.
835
836 Fri Oct 24 23:47:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
837
838 * debugfs.c (main, do_open_filesys):
839 * dump.c (do_dump): Make the variable which getopt returns into be
840 an int, so that it won't lose on platforms where char is
841 unsigned.
842
843 Tue Oct 14 21:50:24 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
844
845 * debugfs.c (main): When printing a usage message, have main
846 return 1 (instead of not specifying a return value, bad!)
847
848 Mon Sep 15 22:03:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
849
850 * debugfs.c (main): Fix declaration of main so that it returns an int.
851
852 Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
853
854 * Release of E2fsprogs 1.11
855
856 Thu May 8 23:05:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
857
858 * debugfs.8.in: Fix minor typos and grammer oops found by Bill
859 Hawes (whawes@star.net).
860
861 Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
862
863 * Release of E2fsprogs version 1.10
864
865 Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
866
867 * Release of E2fsprogs version 1.09
868
869 Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
870
871 * Release of E2fsprogs version 1.08
872
873 Thu Apr 10 14:36:05 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
874
875 * ls.c: New file which implements the ls command. Added the -l
876 option.
877
878 Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
879
880 * Release of E2fsprogs version 1.07
881
882 Wed Jan 1 23:53:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
883
884 * lsdel.c (do_lsdel): Use time_to_string() instead of ctime().
885
886 Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
887
888 * Release of E2fsprogs version 1.06
889
890 Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
891
892 * Release of E2fsprogs version 1.05
893
894 Mon Sep 9 23:05:11 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
895
896 * debugfs.c (unlink_file_by_name): If unlinking a file with a
897 directory path, correctly replace the slash with a NULL.
898 (do_show_debugfs_params): Don't try to print the open mode
899 if there's no filesystem opened (since that will cause a
900 core dump).
901 (main): Fix usage string; the -w and device elements are
902 independently optional.
903
904 Tu Sep 3 15:09:39 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
905
906 * debugfs.c (main): Added -f option to debugfs, which takes a
907 command file of debugfs commands and executes them.
908
909 Sat Aug 31 01:18:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
910
911 * debugfs.8.in: Heavily edited and improved manual page.
912
913 * dump.c (dump_file): Improve the write function for writing out
914 the file, so that it is limited to the actual size of the
915 file, instead of outputing the nulls following the EOF.
916 Make sure dump_file does the right thing for files with holes.
917 (do_dump): Add support for the -p option to the dump
918 command, which attempts to preserve the owner and
919 permissions field.
920
921 Fri Aug 30 14:56:59 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
922
923 * debugfs.c (main): Add -R option to debugfs, which allows it to
924 take a single debugfs command on the command line.
925
926 Fri Aug 9 09:03:31 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
927
928 * debugfs.c (do_open_filesys): Set optind to 0 to reset getopt(),
929 to be complete correct.
930 (do_show_super_stats): Print OS type, volume label, last
931 mounted directory, and UUID.
932 (dump_inode): Print the fragment information in a
933 filesystem independent way.
934 (do_modify_inode): Modify the fragement information in a
935 filesystem independent way.
936
937 Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
938
939 * Release of E2fsprogs version 1.04
940
941 Wed May 3 20:41:26 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
942
943 * debugfs.c (dump_inode): Correctly print the translator on the hurd.
944 (do_modify_inode): Modify the translator block on the hurd.
945
946 Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
947
948 * Release of E2fsprogs version 1.03
949
950 Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
951
952 * Release of E2fsprogs version 1.02
953
954 Fri Dec 1 22:42:31 1995 <tytso@rsts-11.mit.edu>
955
956 * Makefile.in (LIBS): Rearrange the order of the libraries to be
957 linked, so that -lext2fs is before -lcom_err.
958
959 Thu Oct 26 12:05:06 1995 <tytso@rsts-11.mit.edu>
960
961 * Makefile.in (install): Strip programs when they are installed.
962
963 Fri Aug 18 15:09:08 1995 Theodore Y. Ts'o <tytso@dcl>
964
965 * debugfs.c (do_find_free_block): Fix typo in code which checked
966 to see if the usage message should be printed.
967
968 Thu Aug 17 22:55:58 1995 <tytso@rsts-11.mit.edu>
969
970 * debugfs.c (do_open_filesys): Change to always set optreset to 1,
971 to make BSD getopt()'s happy. Also set optind to 1, which
972 should make more getopt()'s happy.
973
974 Fri Aug 11 08:45:01 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
975
976 * debugfs.c (do_find_free_block, do_find_free_inode): Fix bug in
977 the usage handling where "ffi ?" or "ffb ?" would
978 dereference a NULL pointer.
979
980 Fri Aug 11 14:21:07 1995 Remy Card <card@bbj>
981
982 * debugfs.8: Updated date and version number.
983
984 Thu Aug 10 14:28:50 1995 Remy Card <card@bbj>
985
986 * debugfs.8: Fixed a spelling error in Ted's name :-)
987
988 Mon Jun 12 19:08:25 1995 Theodore Y. Ts'o (tytso@dcl)
989
990 * debugfs.c, ncheck.c, icheck.c, lsdel.c, dump.c: Include
991 <errno.h> (if it exists)
992
993 * debugfs.c, dump.c, icheck.c, lsdel.c, ncheck.c: Don't include
994 <getopt.h> if it doesn't exist.
995
996 Sun Jun 11 15:21:07 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
997
998 * ncheck.c (do_ncheck): Use LINUX_S_ISDIR instead of S_ISDIR
999
1000 * debugfs.c: Implement the mknod and write commands (from Linus).
1001
1002 Change names of modify_char, modify_short, and modify_long
1003 to be modify_u8, modify_u16, and modify_u32, respectively.
1004
1005 Thu Jun 8 12:29:15 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
1006
1007 * debugfs.c (dump_inode): Only print out inode frag fields if
1008 HAVE_EXT2_FRAGS is defined (by configure). Don't print out the
1009 reserved field at all for now.
1010
1011 * Makefile.in: Rewritten to conform to GNU coding standards and
1012 support separate compilation directories.
1013
1014 Thu Nov 24 17:46:23 1994 Theodore Y. Ts'o (tytso@rt-11)
1015
1016 * dump.c: Added two new commands, "dump" and "cat", which allow
1017 the user to dump the contents of an inode to a file or to
1018 stdout, respectively.
1019
1020