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