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