Whamcloud - gitweb
ChangeLog, setsuper.c:
[tools/e2fsprogs.git] / debugfs / ChangeLog
1 2001-06-13  Theodore Tso  <tytso@valinux.com>
2
3         * setsuper.c: Add s_lastcheck field to the fields which can be
4                 modified using set_super_value.  (Suggested by Andreas
5                 Dilger)
6
7 2001-06-03  Theodore Tso  <tytso@valinux.com>
8
9         * debugfs.c (copy_file): Fixed signed vs unsigned bug which causes
10                 read errors to not be noticed.
11
12 2001-06-01  Theodore Tso  <tytso@valinux.com>
13
14         * Makefile.in: Move include/asm/types.h.in to 
15                 lib/ext2fs/ext2_types.h.in.
16
17         * debugfs.c, debugfs.h, logdump.c: Fix various gcc -Wall nitpicks.
18
19         * logdump.c (read_journal_block): Replace pread with lseek/read
20                 combination.
21
22 2001-05-25  Theodore Tso  <tytso@valinux.com>
23
24         * Release of E2fsprogs 1.20
25
26 2001-05-14  Theodore Tso  <tytso@valinux.com>
27
28         * debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
29
30 2001-05-12  Theodore Tso  <tytso@valinux.com>
31
32         * debugfs.c (print_features): Use fputs instead of printf to
33                 output using the passed-in FILE *.
34
35 2001-05-09  Theodore Tso  <tytso@valinux.com>
36
37         * debugfs.c (do_write, do_mknod): Set the file type information
38                 when creating the inode.
39
40 2001-05-03  Theodore Tso  <tytso@valinux.com>
41
42         * debugfs.c (do_open_filesys, main): Add -i option which will
43                 allow debugfs to examine ext2 image files.
44
45 2001-03-29  Theodore Tso  <tytso@valinux.com>
46
47         * debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
48                 internal_dump_inode() interface for the logdump command.
49
50         * logdump.c: Imported code from Stephen Tweedie to dump the ext3
51                 journal.
52
53 2001-03-18  Theodore Tso  <tytso@valinux.com>
54
55         * debugfs.c (do_write, do_mknod): Remove extra (useless) call to
56                 ext2fs_write_inode.
57
58 2001-01-12  Theodore Ts'o  <tytso@valinux.com>
59
60         * setsuper.c: Cleaned up some random whitespace problems.
61
62         * debugfs.h,  debugfs.c  (do_show_super_stats): Use  full words
63                 instead of pluralism hack  to make I18N conversion easier.
64                 Clean up gcc -Wall complaints.
65
66 2001-01-11    <tytso@snap.thunk.org>
67
68         * debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
69                 setsuper.c, util.c: Change ino_t to ext2_ino_t.  Fix a few
70                 minor gcc-wall complaints while we're at it.
71
72 2001-01-01    <tytso@snap.thunk.org>
73
74         * debugfs.c Replace use of struct ext2fs_sb with struct
75                 ext2_super_block.
76
77 2000-12-30    <tytso@snap.thunk.org>
78
79         * dump.c (fix_perms): Fix bug for systems which don't have fchown;
80                 was incorrectly using chmod instead of chown.
81
82         * setsuper.c (find_field): Strip the s_prefix if given for ssv
83                 fields.  Remove hard-coded s_ from inode_size
84                 field.  (Suggested by Andreas Dilger)
85
86         * debugfs.c (do_modify_inode): Add the ability to set the inode
87                 generation number.  (Suggested by Andreas Dilger)
88
89 2000-08-23    <tytso@valinux.com>
90
91         * util.c (string_to_inode): Use strtoul instead of atoi, so that
92                 hex inode numbers will be accepted.
93
94 2000-08-19    <tytso@valinux.com>
95
96         * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
97                 out of the pager doesn't blow away debugfs.
98
99 2000-08-14    <tytso@valinux.com>
100
101         * debugfs.c (do_show_super_stats): Use list_super2() instead of
102                 using explicit printf statements.  (We get a more complete
103                 printout this way.)
104
105         * util.c (open_pager): If the PAGER environment variable is not
106                 set, default to using "more".
107
108         * setsuper.c: New function which implements the set_super_value
109                 command.  Allows the user to set arbitrary superblock
110                 fields.
111
112         * debugfs.c (dump_inode): Cap the length when printing a fast
113                 symbolic link to inode.i_size.
114                 (list_blocks_proc): Print block ranges (4510-4533) to make
115                 the stat output easier to read.
116
117 2000-06-27  Andreas Dilger <adilger@turbolabs.com>
118
119         * debugfs.c (list_blocks_proc): show relative inode block numbers
120                 and/or indirect block status
121
122 2000-07-13    <tytso@valinux.com>
123
124         * Release of E2fsprogs 1.19
125
126 2000-07-05  Theodore Ts'o  <tytso@valinux.com>
127
128         * debugfs.c (dump_inode): Make the generation field be printed as
129                 an unsigned integer.
130
131 2000-07-04    <tytso@snap.thunk.org>
132
133         * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
134                 mk_cmds support files from the source tree.
135
136 2000-06-09    <tytso@snap.thunk.org>
137
138         * lsdel.c (do_lsdel): Handle bad bad blocks in inode table.
139
140 2000-05-27  Theodore Ts'o  <tytso@valinux.com>
141
142         * debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
143                 coredumping if the bitmaps aren't loaded.
144
145         * util.c (check_fs_bitmaps): New function which checks whether or
146                 not the bitmaps are loaded.
147
148 2000-05-23  Aaron Crane  <aaronc@pobox.com>
149
150         * debugfs.8.in: Documented new behaviour.
151
152         * ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for
153                 recent files.  Switched to 4-digit years.
154
155         * dump.c, debug_cmds.ct (do_rdump): Add new debugfs command
156                 "rdump", which recursively dumps a directory and its
157                 contents.
158                 (fix_perms): New function.  Break permission-fixing
159                 code out of dump_file() so it can be called by rdump
160                 code as well.
161                 (dump_file): Call fix_perms().
162
163         * debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command
164                 "lcd", which changes the cwd on the native filesystem.
165
166         * debugfs.c (open_filesystem): Extra args for superblock,
167                 blocksize, and catastrophic mode.  Changed callers.
168                 (do_open_filesys, main): Accept new -b, -s, -c options
169                 for open_filesystem.
170
171 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
172
173         * debugfs.c (dump_inode): Remove #ifdef for i_version
174                 vs. i_generation since we know it will always be
175                 i_generation now.
176
177 2000-01-18  Theodore Ts'o  <tytso@valinux.com>
178
179         * debugfs.c (main): Use return instead of exit at the end of main
180                 to avoid some compiler warnings.
181
182         * Makefile.in: Since LIBUUID can sometimes include
183                 "-lsocket" we need a separate DEPLIBUUID that can be used
184                 in Makefile's dependency rules.
185
186 1999-11-19    <tytso@valinux.com>
187
188         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
189                 the source directory.
190
191 1999-11-10    <tytso@valinux.com>
192
193         * Release of E2fsprogs 1.18
194
195 1999-11-08    <tytso@valinux.com>
196
197         * icheck.c (do_icheck): 
198         * ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns 
199                 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad
200                 blocks in the inode table.
201
202 1999-10-26    <tytso@valinux.com>
203
204         * Release of E2fsprogs 1.17
205
206 1999-10-26    <tytso@valinux.com>
207
208         * debugfs.h: Add declaration for do_features()
209
210         * debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
211
212 1999-10-25    <tytso@valinux.com>
213
214         * debugfs.c (do_dirty_filesys): Make the "dirty" command clear the
215                 valid bit on the superblock.  (And with a -clean option to
216                 set the valid bit.)  Originally it was used just to set
217                 the "needs to be written" bit in the in-core version of
218                 the fs structure.
219
220 1999-10-22    <tytso@valinux.com>
221
222         * Release of E2fsprogs 1.16
223
224 1999-09-07    <tytso@rsts-11.mit.edu>
225
226         * debugfs.c, debug_cmds.ct: Add new debugfs command "feature"
227                 which allows the user to set or clear filesystme features.
228                 Add the -f (force) option to the open command.  Add the 
229                 -h (superblock header only) option to the stats command.
230
231 1999-07-30    <tytso@rsts-11.mit.edu>
232
233         * debugfs.c (dump_inode): Fix debugfs message so it is the same
234                 for when compiled under either Linux 2.2 or 2.3.  This
235                 allows for the f_swapfs regression test suite to work
236                 regardless of which OS e2fsprogs was compiled on.
237
238 1999-07-18  Theodore Ts'o  <tytso@rsts-11.mit.edu>
239
240         * Release of E2fsprogs 1.15
241
242 1999-06-23    <tytso@valinux.com>
243
244         * debugfs.c (dump_inode): Add compatibility for Linux 2.3 kernels
245                 that use i_generation instead of i_version.  Patch
246                 supplied by Jon Bright <sircus@sircus.demon.co.uk>.
247
248 1999-02-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
249
250         * icheck.c (do_icheck): Check to make sure the inode has valid
251                 blocks before iterating over that inode's blocks.
252
253 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
254
255         * Release of E2fsprogs 1.14
256
257 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
258
259         * Release of E2fsprogs 1.13
260
261 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
262
263         * Makefile.in: Updated dependencies.
264
265 1998-07-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>
266
267         * debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't
268                 displaying the error message if ext2fs_read_inode() failed.
269                 (do_rm): Fix similar problem for call to ext2fs_namei().
270         
271 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
272
273         * Release of E2fsprogs 1.12
274
275 1998-06-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
276
277         * debugfs.c: Add a -V option which displays the current version.
278
279 1998-03-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>
280
281         * Makefile.in: Change to use new installation directory variables
282                 convention.  Fix installdirs and uninstall rules to reflect
283                 the fact that debugfs has been installed in the root
284                 filesystem.  Fix uninstall rules to take $(DESTDIR) into
285                 account.
286
287 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
288
289         * debugfs.h: Add declaration for do_dirty_filsys() to prevent
290                 -Wall warnings.
291
292         * debugfs.c (copy_file): 
293         * dump.c (dump_file): Fix -Wall warning caused by
294                 signed/unsigned mismatch. 
295
296 1998-03-23  Theodore Ts'o  <tytso@rsts-11.mit.edu>
297
298         * debugfs.c, ls.c, lsdel.c: Add support for large files.  (The
299                 high 32 bits share space with the i_dir_acl field.)
300
301 Sun Mar  8 22:53:04 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
302
303         * ls.c (list_dir_proc): Mask off high 8 bits from
304                 dirent->name_len.
305
306 Mon Dec  1 13:21:09 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
307
308         * Makefile.in: Install debugfs in /sbin, instead of /usr/sbin.
309
310 Sat Oct 25 18:35:30 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
311
312         * debugfs.c (copy_file), dump.c (dump_file): Change to use the new
313                 fileio primitives in libext2.
314
315 Fri Oct 24 23:47:43 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
316
317         * debugfs.c (main, do_open_filesys): 
318         * dump.c (do_dump): Make the variable which getopt returns into be
319                 an int, so that it won't lose on platforms where char is
320                 unsigned. 
321
322 Tue Oct 14 21:50:24 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
323
324         * debugfs.c (main): When printing a usage message, have main
325                 return 1 (instead of not specifying a return value, bad!)
326
327 Mon Sep 15 22:03:36 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
328
329         * debugfs.c (main): Fix declaration of main so that it returns an int.
330
331 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
332
333         * Release of E2fsprogs 1.11
334
335 Thu May  8 23:05:40 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
336
337         * debugfs.8.in: Fix minor typos and grammer oops found by Bill
338                 Hawes (whawes@star.net).
339
340 Thu Apr 24 12:16:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
341
342         * Release of E2fsprogs version 1.10
343
344 Thu Apr 17 12:23:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
345
346         * Release of E2fsprogs version 1.09
347
348 Fri Apr 11 18:56:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
349
350         * Release of E2fsprogs version 1.08
351
352 Thu Apr 10 14:36:05 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
353
354         * ls.c: New file which implements the ls command.  Added the -l
355                 option. 
356
357 Wed Mar 12 13:32:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
358
359         * Release of E2fsprogs version 1.07
360
361 Wed Jan  1 23:53:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
362
363         * lsdel.c (do_lsdel): Use time_to_string() instead of ctime().
364
365 Tue Oct  8 02:02:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
366
367         * Release of E2fsprogs version 1.06
368
369 Thu Sep 12 15:23:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
370
371         * Release of E2fsprogs version 1.05
372
373 Mon Sep  9 23:05:11 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
374
375         * debugfs.c (unlink_file_by_name): If unlinking a file with a
376                 directory path, correctly replace the slash with a NULL.
377                 (do_show_debugfs_params): Don't try to print the open mode
378                 if there's no filesystem opened (since that will cause a
379                 core dump).
380                 (main): Fix usage string; the -w and device elements are
381                 independently optional.
382
383 Tu Sep  3 15:09:39 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
384
385         * debugfs.c (main): Added -f option to debugfs, which takes a
386                 command file of debugfs commands and executes them.
387
388 Sat Aug 31 01:18:43 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
389
390         * debugfs.8.in: Heavily edited and improved manual page.
391
392         * dump.c (dump_file): Improve the write function for writing out
393                 the file, so that it is limited to the actual size of the
394                 file, instead of outputing the nulls following the EOF.
395                 Make sure dump_file does the right thing for files with holes.
396                 (do_dump): Add support for the -p option to the dump
397                 command, which attempts to preserve the owner and
398                 permissions field.
399
400 Fri Aug 30 14:56:59 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
401
402         * debugfs.c (main): Add -R option to debugfs, which allows it to
403                 take a single debugfs command on the command line.
404
405 Fri Aug  9 09:03:31 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
406
407         * debugfs.c (do_open_filesys): Set optind to 0 to reset getopt(),
408                 to be complete correct.
409                 (do_show_super_stats): Print OS type, volume label, last
410                 mounted directory, and UUID.
411                 (dump_inode): Print the fragment information in a
412                 filesystem independent way.
413                 (do_modify_inode): Modify the fragement information in a
414                 filesystem independent way.
415
416 Thu May 16 11:12:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
417
418         * Release of E2fsprogs version 1.04
419
420 Wed May 3 20:41:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
421
422         * debugfs.c (dump_inode): Correctly print the translator on the hurd.
423                (do_modify_inode): Modify the translator block on the hurd.
424
425 Wed Mar 27 00:33:40 1996    <tytso@rsts-11.mit.edu>
426
427         * Release of E2fsprogs version 1.03
428
429 Wed Jan 31 11:06:08 1996    <tytso@rsts-11.mit.edu>
430
431         * Release of E2fsprogs version 1.02
432
433 Fri Dec  1 22:42:31 1995    <tytso@rsts-11.mit.edu>
434
435         * Makefile.in (LIBS): Rearrange the order of the libraries to be
436                 linked, so that -lext2fs is before -lcom_err.
437
438 Thu Oct 26 12:05:06 1995    <tytso@rsts-11.mit.edu>
439
440         * Makefile.in (install): Strip programs when they are installed.
441
442 Fri Aug 18 15:09:08 1995  Theodore Y. Ts'o  <tytso@dcl>
443
444         * debugfs.c (do_find_free_block): Fix typo in code which checked
445                 to see if the usage message should be printed.
446
447 Thu Aug 17 22:55:58 1995    <tytso@rsts-11.mit.edu>
448
449         * debugfs.c (do_open_filesys): Change to always set optreset to 1,
450                 to make BSD getopt()'s happy.  Also set optind to 1, which
451                 should make more getopt()'s happy.
452
453 Fri Aug 11 08:45:01 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
454
455         * debugfs.c (do_find_free_block, do_find_free_inode): Fix bug in
456                 the usage handling where "ffi ?" or "ffb ?" would
457                 dereference a NULL pointer.
458
459 Fri Aug 11 14:21:07 1995  Remy Card  <card@bbj>
460
461         * debugfs.8: Updated date and version number.
462
463 Thu Aug 10 14:28:50 1995  Remy Card  <card@bbj>
464
465         * debugfs.8: Fixed a spelling error in Ted's name :-)
466
467 Mon Jun 12 19:08:25 1995  Theodore Y. Ts'o  (tytso@dcl)
468
469         * debugfs.c, ncheck.c, icheck.c, lsdel.c, dump.c: Include
470                 <errno.h> (if it exists)
471
472         * debugfs.c, dump.c, icheck.c, lsdel.c, ncheck.c: Don't include
473                 <getopt.h> if it doesn't exist.
474
475 Sun Jun 11 15:21:07 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
476
477         * ncheck.c (do_ncheck): Use LINUX_S_ISDIR instead of S_ISDIR
478
479         * debugfs.c: Implement the mknod and write commands (from Linus).
480
481                 Change names of modify_char, modify_short, and modify_long
482                 to be modify_u8, modify_u16, and modify_u32, respectively.
483
484 Thu Jun  8 12:29:15 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
485
486         * debugfs.c (dump_inode): Only print out inode frag fields if
487         HAVE_EXT2_FRAGS is defined (by configure).  Don't print out the
488         reserved field at all for  now.
489
490         * Makefile.in: Rewritten to conform to GNU coding standards and
491         support separate compilation directories.
492
493 Thu Nov 24 17:46:23 1994  Theodore Y. Ts'o  (tytso@rt-11)
494
495         * dump.c: Added two new commands, "dump" and "cat", which allow
496                 the user to dump the contents of an inode to a file or to
497                 stdout, respectively.
498
499