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