1 2007-03-21 Theodore Tso <tytso@mit.edu>
3 * icheck.c (do_icheck): Fix memory leak and clean up error
6 * htree.c (htree_dump_int_block): Fix memory leak on error paths.
8 * dump.c (rdump_dirent), htree.c (htree_dump_leaf_node),
9 ls.c (list_dir_proc): Add an extra byte to EXT2_NAME_LEN
10 to avoid the possibility of an array overrun if the
11 filename is exactly EXT2_NAME_LEN in size.
13 2007-03-07 Theodore Tso <tytso@mit.edu>
15 * debugfs.c (do_lcd): Allow the lcd command when debugfs does not
16 currently have a filesystem open.
17 (Addresses LTC Bugzilla #27513)
19 2007-01-28 Theodore Tso <tytso@mit.edu>
21 * unused.c: Fix bug so that the dump_unused command segfault if
22 used without an open filesystem
24 2006-12-22 Theodore Tso <tytso@mit.edu>
26 * debugfs.c (main): Use the new {add,remove}_error_table comerr
27 interfaces instead of initialize_*_error_table.
29 2006-11-12 Theodore Tso <tytso@mit.edu>
31 * debugfs.c (do_open_filesys, main): Open filesystems with the
32 SOFTSUPP flag, to make easier to work on filesystem
33 features that are still under development.
35 2006-11-11 Theodore Tso <tytso@mit.edu>
37 * set_fields.c: Add the ability to use set_super_value to set the
38 superblock flags field.
40 * htree.c (htree_dump_leaf_node): Check the superblock flags to
41 determine whether to use the signed or unsigned version of
42 the hash should be used.
44 2006-10-01 Theodore Tso <tytso@mit.edu>
46 * Makefile.in (DEPLIBBLKID): Use DEPLIBBLKID not LIBBLKID to
47 define the dependencies used by the blkid library.
49 2006-08-30 Eric Sandeen <esandeen@redhat.com>
51 * htree.c (htree_dump_int_node): Fix printf formats.
53 2006-08-29 Theodore Tso <tytso@mit.edu>
55 * lsdel.c (do_lsdel): Fix core-dumping bug. Don't depend on
56 current_fs being non-NULL until after the call to
57 common_args_process(). (Addresses Debian Bug: #378335)
59 2006-05-29 Theodore Tso <tytso@mit.edu>
61 * util.c (reset_getopt): In order to support ancient Linux header
62 files that don't define __GLIBC__ (but which were using
63 glibc anyway), assume that any system that defines
64 __linux__ should use the glibc method of resetting getopt().
66 2006-05-28 Theodore Tso <tytso@mit.edu>
68 * unused.c (do_dump_unused): Use EXT2_MAX_BLOCK_SIZE instead of a
69 hardcoded blocksize of 32768, since this will fail on a
70 filesystem with a 64k blocksize. (Addresses SourceForge
73 2006-05-21 Theodore Tso <tytso@mit.edu>
75 * set_fields.c (parse_time): Fix type warning problem with time_t
77 2006-05-08 Theodore Tso <tytso@mit.edu>
79 * debugfs.c (do_show_super_stats): Print out the block group flags
82 2006-04-27 Theodore Ts'o <tytso@mit.edu>
84 * htree.c (do_htree_dump, do_dx_hash), ls.c (do_list_dir): Add
85 missing default case in the getopt() while/switch loop so
86 that we print a usage() statement when the user specified
89 2006-03-18 Theodore Ts'o <tytso@mit.edu>
91 * debugfs.c, htree.c, unused.c: Change printf statements to use
92 %u instead of %d when printing block numbers.
94 * debugfs.c (do_open_filesys), debugfs.8.in: Add the -e option to
95 the open_filesystem command, which requests that the
96 filesystem be opened in exclusive mode.
98 2006-03-08 Theodore Ts'o <tytso@mit.edu>
100 * Fix bug in icheck which incorrectly reports the last valid inode
101 number as the owner for an EA block.
103 2005-12-10 Theodore Ts'o <tytso@mit.edu>
105 * debugfs.c, debugfs.h, logdump.c, ls.c: Clean up various gcc
108 2005-09-24 Theodore Ts'o <tytso@mit.edu>
110 * set_fields.c (parse_time), util.c (string_to_time), debugfs.c
111 (do_set_current_time): Generalize the time parsing code
112 and move it to util.c:string_to_time(). Add new command,
113 set_current_time, which sets the time used to set the
114 filesystems's time fields.
116 2005-09-06 Theodore Ts'o <tytso@mit.edu>
118 * set_fields.c: Fix set_inode_field so it can properly set the
119 i_size field. Thanks to James Nelson for pointing this
122 2005-07-04 Theodore Ts'o <tytso@mit.edu>
124 * set_fields.c: Fix a bug which caused set_inode_field to silently
125 fail when setting the following fields: frag, fsize,
126 uid_high, gid_high, and author.
128 2006-06-30 Theodore Ts'o <tytso@mit.edu>
130 * Release of E2fsprogs 1.38
132 2005-05-05 Theodore Ts'o <tytso@mit.edu>
134 * debugfs.c (do_stat): Check to make sure a filesystem is open
135 and abort if with an error if not, to prevent a seg fault
138 2005-03-21 Theodore Ts'o <tytso@mit.edu>
140 * Release of E2fsprogs 1.37
142 2005-03-21 Theodore Ts'o <tytso@mit.edu>
144 * debugfs.c (internal_dump_inode_extra): Print the size of
145 the inode's extra fields.
147 2005-03-20 Theodore Ts'o <tytso@mit.edu>
149 * util.c (debugfs_write_new_inode): New function
151 * debgufs.c (do_write, do_mknod): Call ext2fs_write_new_inode()
152 instead of ext2fs_write_inode().
154 * debugfs.c (do_stat): Add support for dumping extended attributes
155 which are stored in the inode body.
157 * util.c (debugfs_read_inode_full): new function
159 2006-02-05 Theodore Ts'o <tytso@mit.edu>
161 * Release of E2fsprogs 1.36
163 2005-02-03 Theodore Ts'o <tytso@mit.edu>
165 * set_fields.c: Define _XOPEN_SOURCE to be 500 to fix compilation
168 2005-01-20 Theodore Ts'o <tytso@mit.edu>
170 * set_fields.c: Add support for the jnl_blocks[] for set_super_value
172 2005-01-19 Matthias Andree <matthias.andree@gmx.de>
174 * set_fields.c: Add _XOPEN_SOURCE #define on all but Solaris
175 systems so that strptime() gets defined.
176 (parse_bmap): Add missing return statement.
178 2005-01-07 Theodore Ts'o <tytso@mit.edu>
180 * debug_cmds.ct: Make the official name of set_inode be
181 set_inode_field, since it is more intuitive.
183 * set_fields.c (print_possible_fields): Document bmap[] in
184 "set_inode_field -l" listing. Change name of set_inode to
185 set_inode_field in usage message.
187 2004-12-23 Theodore Ts'o <tytso@mit.edu>
189 * set_fields.c: Add support for array indexes, which we use for
190 the i_block[] array. Also add the pseudo inode field
191 bmap, which can be used for setting logical->physical
194 2004-12-21 Theodore Ts'o <tytso@mit.edu>
196 * setfields.c: Renamed from setsuper.c
197 Added support to set date/time fields.
198 Added support for setting superblock values wtime, mtime,
199 lastcheck, and mkfs_time as date/time fields.
200 Added support for the set_inode command.
201 * debugfs.h, debug_cmds.ct, debugfs.8.in: Added set_inode command
203 2004-12-16 Theodore Ts'o <tytso@mit.edu>
205 * setsuper.c: Add definitions for newer superblock fields:
206 reserved_gdt_blocks, jnl_backup_type, default_mount_opts,
207 first_meta_bg, and mkfs_time.
209 2004-12-14 Theodore Ts'o <tytso@mit.edu>
211 * Makefile.in: Move strip command to install-strip target.
212 Use Linux-kernel-style makefile output for "make install"
214 * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
216 2004-11-30 Theodore Ts'o <tytso@mit.edu>
218 * util.c (time_to_string): If the TZ environment variable is set
219 to GMT, use gmtime() instead of localtime() or ctime() to
220 force the use of GMT. This is because the dietlibc
221 doesn't honor the TZ environment variable.
223 * Makefile.in: Use Linux-kernel-style makefile output to make it
224 easier to see errors/warnings.
226 2004-11-29 Theodore Ts'o <tytso@mit.edu>
228 * debugfs.c (do_open_filesys): Fix obvious uninitialized variable
231 2004-11-19 Theodore Ts'o <tytso@mit.edu>
233 * debugfs.c (kill_file_by_inode): Only iterate over the inode to
234 release blocks if the inode has them; otherwise attempting
235 to rm devices and fast symlinks will lead to errors.
236 (Addresses Sourceforge Bug #954741 and #957244)
238 2004-07-28 Theodore Ts'o <tytso@mit.edu>
240 * debugfs.c, debugfs.8.in: Add new option -d which allows the
241 system administrator to specify data source of a
242 filesystem being opened via an e2image file.
244 2004-04-11 Theodore Ts'o <tytso@mit.edu>
246 * util.c (open_pager): Use DEBUGFS_PAGER in preference to PAGER
247 (Addresses Debian Bug #239547)
249 2004-04-03 Theodore Ts'o <tytso@mit.edu>
251 * Makefile.in: Update the modtime even if subst doesn't need to
252 update the debugfs man page, to avoid always re-running
253 subst, especially since there are no dependencies on the
256 2004-03-20 Theodore Ts'o <tytso@mit.edu>
258 * debugfs.c (make_link): Set the filetype information when
261 2004-02-28 Theodore Ts'o <tytso@mit.edu>
263 * Release of E2fsprogs 1.35
265 2004-02-23 Theodore Ts'o <tytso@mit.edu>
267 * debugfs.c (internal_dump_inode): Display the major/minor device
268 numbers for block/character devices.
269 (do_mknod): Add support for new-style device numbers (where
270 the major or minor number is greater than 255 and less
271 than 65535). (Addresses Sourceforge bug #865289)
273 2004-02-21 Theodore Ts'o <tytso@mit.edu>
275 * debugfs.8.in: Fix the debugfs man page to reference the
276 init_filesys command, instead of "initialize". (Addresses
279 2004-02-14 Theodore Ts'o <tytso@mit.edu>
281 * debugfs.c (internal_dump_inode): Correctly deal with symlinks
282 that have extended attribute information. (Addresses
285 2004-01-24 Theodore Ts'o <tytso@mit.edu>
287 * debugfs.8.in: Document the PAGER and DEBUGFS_PAGER environment
290 * util.c (open_pager): Use the "more" pager in preference to
291 "less", since "less" doesn't work terribly well for
294 2003-12-25 Theodore Ts'o <tytso@mit.edu>
296 * util.c (open_pager): Try to use the DEBUGFS_PAGER environment
297 variable first, and then fall back to the PAGER
298 environment variable. Finally, search for an appropriate
301 2003-12-11 Theodore Ts'o <tytso@thunk.org>
303 * debugfs.c (do_write, do_mkdir): If the directory is full,
304 automatically call ext2fs_expand_dir() and then retry to
305 add the link to the directory as a convenience to the
306 user. (Addresses Debian Bug: #217892)
307 (do_mknod): Clean up expand_dir error handling.
309 2003-12-07 Theodore Ts'o <tytso@mit.edu>
311 * debugfs.c (do_write): Mask off the file type bits, and OR in the
312 regular file information. (Addresses Debian Bug: #217456)
314 * util.c (open_pager): Search for the pager to use, starting with
315 'pager', and then falling back to 'less' and then 'more'.
316 (Addresses Debian Bug: #221977)
318 * debugfs.c, debugfs.h, dump.c, htree.c, icheck.c, logdump.c,
319 ls.c, lsdel.c, ncheck.c, setsuper.c, unused.c: Fix gcc
322 2003-08-24 Theodore Ts'o <tytso@mit.edu>
324 * debugfs.8.in: Adjust description line so that apropos
325 "ext2" or "ext3" will find the man page. (Addresses
328 2003-08-21 Theodore Ts'o <tytso@mit.edu>
330 * debugfs.8.in: Fully document the logdump command in the debugfs
333 * logdump.c (do_logdump): Add -s option which will use the journal
334 inode information in the superblock.
336 2003-07-25 Theodore Ts'o <tytso@mit.edu>
338 * Release of E2fsprogs 1.34
340 2003-07-06 Theodore Ts'o <tytso@mit.edu>
342 * debugfs.c (do_imap): Fix gcc -Wall nitpicks (printf format types).
344 2003-05-21 Theodore Ts'o <tytso@mit.edu>
346 * unused.c (do_dump_unused): Add new command which dumps the
347 unused blocks. (Initial implementation; currently only
348 dumps the output to stdout.)
350 2003-05-13 root <tytso@mit.edu>
352 * util.c (reset_getopt), debugfs.c (do_open_filesys,
353 do_show_super_stats), ls.c (do_list_dir), dump.c (do_dump),
354 htree.c (do_htree_dump, do_dx_hash), logdump.c (do_logdump):
355 Define and use a new function, reset_getopt(), which does whatever
356 is necessary to reset getopt() again. This is different for
357 different implementations, so the portabilty issues are a bit of a
358 nightmare. (Addresses Debian bug #192834)
360 2003-05-05 Theodore Ts'o <tytso@mit.edu>
362 * debugfs.c (do_imap), debugfs.h, debug_cmds.ct, debugfs.8.in:
363 Added new command, imap, which prints the location of a
364 specified inode in the inode table.
366 2003-04-21 Theodore Ts'o <tytso@mit.edu>
368 * Release of E2fsprogs 1.33
370 2003-03-16 Theodore Ts'o <tytso@mit.edu>
372 * Makefile.in (DLOPEN_LIB): Link in the libdl library if it is
373 present on the system.
375 * debugfs.c (main): Call ss_get_readline() to attempt to pull in
376 the readline library.
378 2003-03-06 Theodore Tso <tytso@mit.edu>
380 * debugfs.c (do_open_filesys, do_show_super_stats),
381 ls.c (do_list_dir), dump.c (do_dump), htree.c (do_htree_dump,
382 do_dx_hash), logdump.c (do_logdump): Reset optind to 1 for better
383 compatibility with non-glibc implementations of getopt.
385 2003-03-01 Theodore Ts'o <tytso@mit.edu>
387 * Makefile.in, logdump.c (do_logdump): Use the blkid functions to
388 find the external journal device.
390 2003-01-21 Theodore Ts'o <tytso@mit.edu>
392 * dump.c (do_dump): Open the output file with O_LARGEFILE so we
393 can write files larger than 2GB.
395 2002-11-09 Theodore Ts'o <tytso@mit.edu>
397 * Release of E2fsprogs 1.32
399 2002-11-08 Theodore Ts'o <tytso@mit.edu>
401 * Release of E2fsprogs 1.31
403 2002-10-31 Theodore Ts'o <tytso@mit.edu>
405 * Release of E2fsprogs 1.30
407 2002-10-31 Theodore Ts'o <tytso@mit.edu>
409 * debugfs.c (do_write): Check to see if the filename exists before
410 creating it, and give an error if so. Addresses
411 Sourceforge bug #478195.
413 2002-10-30 Theodore Ts'o <tytso@mit.edu>
415 * Makefile.in (install): Search all compression extensions when
416 deleting old man pages.
418 2002-10-13 Theodore Ts'o <tytso@mit.edu>
420 * debugfs.h, htree.c, setsuper.c: Fix gcc -Wall nits.
422 2002-10-02 Theodore Y. Ts'o <tytso@mit.edu>
424 * htree.c (htree_dump_leaf_node): Use ext2fs_read_dir_block2 so
425 that the directory entries are appropriately byte-swapped.
427 2001-09-24 Theodore Tso <tytso@mit.edu>
429 * Release of E2fsprogs 1.29
431 2002-09-22 root <tytso@mit.edu>
433 * htree.c (htree_dump_int_node): Flag continuation hashes to make
436 2001-08-31 Theodore Tso <tytso@thunk.org>
438 * Release of E2fsprogs 1.28
440 2002-08-23 Theodore Ts'o <tytso@mit.edu>
442 * setsuper.c: Add support for the fields s_uuid, s_journal_uuid,
443 s_hash_seed, s_def_hash_version. Add routines for parsing
444 UUID's and hash algorithm identifiers.
446 2002-08-16 Theodore Ts'o <tytso@mit.edu>
448 * icheck.c (do_icheck): Check to see if the block is listed as
449 part of the extended attribute block.
451 2002-07-21 Theodore Ts'o <tytso@mit.edu>
453 * htree.c (do_htree_dump): Fix a bug where we were not cleanly
454 closing the pager after errors, which would leave the
457 2002-07-18 Theodore Ts'o <tytso@mit.edu>
459 * htree.c (htree_dump_int_node): Add byte swapping code sot that
460 the htree dump function works on a big-endian machine.
462 2002-07-15 Theodore Ts'o <tytso@mit.edu>
464 * debugfs.c (do_show_super_stats): Calculate and print the number
465 of directories on a filesystem --- because we can and
466 because it can be useful.
468 2002-07-09 Theodore Ts'o <tytso@mit.edu>
470 * debugfs.c (do_rmdir), debugfs.8.in: Implement the rmdir command.
471 Addresses Debian bug #138003.
473 2002-06-26 Theodore Ts'o <tytso@mit.edu>
475 * htree.c (do_dx_hash): Use new ext2fs_dirhash function signature.
476 Add getopt support so user can specify the hash version.
478 2002-05-11 <tytso@snap.thunk.org>
480 * debug_cmds.ct, debugfs.c (do_bmap): Add new command "bmap" which
481 calculates the logical->physical block mapping for an
484 * debugfs.c (do_init_filsys, main), util.c
485 (common_block_args_process): Fix bad calling parameter
486 order when calling parse_ulong. This broke the -b and -s
487 options to debugfs, as well as do_init, and the testb,
488 setb, clearb functions.
490 2002-04-01 <tytso@snap.thunk.org>
492 * util.c (parse_ulong): Fix typo which cases parse_ulong to
493 coredump if the err variable is filled in (for example, if
494 the -b or -s options are passed to the debugfs's
495 command-line invocation).
497 2002-03-11 Theodore Tso <tytso@mit.edu>
499 * ls.c (list_dir_proc): Fix bug: ls -l fails to print the file
500 type correctly if running on big-endian systems.
502 * htree.c (htree_dump_leaf_node): Use the ext2_dirhash function
503 instead of a local static function.
505 2002-03-08 Theodore Tso <tytso@mit.edu>
507 * Release of E2fsprogs 1.27
509 2002-03-07 <tytso@snap.thunk.org>
511 * ls.c (list_dir_proc): Fix typo in debugfs which was causing a
514 2002-03-05 Theodore Tso <tytso@mit.edu>
516 * lsdel.c (do_lsdel): lsdel uses the pager to print out the list
517 of potentially deleted inode. Thanks to Jaroslav Drzik
518 <jdrzik@host.sk> for suggesting this enhancement.
520 * debugfs.c (do_modify_inode): Fix bug which caused modify_inode
521 to core dump if a fliesystem isn't open. Thanks to
522 Jaroslav Drzik <jdrzik@host.sk> for finding and reporting
523 the bug and his proposed fix.
525 2002-02-26 Theodore Tso <tytso@mit.edu>
527 * ls.c (list_dir_proc): When listing the directory entry in long
528 format, include the file type of the directory entry in
531 2002-02-25 Theodore Tso <tytso@mit.edu>
533 * util.c (open_pager): If the PAGER environment is set to __none__
534 then don't use a pager at all, and ship it all to stdout.
536 * Makefile.in, debug_cmds.ct, htree.c: Add new file htree.c, which
537 implements the three new commands, htree_dump, dx_hash,
540 2002-02-24 Theodore Tso <tytso@mit.edu>
542 * Makefile.in (install): Remove any compressed man pages before
543 installing the man pages.
545 2002-02-03 Theodore Tso <tytso@thunk.org>
547 * Release of E2fsprogs 1.26
549 2002-01-03 Theodore Tso <tytso@mit.edu>
551 * lsdel.c (do_lsdel): New optional argument which allows the user
552 to only see the most recently deleted files.
554 * debugfs.c (do_undel, do_testb, do_freeb, do_setb, do_ffb): Add
555 new command, undelete, which automates undeleting a
556 deleted inode and linking it back to a directory. Add a
557 count argument to the testb, freeb, setb, and ffb commands.
559 * ls.c (list_dir_proc, do_list_dir): Add support for -d option
560 which lists deleted directory entries.
562 * debug_cmds.ct: Add new command, undelete.
564 * dump.c, icheck.c, logdump.c, ls.c, lsdel.c, setsuper.c,
565 debugfs.c: Use new utility functions which factor out
568 * util.c (debugfs_read_inode, debugfs_write_inode,
569 common_block_args_process, common_inode_args_process,
570 common_args_process, strtoblk, parse_ulong): New
571 functions which factor out commonly used code into
572 subroutines for ease of maintenance and to make the
573 executable size smaller.
575 2001-12-23 Theodore Tso <tytso@mit.edu>
577 * Makefile.in, jfs_user.h: Move linux/jbd.h to
578 ext2fs/kernel-jbd.h, to avoid using the system header
579 file version of hbd.h when using diet glibc (since it
580 forcibly adds /usr/include to the beginning of the
581 include search path.)
583 2001-12-22 Theodore Tso <tytso@mit.edu>
585 * debugfs.c (kill_file_by_inode, release_blocks_proc): Update the
586 group descriptor free block and inode counts when deleting
589 2001-12-16 Theodore Tso <tytso@mit.edu>
591 * setsuper.c (print_possible_fields),
592 logdump.c (dump_journal): Fix gcc -Wall nits
594 * Makefile.in, jfs_user.h: linux/jfs.h has been renamed to
597 2001-12-02 Theodore Tso <tytso@mit.edu>
599 * util.c (close_pager): Use pclose() instead of fclose() when
600 closing the pager stream.
602 2001-11-30 Theodore Tso <tytso@mit.edu>
604 * debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
605 2GB support changes: you need to use %lld when printf'ing
606 an long long variable.
608 2001-11-24 Theodore Tso <tytso@mit.edu>
610 * debugfs.8.in: Update manual page to document the set_super_value
611 and logdump commands, and move the "specifying files"
612 section closer to the beginning of the man page so people
615 * setsuper.c (print_possible_fields): "set_super_value -l" now
616 prints out the list of valid superblock fields which the
619 2001-09-20 Theodore Tso <tytso@thunk.org>
621 * Release of E2fsprogs 1.25
623 2001-09-02 Theodore Tso <tytso@thunk.org>
625 * Release of E2fsprogs 1.24a
627 2001-08-30 Theodore Tso <tytso@thunk.org>
629 * Release of E2fsprogs 1.24
631 2001-08-27 Theodore Tso <tytso@valinux.com>
633 * debugfs.c (main): Remove EXT2FS_VERSION from the version
634 display, since it only confuses people.
636 2001-08-15 Theodore Tso <tytso@valinux.com>
638 * Release of E2fsprogs 1.23
640 2001-08-12 Theodore Tso <tytso@valinux.com>
642 * logdump.c (do_logdump, dump_journal): Add support for dumping
645 2001-06-23 Theodore Tso <tytso@valinux.com>
647 * Release of E2fsprogs 1.22
649 2001-06-15 Theodore Tso <tytso@valinux.com>
651 * Release of E2fsprogs 1.21
653 2001-06-13 Theodore Tso <tytso@valinux.com>
655 * setsuper.c: Add s_lastcheck field to the fields which can be
656 modified using set_super_value. (Suggested by Andreas
659 2001-06-03 Theodore Tso <tytso@valinux.com>
661 * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes
662 read errors to not be noticed.
664 2001-06-01 Theodore Tso <tytso@valinux.com>
666 * Makefile.in: Move include/asm/types.h.in to
667 lib/ext2fs/ext2_types.h.in.
669 * debugfs.c, debugfs.h, logdump.c: Fix various gcc -Wall nitpicks.
671 * logdump.c (read_journal_block): Replace pread with lseek/read
674 2001-05-25 Theodore Tso <tytso@valinux.com>
676 * Release of E2fsprogs 1.20
678 2001-05-14 Theodore Tso <tytso@valinux.com>
680 * debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
682 2001-05-12 Theodore Tso <tytso@valinux.com>
684 * debugfs.c (print_features): Use fputs instead of printf to
685 output using the passed-in FILE *.
687 2001-05-09 Theodore Tso <tytso@valinux.com>
689 * debugfs.c (do_write, do_mknod): Set the file type information
690 when creating the inode.
692 2001-05-03 Theodore Tso <tytso@valinux.com>
694 * debugfs.c (do_open_filesys, main): Add -i option which will
695 allow debugfs to examine ext2 image files.
697 2001-03-29 Theodore Tso <tytso@valinux.com>
699 * debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
700 internal_dump_inode() interface for the logdump command.
702 * logdump.c: Imported code from Stephen Tweedie to dump the ext3
705 2001-03-18 Theodore Tso <tytso@valinux.com>
707 * debugfs.c (do_write, do_mknod): Remove extra (useless) call to
710 2001-01-12 Theodore Ts'o <tytso@valinux.com>
712 * setsuper.c: Cleaned up some random whitespace problems.
714 * debugfs.h, debugfs.c (do_show_super_stats): Use full words
715 instead of pluralism hack to make I18N conversion easier.
716 Clean up gcc -Wall complaints.
718 2001-01-11 <tytso@snap.thunk.org>
720 * debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
721 setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few
722 minor gcc-wall complaints while we're at it.
724 2001-01-01 <tytso@snap.thunk.org>
726 * debugfs.c Replace use of struct ext2fs_sb with struct
729 2000-12-30 <tytso@snap.thunk.org>
731 * dump.c (fix_perms): Fix bug for systems which don't have fchown;
732 was incorrectly using chmod instead of chown.
734 * setsuper.c (find_field): Strip the s_prefix if given for ssv
735 fields. Remove hard-coded s_ from inode_size
736 field. (Suggested by Andreas Dilger)
738 * debugfs.c (do_modify_inode): Add the ability to set the inode
739 generation number. (Suggested by Andreas Dilger)
741 2000-08-23 <tytso@valinux.com>
743 * util.c (string_to_inode): Use strtoul instead of atoi, so that
744 hex inode numbers will be accepted.
746 2000-08-19 <tytso@valinux.com>
748 * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
749 out of the pager doesn't blow away debugfs.
751 2000-08-14 <tytso@valinux.com>
753 * debugfs.c (do_show_super_stats): Use list_super2() instead of
754 using explicit printf statements. (We get a more complete
757 * util.c (open_pager): If the PAGER environment variable is not
758 set, default to using "more".
760 * setsuper.c: New function which implements the set_super_value
761 command. Allows the user to set arbitrary superblock
764 * debugfs.c (dump_inode): Cap the length when printing a fast
765 symbolic link to inode.i_size.
766 (list_blocks_proc): Print block ranges (4510-4533) to make
767 the stat output easier to read.
769 2000-06-27 Andreas Dilger <adilger@turbolabs.com>
771 * debugfs.c (list_blocks_proc): show relative inode block numbers
772 and/or indirect block status
774 2000-07-13 <tytso@valinux.com>
776 * Release of E2fsprogs 1.19
778 2000-07-05 Theodore Ts'o <tytso@valinux.com>
780 * debugfs.c (dump_inode): Make the generation field be printed as
783 2000-07-04 <tytso@snap.thunk.org>
785 * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
786 mk_cmds support files from the source tree.
788 2000-06-09 <tytso@snap.thunk.org>
790 * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
792 2000-05-27 Theodore Ts'o <tytso@valinux.com>
794 * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
795 coredumping if the bitmaps aren't loaded.
797 * util.c (check_fs_bitmaps): New function which checks whether or
798 not the bitmaps are loaded.
800 2000-05-23 Aaron Crane <aaronc@pobox.com>
802 * debugfs.8.in: Documented new behaviour.
804 * ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for
805 recent files. Switched to 4-digit years.
807 * dump.c, debug_cmds.ct (do_rdump): Add new debugfs command
808 "rdump", which recursively dumps a directory and its
810 (fix_perms): New function. Break permission-fixing
811 code out of dump_file() so it can be called by rdump
813 (dump_file): Call fix_perms().
815 * debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command
816 "lcd", which changes the cwd on the native filesystem.
818 * debugfs.c (open_filesystem): Extra args for superblock,
819 blocksize, and catastrophic mode. Changed callers.
820 (do_open_filesys, main): Accept new -b, -s, -c options
823 2000-02-02 Theodore Ts'o <tytso@valinux.com>
825 * debugfs.c (dump_inode): Remove #ifdef for i_version
826 vs. i_generation since we know it will always be
829 2000-01-18 Theodore Ts'o <tytso@valinux.com>
831 * debugfs.c (main): Use return instead of exit at the end of main
832 to avoid some compiler warnings.
834 * Makefile.in: Since LIBUUID can sometimes include
835 "-lsocket" we need a separate DEPLIBUUID that can be used
836 in Makefile's dependency rules.
838 1999-11-19 <tytso@valinux.com>
840 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
841 the source directory.
843 1999-11-10 <tytso@valinux.com>
845 * Release of E2fsprogs 1.18
847 1999-11-08 <tytso@valinux.com>
849 * icheck.c (do_icheck):
850 * ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns
851 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad
852 blocks in the inode table.
854 1999-10-26 <tytso@valinux.com>
856 * Release of E2fsprogs 1.17
858 1999-10-26 <tytso@valinux.com>
860 * debugfs.h: Add declaration for do_features()
862 * debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
864 1999-10-25 <tytso@valinux.com>
866 * debugfs.c (do_dirty_filesys): Make the "dirty" command clear the
867 valid bit on the superblock. (And with a -clean option to
868 set the valid bit.) Originally it was used just to set
869 the "needs to be written" bit in the in-core version of
872 1999-10-22 <tytso@valinux.com>
874 * Release of E2fsprogs 1.16
876 1999-09-07 <tytso@rsts-11.mit.edu>
878 * debugfs.c, debug_cmds.ct: Add new debugfs command "feature"
879 which allows the user to set or clear filesystme features.
880 Add the -f (force) option to the open command. Add the
881 -h (superblock header only) option to the stats command.
883 1999-07-30 <tytso@rsts-11.mit.edu>
885 * debugfs.c (dump_inode): Fix debugfs message so it is the same
886 for when compiled under either Linux 2.2 or 2.3. This
887 allows for the f_swapfs regression test suite to work
888 regardless of which OS e2fsprogs was compiled on.
890 1999-07-18 Theodore Ts'o <tytso@rsts-11.mit.edu>
892 * Release of E2fsprogs 1.15
894 1999-06-23 <tytso@valinux.com>
896 * debugfs.c (dump_inode): Add compatibility for Linux 2.3 kernels
897 that use i_generation instead of i_version. Patch
898 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
900 1999-02-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
902 * icheck.c (do_icheck): Check to make sure the inode has valid
903 blocks before iterating over that inode's blocks.
905 1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
907 * Release of E2fsprogs 1.14
909 1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
911 * Release of E2fsprogs 1.13
913 1998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
915 * Makefile.in: Updated dependencies.
917 1998-07-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
919 * debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't
920 displaying the error message if ext2fs_read_inode() failed.
921 (do_rm): Fix similar problem for call to ext2fs_namei().
923 1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
925 * Release of E2fsprogs 1.12
927 1998-06-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
929 * debugfs.c: Add a -V option which displays the current version.
931 1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
933 * Makefile.in: Change to use new installation directory variables
934 convention. Fix installdirs and uninstall rules to reflect
935 the fact that debugfs has been installed in the root
936 filesystem. Fix uninstall rules to take $(DESTDIR) into
939 1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
941 * debugfs.h: Add declaration for do_dirty_filsys() to prevent
944 * debugfs.c (copy_file):
945 * dump.c (dump_file): Fix -Wall warning caused by
946 signed/unsigned mismatch.
948 1998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu>
950 * debugfs.c, ls.c, lsdel.c: Add support for large files. (The
951 high 32 bits share space with the i_dir_acl field.)
953 Sun Mar 8 22:53:04 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
955 * ls.c (list_dir_proc): Mask off high 8 bits from
958 Mon Dec 1 13:21:09 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
960 * Makefile.in: Install debugfs in /sbin, instead of /usr/sbin.
962 Sat Oct 25 18:35:30 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
964 * debugfs.c (copy_file), dump.c (dump_file): Change to use the new
965 fileio primitives in libext2.
967 Fri Oct 24 23:47:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
969 * debugfs.c (main, do_open_filesys):
970 * dump.c (do_dump): Make the variable which getopt returns into be
971 an int, so that it won't lose on platforms where char is
974 Tue Oct 14 21:50:24 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
976 * debugfs.c (main): When printing a usage message, have main
977 return 1 (instead of not specifying a return value, bad!)
979 Mon Sep 15 22:03:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
981 * debugfs.c (main): Fix declaration of main so that it returns an int.
983 Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
985 * Release of E2fsprogs 1.11
987 Thu May 8 23:05:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
989 * debugfs.8.in: Fix minor typos and grammer oops found by Bill
990 Hawes (whawes@star.net).
992 Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
994 * Release of E2fsprogs version 1.10
996 Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
998 * Release of E2fsprogs version 1.09
1000 Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1002 * Release of E2fsprogs version 1.08
1004 Thu Apr 10 14:36:05 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1006 * ls.c: New file which implements the ls command. Added the -l
1009 Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
1011 * Release of E2fsprogs version 1.07
1013 Wed Jan 1 23:53:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1015 * lsdel.c (do_lsdel): Use time_to_string() instead of ctime().
1017 Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1019 * Release of E2fsprogs version 1.06
1021 Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1023 * Release of E2fsprogs version 1.05
1025 Mon Sep 9 23:05:11 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1027 * debugfs.c (unlink_file_by_name): If unlinking a file with a
1028 directory path, correctly replace the slash with a NULL.
1029 (do_show_debugfs_params): Don't try to print the open mode
1030 if there's no filesystem opened (since that will cause a
1032 (main): Fix usage string; the -w and device elements are
1033 independently optional.
1035 Tu Sep 3 15:09:39 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1037 * debugfs.c (main): Added -f option to debugfs, which takes a
1038 command file of debugfs commands and executes them.
1040 Sat Aug 31 01:18:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1042 * debugfs.8.in: Heavily edited and improved manual page.
1044 * dump.c (dump_file): Improve the write function for writing out
1045 the file, so that it is limited to the actual size of the
1046 file, instead of outputing the nulls following the EOF.
1047 Make sure dump_file does the right thing for files with holes.
1048 (do_dump): Add support for the -p option to the dump
1049 command, which attempts to preserve the owner and
1052 Fri Aug 30 14:56:59 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1054 * debugfs.c (main): Add -R option to debugfs, which allows it to
1055 take a single debugfs command on the command line.
1057 Fri Aug 9 09:03:31 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1059 * debugfs.c (do_open_filesys): Set optind to 0 to reset getopt(),
1060 to be complete correct.
1061 (do_show_super_stats): Print OS type, volume label, last
1062 mounted directory, and UUID.
1063 (dump_inode): Print the fragment information in a
1064 filesystem independent way.
1065 (do_modify_inode): Modify the fragement information in a
1066 filesystem independent way.
1068 Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1070 * Release of E2fsprogs version 1.04
1072 Wed May 3 20:41:26 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1074 * debugfs.c (dump_inode): Correctly print the translator on the hurd.
1075 (do_modify_inode): Modify the translator block on the hurd.
1077 Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
1079 * Release of E2fsprogs version 1.03
1081 Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
1083 * Release of E2fsprogs version 1.02
1085 Fri Dec 1 22:42:31 1995 <tytso@rsts-11.mit.edu>
1087 * Makefile.in (LIBS): Rearrange the order of the libraries to be
1088 linked, so that -lext2fs is before -lcom_err.
1090 Thu Oct 26 12:05:06 1995 <tytso@rsts-11.mit.edu>
1092 * Makefile.in (install): Strip programs when they are installed.
1094 Fri Aug 18 15:09:08 1995 Theodore Y. Ts'o <tytso@dcl>
1096 * debugfs.c (do_find_free_block): Fix typo in code which checked
1097 to see if the usage message should be printed.
1099 Thu Aug 17 22:55:58 1995 <tytso@rsts-11.mit.edu>
1101 * debugfs.c (do_open_filesys): Change to always set optreset to 1,
1102 to make BSD getopt()'s happy. Also set optind to 1, which
1103 should make more getopt()'s happy.
1105 Fri Aug 11 08:45:01 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
1107 * debugfs.c (do_find_free_block, do_find_free_inode): Fix bug in
1108 the usage handling where "ffi ?" or "ffb ?" would
1109 dereference a NULL pointer.
1111 Fri Aug 11 14:21:07 1995 Remy Card <card@bbj>
1113 * debugfs.8: Updated date and version number.
1115 Thu Aug 10 14:28:50 1995 Remy Card <card@bbj>
1117 * debugfs.8: Fixed a spelling error in Ted's name :-)
1119 Mon Jun 12 19:08:25 1995 Theodore Y. Ts'o (tytso@dcl)
1121 * debugfs.c, ncheck.c, icheck.c, lsdel.c, dump.c: Include
1122 <errno.h> (if it exists)
1124 * debugfs.c, dump.c, icheck.c, lsdel.c, ncheck.c: Don't include
1125 <getopt.h> if it doesn't exist.
1127 Sun Jun 11 15:21:07 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
1129 * ncheck.c (do_ncheck): Use LINUX_S_ISDIR instead of S_ISDIR
1131 * debugfs.c: Implement the mknod and write commands (from Linus).
1133 Change names of modify_char, modify_short, and modify_long
1134 to be modify_u8, modify_u16, and modify_u32, respectively.
1136 Thu Jun 8 12:29:15 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
1138 * debugfs.c (dump_inode): Only print out inode frag fields if
1139 HAVE_EXT2_FRAGS is defined (by configure). Don't print out the
1140 reserved field at all for now.
1142 * Makefile.in: Rewritten to conform to GNU coding standards and
1143 support separate compilation directories.
1145 Thu Nov 24 17:46:23 1994 Theodore Y. Ts'o (tytso@rt-11)
1147 * dump.c: Added two new commands, "dump" and "cat", which allow
1148 the user to dump the contents of an inode to a file or to
1149 stdout, respectively.