Whamcloud - gitweb
[COVERITY] Fix memory leak on error handling in the debugfs's icheck command
[tools/e2fsprogs.git] / debugfs / ChangeLog
1 2007-03-21  Theodore Tso  <tytso@mit.edu>
2
3         * icheck.c (do_icheck): Fix memory leak and clean up error
4                 handling paths.
5
6         * htree.c (htree_dump_int_block): Fix memory leak on error paths.
7
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.
12
13 2007-03-07  Theodore Tso  <tytso@mit.edu>
14
15         * debugfs.c (do_lcd): Allow the lcd command when debugfs does not
16                 currently have a filesystem open.  
17                 (Addresses LTC Bugzilla #27513)
18
19 2007-01-28  Theodore Tso  <tytso@mit.edu>
20
21         * unused.c: Fix bug so that the dump_unused command segfault if
22                 used without an open filesystem
23
24 2006-12-22  Theodore Tso  <tytso@mit.edu>
25
26         * debugfs.c (main): Use the new {add,remove}_error_table comerr
27                 interfaces instead of initialize_*_error_table.
28
29 2006-11-12  Theodore Tso  <tytso@mit.edu>
30
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.
34
35 2006-11-11  Theodore Tso  <tytso@mit.edu>
36
37         * set_fields.c: Add the ability to use set_super_value to set the
38                 superblock flags field.
39
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.
43
44 2006-10-01  Theodore Tso  <tytso@mit.edu>
45
46         * Makefile.in (DEPLIBBLKID): Use DEPLIBBLKID not LIBBLKID to
47                 define the dependencies used by the blkid library.
48
49 2006-08-30  Eric Sandeen <esandeen@redhat.com>
50
51         * htree.c (htree_dump_int_node): Fix printf formats.
52
53 2006-08-29  Theodore Tso  <tytso@mit.edu>
54
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)
58
59 2006-05-29  Theodore Tso  <tytso@mit.edu>
60
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().
65
66 2006-05-28  Theodore Tso  <tytso@mit.edu>
67
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
71                 bug #1424311)
72
73 2006-05-21  Theodore Tso  <tytso@mit.edu>
74
75         * set_fields.c (parse_time): Fix type warning problem with time_t
76
77 2006-05-08  Theodore Tso  <tytso@mit.edu>
78
79         * debugfs.c (do_show_super_stats): Print out the block group flags
80                 if they are set.
81
82 2006-04-27  Theodore Ts'o  <tytso@mit.edu>
83
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
87                 an illegal option.
88
89 2006-03-18  Theodore Ts'o  <tytso@mit.edu>
90
91         * debugfs.c, htree.c, unused.c: Change printf statements to use
92                 %u instead of %d when printing block numbers.
93
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.
97
98 2006-03-08  Theodore Ts'o  <tytso@mit.edu>
99
100         * Fix bug in icheck which incorrectly reports the last valid inode
101                 number as the owner for an EA block.
102
103 2005-12-10  Theodore Ts'o  <tytso@mit.edu>
104
105         * debugfs.c, debugfs.h, logdump.c, ls.c: Clean up various gcc
106                 -Wall complaints.
107
108 2005-09-24  Theodore Ts'o  <tytso@mit.edu>
109
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.
115
116 2005-09-06  Theodore Ts'o  <tytso@mit.edu>
117
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
120                 out.
121
122 2005-07-04  Theodore Ts'o  <tytso@mit.edu>
123
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.
127
128 2006-06-30  Theodore Ts'o  <tytso@mit.edu>
129
130         * Release of E2fsprogs 1.38
131
132 2005-05-05  Theodore Ts'o  <tytso@mit.edu>
133
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
136                 in that case.
137
138 2005-03-21  Theodore Ts'o  <tytso@mit.edu>
139
140         * Release of E2fsprogs 1.37
141
142 2005-03-21  Theodore Ts'o  <tytso@mit.edu>
143
144         * debugfs.c (internal_dump_inode_extra): Print the size of
145                 the inode's extra fields.
146
147 2005-03-20  Theodore Ts'o  <tytso@mit.edu>
148
149         * util.c (debugfs_write_new_inode): New function
150
151         * debgufs.c (do_write, do_mknod): Call ext2fs_write_new_inode()
152                 instead of ext2fs_write_inode().
153
154         * debugfs.c (do_stat): Add support for dumping extended attributes
155                 which are stored in the inode body.
156
157         * util.c (debugfs_read_inode_full): new function
158
159 2006-02-05  Theodore Ts'o  <tytso@mit.edu>
160
161         * Release of E2fsprogs 1.36
162
163 2005-02-03  Theodore Ts'o  <tytso@mit.edu>
164
165         * set_fields.c: Define _XOPEN_SOURCE to be 500 to fix compilation
166                 problems on Solaris.
167
168 2005-01-20  Theodore Ts'o  <tytso@mit.edu>
169
170         * set_fields.c: Add support for the jnl_blocks[] for set_super_value
171
172 2005-01-19  Matthias Andree <matthias.andree@gmx.de>
173
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.
177
178 2005-01-07  Theodore Ts'o  <tytso@mit.edu>
179
180         * debug_cmds.ct: Make the official name of set_inode be
181                 set_inode_field, since it is more intuitive.
182
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.
186
187 2004-12-23  Theodore Ts'o  <tytso@mit.edu>
188
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
192                 mappings directly.
193
194 2004-12-21  Theodore Ts'o  <tytso@mit.edu>
195
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
202
203 2004-12-16  Theodore Ts'o  <tytso@mit.edu>
204
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.
208
209 2004-12-14  Theodore Ts'o  <tytso@mit.edu>
210
211         * Makefile.in: Move strip command to install-strip target.
212                 Use Linux-kernel-style makefile output for "make install"
213
214         * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
215
216 2004-11-30  Theodore Ts'o  <tytso@mit.edu>
217
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.
222
223         * Makefile.in: Use Linux-kernel-style makefile output to make it
224                 easier to see errors/warnings.
225
226 2004-11-29  Theodore Ts'o  <tytso@mit.edu>
227
228         * debugfs.c (do_open_filesys): Fix obvious uninitialized variable
229                 buglet.
230
231 2004-11-19  Theodore Ts'o  <tytso@mit.edu>
232
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)
237
238 2004-07-28  Theodore Ts'o  <tytso@mit.edu>
239
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.
243
244 2004-04-11  Theodore Ts'o  <tytso@mit.edu>
245
246         * util.c (open_pager): Use DEBUGFS_PAGER in preference to PAGER
247                 (Addresses Debian Bug #239547)
248
249 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
250
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
254                 man page.
255
256 2004-03-20  Theodore Ts'o  <tytso@mit.edu>
257
258         * debugfs.c (make_link): Set the filetype information when
259                 creating a link.
260
261 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
262
263         * Release of E2fsprogs 1.35
264
265 2004-02-23  Theodore Ts'o  <tytso@mit.edu>
266
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)
272
273 2004-02-21  Theodore Ts'o  <tytso@mit.edu>
274
275         * debugfs.8.in: Fix the debugfs man page to reference the
276                 init_filesys command, instead of "initialize".  (Addresses
277                 Debian Bug #232406)
278
279 2004-02-14  Theodore Ts'o  <tytso@mit.edu>
280
281         * debugfs.c (internal_dump_inode): Correctly deal with symlinks
282                 that have extended attribute information.  (Addresses
283                 Debian Bug #232328)
284
285 2004-01-24  Theodore Ts'o  <tytso@mit.edu>
286
287         * debugfs.8.in: Document the PAGER and DEBUGFS_PAGER environment
288                 variables.
289
290         * util.c (open_pager): Use the "more" pager in preference to
291                 "less", since "less" doesn't work terribly well for
292                 debugfs's purpose.
293
294 2003-12-25  Theodore Ts'o  <tytso@mit.edu>
295
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
299                 pager executable.
300
301 2003-12-11  Theodore Ts'o  <tytso@thunk.org>
302
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.
308
309 2003-12-07  Theodore Ts'o  <tytso@mit.edu>
310
311         * debugfs.c (do_write): Mask off the file type bits, and OR in the
312                 regular file information.  (Addresses Debian Bug: #217456)
313
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)
317
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
320                 -Wall nitpicks.
321
322 2003-08-24  Theodore Ts'o  <tytso@mit.edu>
323
324         * debugfs.8.in: Adjust description line so that apropos
325                 "ext2" or "ext3" will find the man page.  (Addresses
326                 Debian Bug #206845)
327
328 2003-08-21  Theodore Ts'o  <tytso@mit.edu>
329
330         * debugfs.8.in: Fully document the logdump command in the debugfs
331                 man page.
332
333         * logdump.c (do_logdump): Add -s option which will use the journal
334                 inode information in the superblock.
335
336 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
337
338         * Release of E2fsprogs 1.34
339
340 2003-07-06  Theodore Ts'o  <tytso@mit.edu>
341
342         * debugfs.c (do_imap): Fix gcc -Wall nitpicks (printf format types).
343
344 2003-05-21  Theodore Ts'o  <tytso@mit.edu>
345
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.)
349
350 2003-05-13  root  <tytso@mit.edu>
351
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)
359         
360 2003-05-05  Theodore Ts'o  <tytso@mit.edu>
361
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.
365
366 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
367
368         * Release of E2fsprogs 1.33
369
370 2003-03-16  Theodore Ts'o  <tytso@mit.edu>
371
372         * Makefile.in (DLOPEN_LIB): Link in the libdl library if it is
373                 present on the system.
374
375         * debugfs.c (main): Call ss_get_readline() to attempt to pull in
376                 the readline library.
377
378 2003-03-06  Theodore Tso  <tytso@mit.edu>
379
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.
384
385 2003-03-01  Theodore Ts'o  <tytso@mit.edu>
386
387         * Makefile.in, logdump.c (do_logdump): Use the blkid functions to
388                 find the external journal device.
389
390 2003-01-21  Theodore Ts'o  <tytso@mit.edu>
391
392         * dump.c (do_dump): Open the output file with O_LARGEFILE so we
393                 can write files larger than 2GB.
394
395 2002-11-09  Theodore Ts'o  <tytso@mit.edu>
396
397         * Release of E2fsprogs 1.32
398
399 2002-11-08  Theodore Ts'o  <tytso@mit.edu>
400
401         * Release of E2fsprogs 1.31
402
403 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
404
405         * Release of E2fsprogs 1.30
406
407 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
408
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.
412
413 2002-10-30  Theodore Ts'o  <tytso@mit.edu>
414
415         * Makefile.in (install): Search all compression extensions when
416                 deleting old man pages.
417
418 2002-10-13  Theodore Ts'o  <tytso@mit.edu>
419
420         * debugfs.h, htree.c, setsuper.c: Fix gcc -Wall nits.
421
422 2002-10-02  Theodore Y. Ts'o  <tytso@mit.edu>
423
424         * htree.c (htree_dump_leaf_node): Use ext2fs_read_dir_block2 so
425                 that the directory entries are appropriately byte-swapped.
426
427 2001-09-24  Theodore Tso  <tytso@mit.edu>
428
429         * Release of E2fsprogs 1.29
430
431 2002-09-22  root  <tytso@mit.edu>
432
433         * htree.c (htree_dump_int_node): Flag continuation hashes to make
434                 them easier to find.
435
436 2001-08-31  Theodore Tso  <tytso@thunk.org>
437
438         * Release of E2fsprogs 1.28
439
440 2002-08-23  Theodore Ts'o  <tytso@mit.edu>
441
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.
445
446 2002-08-16  Theodore Ts'o  <tytso@mit.edu>
447
448         * icheck.c (do_icheck): Check to see if the block is listed as
449                 part of the extended attribute block.
450
451 2002-07-21  Theodore Ts'o  <tytso@mit.edu>
452
453         * htree.c (do_htree_dump): Fix a bug where we were not cleanly
454                 closing the pager after errors, which would leave the
455                 tty in noecho mode.
456
457 2002-07-18  Theodore Ts'o  <tytso@mit.edu>
458
459         * htree.c (htree_dump_int_node): Add byte swapping code sot that
460                 the htree dump function works on a big-endian machine.
461
462 2002-07-15  Theodore Ts'o  <tytso@mit.edu>
463
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.
467
468 2002-07-09  Theodore Ts'o  <tytso@mit.edu>
469
470         * debugfs.c (do_rmdir), debugfs.8.in: Implement the rmdir command.
471                 Addresses Debian bug #138003.
472
473 2002-06-26  Theodore Ts'o  <tytso@mit.edu>
474
475         * htree.c (do_dx_hash): Use new ext2fs_dirhash function signature.
476                 Add getopt support so user can specify the hash version.
477
478 2002-05-11    <tytso@snap.thunk.org>
479
480         * debug_cmds.ct, debugfs.c (do_bmap): Add new command "bmap" which
481                 calculates the logical->physical block mapping for an
482                 inode.
483
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.
489
490 2002-04-01    <tytso@snap.thunk.org>
491
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).
496
497 2002-03-11  Theodore Tso  <tytso@mit.edu>
498
499         * ls.c (list_dir_proc): Fix bug: ls -l fails to print the file
500                 type correctly if running on big-endian systems.
501
502         * htree.c (htree_dump_leaf_node): Use the ext2_dirhash function
503                 instead of a local static function.
504
505 2002-03-08  Theodore Tso  <tytso@mit.edu>
506
507         * Release of E2fsprogs 1.27
508
509 2002-03-07    <tytso@snap.thunk.org>
510
511         * ls.c (list_dir_proc): Fix typo in debugfs which was causing a
512                 compiler warning.
513
514 2002-03-05  Theodore Tso  <tytso@mit.edu>
515
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.
519
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.
524
525 2002-02-26  Theodore Tso  <tytso@mit.edu>
526
527         * ls.c (list_dir_proc): When listing the directory entry in long 
528                 format, include the file type of the directory entry in 
529                 parenthesis.
530
531 2002-02-25  Theodore Tso  <tytso@mit.edu>
532
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.
535
536         * Makefile.in, debug_cmds.ct, htree.c: Add new file htree.c, which
537                 implements the three new commands, htree_dump, dx_hash,
538                 and dirsearch.
539
540 2002-02-24  Theodore Tso  <tytso@mit.edu>
541
542         * Makefile.in (install): Remove any compressed man pages before
543                 installing the man pages.
544
545 2002-02-03  Theodore Tso  <tytso@thunk.org>
546
547         * Release of E2fsprogs 1.26
548
549 2002-01-03  Theodore Tso  <tytso@mit.edu>
550
551         * lsdel.c (do_lsdel): New optional argument which allows the user
552                 to only see the most recently deleted files.
553
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.
558
559         * ls.c (list_dir_proc, do_list_dir): Add support for -d option
560                 which lists deleted directory entries.
561
562         * debug_cmds.ct: Add new command, undelete.
563
564         * dump.c, icheck.c, logdump.c, ls.c, lsdel.c, setsuper.c,
565                 debugfs.c: Use new utility functions which factor out
566                 commonly used code.
567
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.
574
575 2001-12-23  Theodore Tso  <tytso@mit.edu>
576
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.)
582
583 2001-12-22  Theodore Tso  <tytso@mit.edu>
584
585         * debugfs.c (kill_file_by_inode, release_blocks_proc): Update the
586                 group descriptor free block and inode counts when deleting
587                 or killing a file.
588
589 2001-12-16  Theodore Tso  <tytso@mit.edu>
590
591         * setsuper.c (print_possible_fields), 
592                 logdump.c (dump_journal): Fix gcc -Wall nits
593
594         * Makefile.in, jfs_user.h: linux/jfs.h has been renamed to
595                 linux/jbd.h
596
597 2001-12-02  Theodore Tso  <tytso@mit.edu>
598
599         * util.c (close_pager): Use pclose() instead of fclose() when
600                 closing the pager stream.
601
602 2001-11-30  Theodore Tso  <tytso@mit.edu>
603
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.
607
608 2001-11-24  Theodore Tso  <tytso@mit.edu>
609
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
613                 won't miss it.
614
615         * setsuper.c (print_possible_fields): "set_super_value -l" now
616                 prints out the list of valid superblock fields which the
617                 ssv command can set.
618
619 2001-09-20  Theodore Tso  <tytso@thunk.org>
620
621         * Release of E2fsprogs 1.25
622
623 2001-09-02  Theodore Tso  <tytso@thunk.org>
624
625         * Release of E2fsprogs 1.24a
626
627 2001-08-30  Theodore Tso  <tytso@thunk.org>
628
629         * Release of E2fsprogs 1.24
630
631 2001-08-27  Theodore Tso  <tytso@valinux.com>
632
633         * debugfs.c (main): Remove EXT2FS_VERSION from the version
634                 display, since it only confuses people.
635
636 2001-08-15  Theodore Tso  <tytso@valinux.com>
637
638         * Release of E2fsprogs 1.23
639
640 2001-08-12  Theodore Tso  <tytso@valinux.com>
641
642         * logdump.c (do_logdump, dump_journal): Add support for dumping
643                 external journals.
644
645 2001-06-23  Theodore Tso  <tytso@valinux.com>
646
647         * Release of E2fsprogs 1.22
648
649 2001-06-15  Theodore Tso  <tytso@valinux.com>
650
651         * Release of E2fsprogs 1.21
652
653 2001-06-13  Theodore Tso  <tytso@valinux.com>
654
655         * setsuper.c: Add s_lastcheck field to the fields which can be
656                 modified using set_super_value.  (Suggested by Andreas
657                 Dilger)
658
659 2001-06-03  Theodore Tso  <tytso@valinux.com>
660
661         * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes
662                 read errors to not be noticed.
663
664 2001-06-01  Theodore Tso  <tytso@valinux.com>
665
666         * Makefile.in: Move include/asm/types.h.in to 
667                 lib/ext2fs/ext2_types.h.in.
668
669         * debugfs.c, debugfs.h, logdump.c: Fix various gcc -Wall nitpicks.
670
671         * logdump.c (read_journal_block): Replace pread with lseek/read
672                 combination.
673
674 2001-05-25  Theodore Tso  <tytso@valinux.com>
675
676         * Release of E2fsprogs 1.20
677
678 2001-05-14  Theodore Tso  <tytso@valinux.com>
679
680         * debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
681
682 2001-05-12  Theodore Tso  <tytso@valinux.com>
683
684         * debugfs.c (print_features): Use fputs instead of printf to
685                 output using the passed-in FILE *.
686
687 2001-05-09  Theodore Tso  <tytso@valinux.com>
688
689         * debugfs.c (do_write, do_mknod): Set the file type information
690                 when creating the inode.
691
692 2001-05-03  Theodore Tso  <tytso@valinux.com>
693
694         * debugfs.c (do_open_filesys, main): Add -i option which will
695                 allow debugfs to examine ext2 image files.
696
697 2001-03-29  Theodore Tso  <tytso@valinux.com>
698
699         * debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
700                 internal_dump_inode() interface for the logdump command.
701
702         * logdump.c: Imported code from Stephen Tweedie to dump the ext3
703                 journal.
704
705 2001-03-18  Theodore Tso  <tytso@valinux.com>
706
707         * debugfs.c (do_write, do_mknod): Remove extra (useless) call to
708                 ext2fs_write_inode.
709
710 2001-01-12  Theodore Ts'o  <tytso@valinux.com>
711
712         * setsuper.c: Cleaned up some random whitespace problems.
713
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.
717
718 2001-01-11    <tytso@snap.thunk.org>
719
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.
723
724 2001-01-01    <tytso@snap.thunk.org>
725
726         * debugfs.c Replace use of struct ext2fs_sb with struct
727                 ext2_super_block.
728
729 2000-12-30    <tytso@snap.thunk.org>
730
731         * dump.c (fix_perms): Fix bug for systems which don't have fchown;
732                 was incorrectly using chmod instead of chown.
733
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)
737
738         * debugfs.c (do_modify_inode): Add the ability to set the inode
739                 generation number.  (Suggested by Andreas Dilger)
740
741 2000-08-23    <tytso@valinux.com>
742
743         * util.c (string_to_inode): Use strtoul instead of atoi, so that
744                 hex inode numbers will be accepted.
745
746 2000-08-19    <tytso@valinux.com>
747
748         * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
749                 out of the pager doesn't blow away debugfs.
750
751 2000-08-14    <tytso@valinux.com>
752
753         * debugfs.c (do_show_super_stats): Use list_super2() instead of
754                 using explicit printf statements.  (We get a more complete
755                 printout this way.)
756
757         * util.c (open_pager): If the PAGER environment variable is not
758                 set, default to using "more".
759
760         * setsuper.c: New function which implements the set_super_value
761                 command.  Allows the user to set arbitrary superblock
762                 fields.
763
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.
768
769 2000-06-27  Andreas Dilger <adilger@turbolabs.com>
770
771         * debugfs.c (list_blocks_proc): show relative inode block numbers
772                 and/or indirect block status
773
774 2000-07-13    <tytso@valinux.com>
775
776         * Release of E2fsprogs 1.19
777
778 2000-07-05  Theodore Ts'o  <tytso@valinux.com>
779
780         * debugfs.c (dump_inode): Make the generation field be printed as
781                 an unsigned integer.
782
783 2000-07-04    <tytso@snap.thunk.org>
784
785         * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
786                 mk_cmds support files from the source tree.
787
788 2000-06-09    <tytso@snap.thunk.org>
789
790         * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
791
792 2000-05-27  Theodore Ts'o  <tytso@valinux.com>
793
794         * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
795                 coredumping if the bitmaps aren't loaded.
796
797         * util.c (check_fs_bitmaps): New function which checks whether or
798                 not the bitmaps are loaded.
799
800 2000-05-23  Aaron Crane  <aaronc@pobox.com>
801
802         * debugfs.8.in: Documented new behaviour.
803
804         * ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for
805                 recent files.  Switched to 4-digit years.
806
807         * dump.c, debug_cmds.ct (do_rdump): Add new debugfs command
808                 "rdump", which recursively dumps a directory and its
809                 contents.
810                 (fix_perms): New function.  Break permission-fixing
811                 code out of dump_file() so it can be called by rdump
812                 code as well.
813                 (dump_file): Call fix_perms().
814
815         * debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command
816                 "lcd", which changes the cwd on the native filesystem.
817
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
821                 for open_filesystem.
822
823 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
824
825         * debugfs.c (dump_inode): Remove #ifdef for i_version
826                 vs. i_generation since we know it will always be
827                 i_generation now.
828
829 2000-01-18  Theodore Ts'o  <tytso@valinux.com>
830
831         * debugfs.c (main): Use return instead of exit at the end of main
832                 to avoid some compiler warnings.
833
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.
837
838 1999-11-19    <tytso@valinux.com>
839
840         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
841                 the source directory.
842
843 1999-11-10    <tytso@valinux.com>
844
845         * Release of E2fsprogs 1.18
846
847 1999-11-08    <tytso@valinux.com>
848
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.
853
854 1999-10-26    <tytso@valinux.com>
855
856         * Release of E2fsprogs 1.17
857
858 1999-10-26    <tytso@valinux.com>
859
860         * debugfs.h: Add declaration for do_features()
861
862         * debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
863
864 1999-10-25    <tytso@valinux.com>
865
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
870                 the fs structure.
871
872 1999-10-22    <tytso@valinux.com>
873
874         * Release of E2fsprogs 1.16
875
876 1999-09-07    <tytso@rsts-11.mit.edu>
877
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.
882
883 1999-07-30    <tytso@rsts-11.mit.edu>
884
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.
889
890 1999-07-18  Theodore Ts'o  <tytso@rsts-11.mit.edu>
891
892         * Release of E2fsprogs 1.15
893
894 1999-06-23    <tytso@valinux.com>
895
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>.
899
900 1999-02-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
901
902         * icheck.c (do_icheck): Check to make sure the inode has valid
903                 blocks before iterating over that inode's blocks.
904
905 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
906
907         * Release of E2fsprogs 1.14
908
909 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
910
911         * Release of E2fsprogs 1.13
912
913 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
914
915         * Makefile.in: Updated dependencies.
916
917 1998-07-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>
918
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().
922         
923 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
924
925         * Release of E2fsprogs 1.12
926
927 1998-06-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
928
929         * debugfs.c: Add a -V option which displays the current version.
930
931 1998-03-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>
932
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
937                 account.
938
939 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
940
941         * debugfs.h: Add declaration for do_dirty_filsys() to prevent
942                 -Wall warnings.
943
944         * debugfs.c (copy_file): 
945         * dump.c (dump_file): Fix -Wall warning caused by
946                 signed/unsigned mismatch. 
947
948 1998-03-23  Theodore Ts'o  <tytso@rsts-11.mit.edu>
949
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.)
952
953 Sun Mar  8 22:53:04 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
954
955         * ls.c (list_dir_proc): Mask off high 8 bits from
956                 dirent->name_len.
957
958 Mon Dec  1 13:21:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
959
960         * Makefile.in: Install debugfs in /sbin, instead of /usr/sbin.
961
962 Sat Oct 25 18:35:30 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
963
964         * debugfs.c (copy_file), dump.c (dump_file): Change to use the new
965                 fileio primitives in libext2.
966
967 Fri Oct 24 23:47:43 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
968
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
972                 unsigned. 
973
974 Tue Oct 14 21:50:24 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
975
976         * debugfs.c (main): When printing a usage message, have main
977                 return 1 (instead of not specifying a return value, bad!)
978
979 Mon Sep 15 22:03:36 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
980
981         * debugfs.c (main): Fix declaration of main so that it returns an int.
982
983 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
984
985         * Release of E2fsprogs 1.11
986
987 Thu May  8 23:05:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
988
989         * debugfs.8.in: Fix minor typos and grammer oops found by Bill
990                 Hawes (whawes@star.net).
991
992 Thu Apr 24 12:16:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
993
994         * Release of E2fsprogs version 1.10
995
996 Thu Apr 17 12:23:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
997
998         * Release of E2fsprogs version 1.09
999
1000 Fri Apr 11 18:56:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1001
1002         * Release of E2fsprogs version 1.08
1003
1004 Thu Apr 10 14:36:05 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1005
1006         * ls.c: New file which implements the ls command.  Added the -l
1007                 option. 
1008
1009 Wed Mar 12 13:32:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
1010
1011         * Release of E2fsprogs version 1.07
1012
1013 Wed Jan  1 23:53:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1014
1015         * lsdel.c (do_lsdel): Use time_to_string() instead of ctime().
1016
1017 Tue Oct  8 02:02:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1018
1019         * Release of E2fsprogs version 1.06
1020
1021 Thu Sep 12 15:23:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1022
1023         * Release of E2fsprogs version 1.05
1024
1025 Mon Sep  9 23:05:11 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1026
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
1031                 core dump).
1032                 (main): Fix usage string; the -w and device elements are
1033                 independently optional.
1034
1035 Tu Sep  3 15:09:39 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1036
1037         * debugfs.c (main): Added -f option to debugfs, which takes a
1038                 command file of debugfs commands and executes them.
1039
1040 Sat Aug 31 01:18:43 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1041
1042         * debugfs.8.in: Heavily edited and improved manual page.
1043
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
1050                 permissions field.
1051
1052 Fri Aug 30 14:56:59 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1053
1054         * debugfs.c (main): Add -R option to debugfs, which allows it to
1055                 take a single debugfs command on the command line.
1056
1057 Fri Aug  9 09:03:31 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1058
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.
1067
1068 Thu May 16 11:12:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1069
1070         * Release of E2fsprogs version 1.04
1071
1072 Wed May 3 20:41:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1073
1074         * debugfs.c (dump_inode): Correctly print the translator on the hurd.
1075                (do_modify_inode): Modify the translator block on the hurd.
1076
1077 Wed Mar 27 00:33:40 1996    <tytso@rsts-11.mit.edu>
1078
1079         * Release of E2fsprogs version 1.03
1080
1081 Wed Jan 31 11:06:08 1996    <tytso@rsts-11.mit.edu>
1082
1083         * Release of E2fsprogs version 1.02
1084
1085 Fri Dec  1 22:42:31 1995    <tytso@rsts-11.mit.edu>
1086
1087         * Makefile.in (LIBS): Rearrange the order of the libraries to be
1088                 linked, so that -lext2fs is before -lcom_err.
1089
1090 Thu Oct 26 12:05:06 1995    <tytso@rsts-11.mit.edu>
1091
1092         * Makefile.in (install): Strip programs when they are installed.
1093
1094 Fri Aug 18 15:09:08 1995  Theodore Y. Ts'o  <tytso@dcl>
1095
1096         * debugfs.c (do_find_free_block): Fix typo in code which checked
1097                 to see if the usage message should be printed.
1098
1099 Thu Aug 17 22:55:58 1995    <tytso@rsts-11.mit.edu>
1100
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.
1104
1105 Fri Aug 11 08:45:01 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1106
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.
1110
1111 Fri Aug 11 14:21:07 1995  Remy Card  <card@bbj>
1112
1113         * debugfs.8: Updated date and version number.
1114
1115 Thu Aug 10 14:28:50 1995  Remy Card  <card@bbj>
1116
1117         * debugfs.8: Fixed a spelling error in Ted's name :-)
1118
1119 Mon Jun 12 19:08:25 1995  Theodore Y. Ts'o  (tytso@dcl)
1120
1121         * debugfs.c, ncheck.c, icheck.c, lsdel.c, dump.c: Include
1122                 <errno.h> (if it exists)
1123
1124         * debugfs.c, dump.c, icheck.c, lsdel.c, ncheck.c: Don't include
1125                 <getopt.h> if it doesn't exist.
1126
1127 Sun Jun 11 15:21:07 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1128
1129         * ncheck.c (do_ncheck): Use LINUX_S_ISDIR instead of S_ISDIR
1130
1131         * debugfs.c: Implement the mknod and write commands (from Linus).
1132
1133                 Change names of modify_char, modify_short, and modify_long
1134                 to be modify_u8, modify_u16, and modify_u32, respectively.
1135
1136 Thu Jun  8 12:29:15 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
1137
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.
1141
1142         * Makefile.in: Rewritten to conform to GNU coding standards and
1143         support separate compilation directories.
1144
1145 Thu Nov 24 17:46:23 1994  Theodore Y. Ts'o  (tytso@rt-11)
1146
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.
1150
1151