blob: a78c55bbad4563e9e265dfa7be42a6f13f867c56 [file] [log] [blame]
Theodore Ts'o879ac922000-01-18 20:59:11 +000012000-01-18 Theodore Ts'o <tytso@valinux.com>
2
3 * badblocks.c: Folded in patches David Beattie <dbeattie@usa.net>.
4 Need to do cleanup before release: use of GCC extensions
5 (dynamic arrays); unclean coding tricks (use of || instead
6 of if statements, etc.). Comments from David Beattie:
7
8 "I added non-destructive write-testing, and quite a few
9 other features. The non-destructive write testing,
10 triggered by new "-n" command-line option, will write test
11 patterns to the disk, but only after reading data off the
12 disk into memory. Then, comparing the test patterns gives
13 a result as to whether or not those sectors are reliable.
14 Finally, the original data is written back.
15
16 To streamline this operation, I added another option, "-c
17 blocks_at_once", which will give the number of disk blocks
18 to process at one time (mnemonic--"count"). I made this
19 default to 16 (as in the read-only testing mode), and also
20 affect the read-only testing mode. Of course, read-only
21 mode needs (count * block_size) amount of memory, and
22 non-destructive read-write needs 3 times that much, so it
23 makes sense to do the calculations and not overrun
24 available RAM...I would have liked to implement and
25 auto-memory-usage heuristic, but I have no idea if it's
26 even possible to determine the amount of free memory on a
27 Unix system except by reading /proc entries, and that
28 didn't seem portable. I did NOT make this blocks_at_once
29 affect the behavior of the test_rw routine, as it is
30 processing the whole disk at once, anyway.
31
32 I *think* that I got higher detection rates on my hard
33 drive using random test data than patterned test data, so
34 my non-destructive mode initializes its test data buffer
35 randomly.
36
37 I fixed a typo in flush_bufs that caused the ioctl
38 BLKFLSBUF to never get compiled into the program.
39
40 Also, I added an "undocumented" (I didn't put it into the
41 usage message; you can if you think it's useful) "-h"
42 option to specify the host device to flush--useful if you
43 want to test out my "non-destructive" code on something
44 other than a hard drive, such as a file on a hard drive,
45 and want the host hard drive to flush.
46
47 I provided support for an "input" file (via option "-i",
48 similar to the "-o" option)...containing a list of
49 already-known bad blocks; it will skip testing those
50 blocks, thus adding speed to the bad block scan (on my
51 computer, hitting a physically bad block causes a
52 half-second-or-more freeze as the kernel waits for the
53 hard drive to give up and reset itself; pretty annoying
54 when you already know the block is bad from a previous
55 scan).
56
57 Finally, the real killer, the persistent re-scan (option:
58 "-p num_passes") that I created will, if desired,
59 persistently re-scan the drive until it has completed a
60 user-decidable number of passes in a row during which no
61 new bad blocks are found. On my drive, I would see
62 behavior that a certain percentage of bad blocks would be
63 found with each pass (it was not reliable in the defective
64 areas!), so I wanted it to check it over and over again
65 until it didn't find any more, several times. Perhaps
66 this will be useful to others. Defaults of course to
67 zero, meaning it will stop after the first pass. I used
68 "-p 2" on my drive, and it ran for 2 1/2 days...then used
69 "-p 3" a couple days later and it ran for a few more
70 hours, and since then the rest of my drive has been
71 completely reliable.
72
73 Implementation of these last two features, "-i" and "-p",
74 I did using a bb_list from libext2fs. I debated whether
75 bad blocks input through "-i" should be output into the
76 "-o" file (or stdout, of course), and decided against it,
77 but left the code to do so in place, commented out, just
78 for your information.
79
80 In order to maintain data integrity upon interruption of a
81 non-destructive-write test, I created a signal handler
82 which I install which will write back whatever original
83 disk data is in the buffers upon any of the fatal signals
84 (except SIGKILL, of course).
85
86 Of course, ideally, the new options would be reflected in
87 the badblocks manual page, but I am not experienced at
88 manual page modification; if you decide my patch to
89 badblocks should be incorporated into the distribution, I
90 could learn how to update the manpage and other
91 documentation, or you could do it for me after exercising
92 your opinions, if you have any, on exactly what the
93 command-line parameters should be called and which ones
94 should be in the distribution."
95
Theodore Ts'o3cb77842000-01-18 16:30:27 +0000962000-01-07 Theodore Ts'o <tytso@valinux.com>
97
98 * Really fix the bug where "fsck -As" will actually allow
99 interactive fsck's. (For those people who like to do
100 interactive fsck's in the /etc/rc scripts!?!)
101
Theodore Ts'obfd21931999-11-23 13:48:58 +00001021999-11-23 <tytso@valinux.com>
103
104 * tune2fs.8.in: Fix man page so that the sparse_super filesystem
105 option is properly named.
106
Theodore Ts'o6733c2f1999-11-23 02:23:30 +00001071999-11-22 <tytso@valinux.com>
108
109 * mke2fs.c: Change log2() and log10() to int_log2() and
110 int_log10() to avoid namespace collisions. Change #ifdef
111 sparc to #ifdef __sparc__.
112
Theodore Ts'o5c36a2f1999-11-19 18:42:30 +00001131999-11-19 <tytso@valinux.com>
114
115 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
116 the source directory.
117
Theodore Ts'o6fdc7a31999-11-10 13:34:40 +00001181999-11-10 <tytso@valinux.com>
119
Theodore Ts'ocd086361999-11-10 16:00:39 +0000120 * Release of E2fsprogs 1.18
121
1221999-11-10 <tytso@valinux.com>
123
Theodore Ts'o6fdc7a31999-11-10 13:34:40 +0000124 * mke2fs.8.in: Update manual page so that the sparse_option
125 filesystem option is properly named.
126
Theodore Ts'o6a35ffa1999-11-04 22:34:43 +00001271999-11-04 <tytso@valinux.com>
128
129 * fsck.c (main): Move setting of the interactive flag to before
130 the call to check_all(), so that people who try to use
131 fsck -As can do so interactively.
132
Theodore Ts'o36caf251999-10-26 14:29:22 +00001331999-10-26 <tytso@valinux.com>
134
Theodore Ts'o28e11941999-10-26 18:17:20 +0000135 * Release of E2fsprogs 1.17
136
1371999-10-26 <tytso@valinux.com>
138
Theodore Ts'o3bc03661999-10-26 17:17:00 +0000139 * fsck.c (PRS, device_already_active): Add debugging hook; if the
140 environment variable FSCK_FORCE_ALL_PARALLEL is set, then
141 force all fsck runs to happen in parallel.
142
Theodore Ts'o36b01301999-10-26 14:38:36 +0000143 * get_device_by_label.c (has_right_label): Fixed bug where code
144 used a strncmp to compare a binary UUID value which may
145 contain a NULL. Fixed GCC warnings; added const to char *
146 typed variables. Eliminated non-portable use of u_char.
147
Theodore Ts'o4a600561999-10-26 14:35:51 +0000148 * mke2fs.c (PRS): Fix gcc warnings; add const to some char *
Theodore Ts'o9094f281999-10-26 16:42:50 +0000149 variables, including in struct mke2fs_defaults.
150 (set_fs_defaults): Changed parameter name to avoid
151 gcc warnings.
Theodore Ts'o4a600561999-10-26 14:35:51 +0000152
Theodore Ts'ob5135711999-10-26 14:33:24 +0000153 * fsck.c (wait_one): Fix gcc warnings; add #include for ctype.h,
154 add const to char * variables, and use NOARGS to declare
155 functions that take no arguments. Also fix a memory leak
156 in execute() where we weren't freeing argv[] after forking
157 the child process.
158
Theodore Ts'o36caf251999-10-26 14:29:22 +0000159 * chattr.c: Add hack to compile in a definition for S_ISLNK so we
160 can successfully compile even with warnings turned on.
161
Theodore Ts'oad6783d1999-10-26 01:58:54 +00001621999-10-25 <tytso@valinux.com>
163
164 * mke2fs.c (show_stats): Capitalized Hurd to make the GNU types
165 happy.
Theodore Ts'oe6597041999-10-26 02:30:16 +0000166 (PRS): Use __u64 instead of long long for portability
167 reasons. Also moved #include of sys/stat.h inside #ifdef
168 HAVE_LINUX_MAJOR_H for portability reasons.
Theodore Ts'oad6783d1999-10-26 01:58:54 +0000169
170 * fsck.c (execute): Fix really stupid bug in the linked list
171 management which caused fsck in parallel mode to go into
172 an infinite loop.
173
Theodore Ts'o896938d1999-10-23 01:04:50 +00001741999-10-22 <tytso@valinux.com>
175
Theodore Ts'o614fdfd1999-10-23 03:19:51 +0000176 * Release of E2fsprogs 1.16
177
1781999-10-22 <tytso@valinux.com>
179
Theodore Ts'o896938d1999-10-23 01:04:50 +0000180 * tune2fs.c (main): Add a new option -O which allows the user to
181 set and clear certain "safe" filsystem feature flags.
182 Currently, the only ones which are supported for
183 modification are sparse_superblock and filetype.
184
185 * mke2fs.c (PRS): Add new option -O which allows the user to
186 request filesystems with specific filesystem options. By
187 default on 2.2 and later systems, create filesystems that
188 have both file type information and sparse superblocks.
189
Theodore Ts'ocaf8ce41999-10-21 19:56:34 +00001901999-10-21 <tytso@valinux.com>
191
192 * badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
193 fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
194 tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
195 format (bold option flags and italicized variables), as
196 suggested by Andreas Dilger (adilger@enel.ucalgary.ca)
197
Theodore Ts'o7f4bb6c1999-10-20 18:11:01 +00001981999-10-14 <tytso@valinux.com>
199
Theodore Ts'o671cbfa1999-10-20 18:14:23 +0000200 * tune2fs.c (main): Fix typo (double spaces) in messages regarding
201 changing the sparse superblock option
202
Theodore Ts'o7f4bb6c1999-10-20 18:11:01 +0000203 * fsck.c (wait_one): If the fsck process just started, wait a
204 second before sending a SIGUSR1, to give it a chance
205 to set the signal handler; otherwise, fsck will die on an
206 unhandled SIGUSR1.
207
2081999-09-15 <tytso@valinux.com>
Theodore Ts'o76714331999-10-20 18:06:29 +0000209
210 * mke2fs.c (show_stats): Fix display bug when printing out the
211 number of superblocks. Suggested by Yann Dirson.
212
Theodore Ts'o27401561999-09-14 20:11:19 +00002131999-09-08 <tytso@valinux.com>
214
215 * partinfo.c: Fix minor compilation bugs pointed out by Yann
216 Dirson.
217
218 * mke2fs.c: Don't turn on sparse superblocks by default on pre-2.2
219 kernels.
220
221 * mke2fs.8.in: Add the possible valid block sizes for mke2fs.
222 Document the -n flag, and the new defaults for the -s
223 flag.
224
225 * dumpe2fs.c, dumpe2fs.8.in: Add new options -f (force) and -h
226 (header-only).
227
2281999-08-13 <tytso@valinux.com>
229
230 * mke2fs.c (PRS): Fix logic for turning on/off the sparse
231 superblock option.
232
2331999-07-18 Theodore Ts'o <tytso@valinux.com>
Theodore Ts'o657cb971999-07-30 23:19:10 +0000234
235 * Release of E2fsprogs 1.15
236
Theodore Ts'o50787ea1999-07-19 15:30:21 +00002371999-07-18 <tytso@rsts-11.mit.edu>
238
239 * mke2fs.c (PRS, set_fs_defaults): Add new option -T which allows
240 the user to specify the how the filesystem is to be used.
241 Mke2fs now chooses the filesystem parameters automatically
242 based on the size of the filesystem and the intended use
243 of the filesystem. Add new option -n which simply goes
244 through the calculations to determine the parameters of
245 the filesystem the system would make.
246
2471999-07-18 <tytso@valinux.com>
248
249 * fsck.c, fsck.h: Add support for new option -C. This option will
250 automatically manage e2fsck processes so that they will
251 print completion/progress bars. If multiple filesystems
252 are being checked, arrange to make sure that only one
253 e2fsck process is displaying a progress bar at a time.
254
2551999-07-08 <tytso@valinux.com>
Theodore Ts'o9f10a7b1999-07-16 10:41:36 +0000256
257 * badblocks.c (do_test): Don't complain if the write error occurs
258 on a non-block boundary. This is perfectly common when
259 using blocksizes larger than 1k.
260
Theodore Ts'oc54b3c31999-07-03 07:20:06 +00002611999-07-03 <tytso@valinux.com>
Theodore Ts'o5dbb0721999-07-03 06:16:06 +0000262
263 * uuidgen.c: Add option parsing so that user can ask for either a
264 time-based UUID or a random-based UUID.
265
Theodore Ts'oc54b3c31999-07-03 07:20:06 +00002661999-07-02 <tytso@valinux.com>
Theodore Ts'o2d8defd1999-07-03 01:59:42 +0000267
268 * fsck.c: Added support for LABEL= and UUID= specifications for
269 the filesystem's device, to match what recent mount
270 programs can support. Also, close stdin when doing fsck
271 -A or when checking more than one filesystem at a time, so
272 that e2fsck doesn't try to ask interactive questions if
273 the filesystem appears to be mounted.
274
275 * get_device_by_label.c: New file added to support LABEL=foo and
276 UUID=bar type specifications.
277
Theodore Ts'o00eedba1999-07-03 00:45:58 +00002781999-07-01 <tytso@valinux.com>
279
280 * badblocks.c: Make the "done" string include enough spaces to
281 clear out a large block number.
282
Theodore Ts'oca3c3281999-06-29 14:37:35 +00002831999-06-29 <tytso@valinux.com>
284
285 * mke2fs.c (check_mount): Allow a filesystem to be made even if it
286 appears mounted if the force option is given.
287
Theodore Ts'oe72a9ba1999-06-25 15:40:18 +00002881999-06-24 <tytso@valinux.com>
289
290 * mke2fs.8.in: Fix typo in man page which caused the badblocks
291 command to not show up in the "SEE ALSO" section.
292
Theodore Ts'oe2423cc1999-06-18 00:51:31 +00002931999-05-02 <tytso@rsts-11.mit.edu>
294
295 * findsuper.c: Added documentation from aeb@cwi.nl; some minor
296 code cleanups.
297
Theodore Ts'o02e7dd91999-06-18 00:48:41 +00002981999-05-20 <tytso@rsts-11.mit.edu>
299
300 * dumpe2fs.c, dumpe2fs.8.in: Added new command-line options which
301 allow a filesystem expert to specify the superblock and
302 blocksize when opening a filesystem. This is mainly
303 useful when examining the remains of a toasted filesystem.
304
Theodore Ts'o5d45d801999-03-16 19:35:19 +00003051999-03-11 Andreas Dilger <adilger@enel.ucalgary.ca>
306
307 * uuidgen.c, uuidgen.1.in: Created command-line utility to
308 generate UUIDs.
309
3101999-03-14 Theodore Ts'o <tytso@rsts-11.mit.edu>
311
312 * fsck.c (fsck_device, execute): Don't dereference a null pointer
313 when checking a filesystem not in /etc/fstab.
314
Theodore Ts'o7d5633c1999-02-09 08:14:28 +00003151999-02-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
316
317 * fsck.c (fsck_device): Print an error message if the user passes
318 in a device or directory name which isn't found in /etc/fstab.
319 Allow the location of /etc/fstab to be overridden by
320 the FSTAB_FILE environment variable.
321
3221999-01-30 Theodore Ts'o <tytso@rsts-11.mit.edu>
323
324 * mke2fs.c (write_inode_tables): Add kludge code so that when the
325 MKE2FS_SYNC environment variable is set, mke2fs will sync
326 every MKE2FS_SYNC block groups, while it is writing out
327 the inode tables. This is to work around a VM bug in the
328 2.0 kernel. I've heard a report that a RAID user was able
329 to trigger it even using a 2.2 kernel.
330
Theodore Ts'oee922991999-01-16 05:39:12 +00003311999-01-16 Theodore Ts'o <tytso@rsts-11.mit.edu>
332
333 * fsck.c (execute, wait_one): Modified routines so that they
334 accurately create an fsck_instance even when the noexecute
335 flag is set. This allows for accurate debugging of the
336 fsck pass structure.
337 (check_all): When the verbose flag is given twice, print
338 debugging information about when fsck is waiting for jobs
339 to finish.
340
Theodore Ts'o7953f611999-01-09 05:03:52 +00003411999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
342
Theodore Ts'o9e51eca1999-01-09 16:32:31 +0000343 * Release of E2fsprogs 1.14
344
3451999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
346
Theodore Ts'o7953f611999-01-09 05:03:52 +0000347 * fsck.8.in: Clarified and expanded the documentation for the -A
348 switch.
349
Theodore Ts'o665f7101999-01-08 13:33:39 +00003501999-01-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
351
352 * fsck.c (load_fs_info): If the pass number field is missing, it
353 needs to be treated as zero.
354
Theodore Ts'oa88fa0c1999-01-05 07:02:39 +00003551999-01-05 Theodore Ts'o <tytso@rsts-11.mit.edu>
356
Theodore Ts'o5515e6b1999-01-05 07:25:06 +0000357 * mke2fs.c (PRS): Allow the user to specify exactly how many
358 inodes he/she wishes.
359
Theodore Ts'oa88fa0c1999-01-05 07:02:39 +0000360 * chattr.c, lsattr.c: Only print the version information for the
361 program if the -V option is given.
362
363 * chattr.c: Ignore symbolic links when doing a recursive descent
364 through a directory.
365
Theodore Ts'o93ab9d71999-01-02 04:04:42 +00003661999-01-01 Theodore Ts'o <tytso@rsts-11.mit.edu>
367
368 * fsck.c (load_fs_info, parse_fstab_line): Ignore fstab lines
369 are commented out. Also allow blank lines in the
370 /etc/fstab file.
371 (execute): In verbose mode, print the mountpount of the
372 filesystem which we are checking (user request).
373
3741998-12-30 Theodore Ts'o <tytso@rsts-11.mit.edu>
375
376 * mke2fs.c: Add definition of SCSI_BLK_MAJOR if not defined, for
377 compatibility with Linux 1.2.13 header files.
378
Theodore Ts'o556ad131998-12-19 08:10:58 +00003791998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
380
381 * Release of E2fsprogs 1.13
382
Theodore Ts'ocb620171998-12-08 02:21:29 +00003831998-12-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
384
385 * mke2fs.8.in: Fixed stupid typo ("Raid options are _comma_
386 seperated", instead of common separated)
387
Theodore Ts'o5a679c81998-12-03 16:40:38 +00003881998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
389
390 * Makefile.in: Updated dependencies.
391
3921998-11-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
393
394 * fsck.c (load_fs_info): Parse /etc/fstab ourselves, instead of
395 relying on getmntent(). This has the advantage of
396 allowing us to properly handle missing pass numbers correctly.
397
Theodore Ts'o1dde43f1998-11-14 04:18:28 +00003981998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
399
400 * tune2fs.8.in: Fix minor display bug in the nroff.
401
402 * mke2fs.c (show_stats, write_inode_tables): Use the log10
403 function to calculate the display of block numbers so that
404 things look nice on an 80 character display.
405
4061998-10-12 Theodore Ts'o <tytso@rsts-11.mit.edu>
407
408 * mke2fs.c (usage): Add the sparse-super-flag to the usage
409 message.
410
Theodore Ts'o4a5fa191998-07-09 05:42:45 +00004111998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
412
413 * Release of E2fsprogs 1.12
414
Theodore Ts'oeb5ab741998-07-04 17:47:52 +00004151998-07-04 Theodore Ts'o <tytso@rsts-11.mit.edu>
416
417 * findsuper.c (main): Print the block group number which is now
418 being written by e2fsprogs.
419
Theodore Ts'o818180c1998-06-27 05:11:14 +00004201998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
421
422 * fsck.c (ignore): Remove unused variable cp.
423
424 * chattr.c (fatal_error):
425 * tune2fs.c (usage):
426 * lsattr.c (usage):
427 * dumpe2fs.c (usage):
428 * badblocks.c (usage): Remove volatile from declaration.
429
430 * fsck.c: Change use of strdup to be string_copy, since we don't
431 trust what glibc is doing with strdup. (Whatever it is,
432 it isn't pretty.)
433
4341998-06-19 Theodore Ts'o <tytso@rsts-11.mit.edu>
435
436 * mke2fs.c (PRS): Add a -V option which prints the version number
437 and exit.
438
Theodore Ts'o4bf5fbf1998-05-14 22:43:10 +00004391998-05-14 Theodore Ts'o <tytso@rsts-11.mit.edu>
440
441 * fsck.c (ignore): Remove check for filesystems with the noauto
442 option.
443
Theodore Ts'o7e44f241998-04-01 03:16:29 +00004441998-03-30 Theodore Ts'o <tytso@rsts-11.mit.edu>
445
446 * Makefile.in: Change to use new installation directory variables
447 convention. Fix uninstall rules to take $(DESTDIR) into
448 account. Remove cat8dir and cat1dir from the installdirs
449 target, since modern man package don't necessarily put the
450 cat directory in /usr/man/cat?.
451
Theodore Ts'oa789d841998-03-30 01:20:55 +00004521998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
453
Theodore Ts'o3b27db91998-03-30 01:32:10 +0000454 * e2label.8.in: New man page to document the e2label function.
455
Theodore Ts'oa789d841998-03-30 01:20:55 +0000456 * e2label.c: Fix -Wall warning by making functions static.
457
4581998-03-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
459
460 * chattr.1.in: Document that the append-only attribute may
461 only be set or cleared by the superuser.
462
463 * Update all manual pages to that the availability section is
464 up-to-date.
465
466 * e2label.8.in, tune2fs.8.in: Update manual page to state that
467 labels must be no longer than 16 characters, or they will
468 be truncated.
469
470 * e2label.c (change_label), tune2fs.c (main): If the label is
471 longer than 16 characters, print a warning message stating
472 that the label will be truncated.
473
474 * mke2fs.c (PRS): If the user specifies a filesystem size, and
475 it's larger than the apparent size of the device, print a
476 warning message and ask if the user wants to proceed.
477
Theodore Ts'obbfa3aa1998-03-21 07:12:46 +00004781998-03-21 Theodore Ts'o <tytso@rsts-11.mit.edu>
479
480 * mke2fs.c (check_plausibility): Fixed spelling typo in warning
481 message. Fixed up -Wall warnings in file.
482
Theodore Ts'oe9271681998-03-09 03:23:51 +0000483Sun Mar 8 22:21:48 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
484
485 * partinfo.c (main): The ioctl BLKGETSIZE requires a long, not an
486 int.
487
Theodore Ts'o92bcc591998-02-16 22:29:34 +0000488Sun Feb 1 16:53:36 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
489
490 * badblocks.8: Update documentation to note that output format
491 of badblocks is suitable for use with e2fsck -l or
492 mke2fs -l.
493
494 * mke2fs.c (handle_bad_blocks): Fix bug so that all groups with
495 bad superblock backup blocks are printed (not just the
496 first one).
497
Theodore Ts'oca8abba1998-01-19 14:55:24 +0000498Mon Dec 1 17:01:04 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
499
500 * badblocks.8.in: Add documentation for the -s option.
501
Theodore Ts'o519149f1997-10-25 03:49:49 +0000502Fri Oct 24 23:37:52 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
503
504 * fsck.c:
505 * chattr.c: Remove #include of getopt.h, since it's not needed.
506
507 * tune2fs.c (main):
508 * lsattr.c (main):
509 * badblocks.c (main):
510 * dumpe2fs.c (main):
511 * mke2fs.c (PRS): Make the variable which getopt returns into be
512 an int, so that it won't lose on platforms where char is
513 unsigned.
514
Theodore Ts'od163b091997-10-03 17:42:28 +0000515Fri Oct 3 13:38:45 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
516
517 * mke2fs.c (parse_raid_opts): Make parse_raid_opts return a void,
518 to fix a -Wall warning.
519
Theodore Ts'o00e54331997-09-16 02:13:52 +0000520Mon Sep 15 22:07:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
521
522 * tune2fs.c (main):
523 * mklost+found.c (main):
524 * lsattr.c (main):
525 * dumpe2fs.c (main):
526 * chattr.c (main):
527 * badblocks.c (main): Declare main to return an int, as required.
528 Make sure main always ends with an exit(0). (Some
529 programs weren't doing this, and thus were returning a
530 random exit value.)
531
Theodore Ts'oab6b8ab1997-07-14 19:28:55 +0000532Mon Jul 14 15:27:29 1997 Theodore Y. Ts'o <tytso@mit.edu>
533
534 * e2label.c: New file contributed by Andries Brouwer which
535 provides an easy-to-use interface to modify the filesystem
536 label.
537
538 * Makefile.in (SPROGS): Add Makefile support to build e2label
539
Theodore Ts'o024996c1997-06-17 05:38:35 +0000540Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
541
542 * Release of E2fsprogs 1.11
543
Theodore Ts'oe22d4611997-06-17 03:57:27 +0000544Mon Jun 16 23:37:54 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
545
546 * mke2fs.c (show_stats): Adjust the number of columns printed when
547 displaying the superblock backups to avoid running over
548 80 columns when making a really big disk.
549
Theodore Ts'of635d7f1997-05-09 02:50:16 +0000550Thu May 8 22:22:08 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
551
Theodore Ts'o583ccdc1997-05-09 03:06:31 +0000552 * badblocks.8.in, chattr.1.in, dumpe2fs.8.in, fsck.8.in,
553 mke2fs.8.in, tune2fs.8.in: Fix minor typos and grammer
554 oops found by Bill Hawes (whawes@star.net).
555
Theodore Ts'of635d7f1997-05-09 02:50:16 +0000556 * mke2fs.c (test_disk): Pass the blocksize to the bad blocks
557 command so that all of the filesystem gets tested in the
558 case where the blocksize 2048 or 4096.
559
Theodore Ts'oa29f4d31997-04-29 21:26:48 +0000560Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
561
562 * Release of E2fsprogs version 1.10
563
564Thu Apr 24 09:52:47 1997 Theodre Ts'o <tytso@localhost.mit.edu>
565
566 * mke2fs.c: Added new option -R, which specifies RAID options.
567 Currently the only supported RAID option is "stride" which
568 specifies the stripe width in RAID filesystem. This is
569 used to aid in the placement of the inode and block
570 bitmaps.
571
572 * mke2fs.8.in, tune2fs.8.in: Added warnings that the sparse
573 superblock option isn't yet supported by most kernels.
574
575Wed Apr 23 22:42:51 1997 Theodre Ts'o <tytso@localhost.mit.edu>
576
577 * mke2fs.c (PRS): Make the default filesystem revision be 0, not
578 1. (Since some people are still worried about 1.2.13
579 compatibility).
580
581Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
582
583 * Release of E2fsprogs version 1.09
584
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +0000585Fri Apr 11 18:57:24 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
586
587 * chattr.1.in: Updated man page so that the 'A' attribute is
588 specified everywhere.
589
590 * chattr.c (usage): Added usage message for the 'A' attribute.
591
592Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
593
594 * Release of E2fsprogs version 1.08
595
Theodore Ts'o521e3681997-04-29 17:48:10 +0000596Thu Apr 10 07:08:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
597
598 * dumpe2fs.c (list_desc): List the offsets of the inode and block
599 bitmaps, and the inode table. List the block boundaries
600 for the groups.
601
602Sat Apr 5 11:55:52 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
603
604 * tune2fs.c (main): Implement the -s flag allows the user to
605 set and reset the sparse superblock flag.
606
607 * mke2fs.c (PRS): By default generate DYNAMIC revision
608 filesystems. The -s flag controls whether or not the
609 sparse superblock flag is set.
610 (PRS): Change to allow the user to specify the true
611 maximum number of blocks per group to reflect the
612 blocksize.
613
Theodore Ts'o19c78dc1997-04-29 16:17:09 +0000614Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
615
616 * Release of E2fsprogs version 1.07
617
618Thu Mar 6 17:15:05 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
619
620 * mke2fs.c (create_root_dir): Set the root directory's i_uid and
621 i_gid to be the real user and group id.
622
623Tue Mar 4 10:14:33 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
624
625 * mke2fs.c (check_plausibility): Add more intelligent error
626 messages when the device doesn't exist.
627
628Sat Mar 1 10:43:32 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
629
630 * fsck.c (main): Fix bug where the PATH environment variable isn't
631 set when it is unset.
632
633Tue Jan 14 12:30:45 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
634
635 * mke2fs.c (write_inode_tables): Fixed bug in write_inode_tables
636 where a loop variable was getting reused in a nested loop.
637 This caused the inode table to not be correctly
638 initialized.
639
640Thu Jan 2 00:00:37 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
641
642 * lsattr.c, chattr.c: Include string.h, since we use memcpy().
643
644 * findsuper.c: Use time_t for ctime(), not __u32.
645
646Sat Dec 28 23:39:18 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
647
648 * badblocks.c: Adapted -vv modifications from Rik Faith so that
649 they frequently update the block number field.
650
651 * badblocks.8.in: Document the optional start-block parameter
652
653Mon Oct 14 11:52:58 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
654
655 * mke2fs.c: Updated to use new ext2fs_allocate_tables() function.
656
657Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
658
659 * Release of E2fsprogs version 1.06
660
Theodore Ts'o5c576471997-04-29 15:29:49 +0000661Mon Oct 7 00:56:24 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
662
663 * chattr.1.in: Documented the 'A' (noatime) attribute.
664
665 * dumpe2fs.c (main): Change EXT2_SWAP to EXT2_FLAG_SWAP for
666 consistency's sake.
667
668Sun Sep 22 16:18:47 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
669
670 * chattr.c (decode_arg): Add support for the 'A' (noatime) flag.
671
672Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
673
674 * Release of E2fsprogs version 1.05
675
Theodore Ts'o1e3472c1997-04-29 14:53:37 +0000676Sat Sep 7 07:34:11 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
677
678 * tune2fs.c (main): Add support for new option -C, which sets the
679 current number of mounts.
680 (main): Allow the interval to be specified in seconds,
681 mostly for debugging.
682
683Tue Aug 27 17:27:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
684
685 * Makefile.in (SMANPAGES): Use @FSCK_MAN@ instead of fsck.8.
686 (SPROGS): Use @FSCK_PROG@ instead of fsck.
687
688Thu Aug 22 00:51:44 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
689
690 * mke2fs.c (zap_bootblock): Don't do zap_bootblock on a
691 sparc.
692
693Tue Aug 20 00:15:46 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
694
695 * chattr.c (main): Fixed bug so that chattr -v works. (Bug report
696 and fix sent by Charles Howes, chowes@eznet.ca)
697
698Fri Aug 9 11:52:42 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
699
700 * tune2fs.8.in:
701 * tune2fs.c: Added support for the -L option which sets the volume
702 label, the -M option which sets the last mounted
703 directory, and the -U option which sets the filesystem UUID.
704
705 * mke2fs.8.in:
706 * mke2fs.c: Added support for the -o option, which overrides the
707 creator OS. Generate a UUID for the filesystem, if
708 applicable. Added support for the -L option which sets
709 the volume label, and the -M option which sets the last
710 mounted directory.
711
712Sat Jun 22 17:43:17 1996 Remy Card <card@bbj.linux.eu.org>
713
714 * chattr.c (decode_arg): Integrated Michael Nonweiler's fix to
715 avoid a segmentation fault when the "-v" option is used
716 and no version number is specified.
717
Theodore Ts'o62c06f71997-04-29 14:34:47 +0000718Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
719
720 * Release of E2fsprogs version 1.04
721
722Wed May 15 21:15:43 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
723
724 * Makefile.in (fsck): fsck doesn't need to be linked with the ext2
725 libraries.
726
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000727Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
728
729 * Release of E2fsprogs version 1.03
730
731Thu Mar 7 03:43:20 1996 <tytso@rsts-11.mit.edu>
732
733 * mke2fs.c (PRS): Add (for development only) support to
734 specify revision and inode size of the new filesystem.
735
736Tue Mar 5 03:51:35 1996 <tytso@rsts-11.mit.edu>
737
738 * mke2fs.8.in: Fix a few minor typo's in the man page.
739
740 * mke2fs.c (reserve_inodes): Add support for dynamic first inode
741 revision.
742
743Mon Feb 5 22:19:49 1996 <tytso@rsts-11.mit.edu>
744
745 * fsck.c (check_all, PRS): Added new flag -P, which turns on the
746 parallel root option. This allows you to check the root
747 filesystem in parallel with the other filesystems. Note
748 that this is not the safest thing in the world to do,
749 since if the root filesystem is in doubt things like
750 the e2fsck executable might be corrupted! But some
751 sysadmins, who don't want to repartition the root
752 filesystem to be small and compact, may really want this
753 option turned on.
754
Theodore Ts'o74becf31997-04-26 14:37:06 +0000755Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
756
757 * Release of E2fsprogs version 1.02
758
759Tue Oct 30 21:14:12 1995 <tytso@rsts-11.mit.edu>
760
761 * mke2fs.c (check_plausibility): Add check to warn user if they
762 are trying to mke2fs the whole disk. (/dev/hda
763 vs. /dev/hda1)
764
765Fri Dec 15 19:09:56 1995 <tytso@rsts-11.mit.edu>
766
767 * fsck.c (check_all): If we break out of the loop because we are
768 serializing and have just started at fsck we haven't
769 finished the pass. We need to go round again in case there
770 are more filesystems to be done in this pass. (Patch
771 submitted by Mike Jagdis)
772
773Sat Dec 9 10:07:16 1995 <tytso@rsts-11.mit.edu>
774
775 * dumpe2fs.c (in_use): test_bit() was renamed to
776 ext2fs_test_bit().
777
Theodore Ts'o297f47a1997-04-26 14:25:20 +0000778Mon Oct 30 20:21:18 1995 <tytso@rsts-11.mit.edu>
779
780 * fsck.c (fsck_device): Check fstype instead of type; this was a
781 stupid typo which caused coredumps in some cases.
782
Theodore Ts'oa418d3a1997-04-26 14:00:26 +0000783Thu Oct 26 12:05:18 1995 <tytso@rsts-11.mit.edu>
784
785 * Makefile.in (install): Strip programs when they are installed.
786
787Fri Aug 18 15:10:40 1995 Theodore Y. Ts'o <tytso@dcl>
788
789 * mke2fs.c (PRS): Move call of check_mount() from main() to PRS(),
790 so we do the check to see if the filesystem is mounted
791 *before* we try to determine the size of the device.
792
793Wed Sep 6 23:34:07 1995 Remy Card <card@bbj>
794
795 * fsck.c (load_fs_info): Load the informations from /etc/fstab in
796 the same order.
797
798Thu Aug 17 22:33:09 1995 <tytso@rsts-11.mit.edu>
799
800 * mke2fs.c (check_mount): Use the new ext2fs_check_if_mounted()
801 function to determine if the device is mounted.
802
803 * mke2fs.c (PRS): Change call to use the new
804 ext2fs_get_device_size() function in order to determine
805 the size of the filesystem. Remove get_size() and
806 is_valid_offset(), which are no longer called.
807
808Fri Aug 11 08:26:24 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
809
810 * fsck.c (fsck_device): Make sure fstype has been set by the user
811 and that it does not begin with "no" and the user has
812 specified exactly one type before using it as the type to
813 check.
814
815Fri Aug 11 14:17:18 1995 Remy Card <card@bbj>
816
817 * badblocks.8:
818 * chattr.1:
819 * dumpe2fs.8:
820 * fsck.8:
821 * lsattr.1:
822 * mke2fs.8:
823 * mklost+found.8:
824 * tune2fs.8: Updated date and version number.
825
826Thu Aug 10 14:18:36 1995 Remy Card <card@bbj>
827
828 * tune2fs.c: Fixed a bug which prevented the use of user and group
829 names with the -g and -u options. Thanks to Jean Christophe
830 ANDRE <progfou@mycrob.cafard.freenix.fr>.
831
832 * mke2fs.8:
833 * tune2fs.8: Fixed a spelling error in Ted's name :-)
834
835Wed Aug 9 20:41:54 1995 Theodore Y. Ts'o <tytso@dcl>
836
837 * mke2fs.c (count_blocks): Divide the size by
838 EXT2_BLOCK_SIZE(&param), instead of assuming that the
839 blocksize is always 1024 bytes.
840
841Sat Aug 5 12:00:51 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
842
843 * mke2fs.c (PRS): Use malloc() instead of alloca() --- alloca() is
844 not portable!! In any case putenv() in some systems must
845 take a static character array or malloc()'ed memory;
846 passing memory allocated using alloca() to putenv() is not
847 advisable.
848
849 * chattr.c (chattr_dir_proc):
850 * lsattr.c (lsattr_dir_proc): Use malloc() instead of alloca() ---
851 alloca is not portable!
852
853 * fsck.c (fsck_device): If the filesystem type is specified by the
854 user using the -t option, let it override the type in
855 /etc/fstab.
856
857 * fsck.c (strdup): Don't build strdup() if the system defines it.
858
859Mon Jun 12 19:15:10 1995 Theodore Y. Ts'o (tytso@dcl)
860
861 * chattr.c, lsattr.c: Include <sys/types.h> for <dirent.h>'s
862 benefit.
863
864 * The $(UPROGS) go in bin, not sbin.
865
866 * badblocks.c, chattr.c, dumpe2fs.c, fsck.c, lsattr.c, mke2fs.c,
867 tune2fs.c: Don't include <getopt.h> if it doesn't exist.
868
869Mon Jun 12 16:36:04 1995 Theodore Y. Ts'o <tytso@dcl>
870
871 * badblocks.c, chattr.c, dumpe2fs.c, fsck.c, lsattr.c, mke2fs.c,
872 tune2fs.c: Only include getopt.h if HAVE_GETOPT_H is defined.
873
874Sat Jun 10 23:37:09 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
875
876 * chattr.c: Include errno.h, since we use errno
877
878 * fsck.c (load_fs_info): If HAVE_MNTENT_H is not defined,
879 explicitly initialize filesys_info to be NULL.
880
881 * mke2fs.c: Include the stdio.h and errno.h header files
882
883Thu Jun 8 13:25:23 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
884
885 * mke2fs.c: Only include <linux/fs.h> if we can.
886 (get_size): Don't try to use the BLKGETSIZE ioctl unless it's defined.
887 (check_mount): Only check to see if the device is mounted if
888 HAVE_MNTENT_H is defined (by configure).
889
890 * fsck.c (load_fs_info): Only try to get info about filesystems if
891 HAVE_MNTENT_H is defined (by configure).
892 (main): Allocate space for a new fsck_path instead of append to a
893 statically sized buffer.
894 (PRS): Use alloca to allocate the new path string, instead of
895 having a fixed size buffer (which was the wrong size anyway).
896
897 * chattr.c (chattr_dir_proc): Use alloca to allocate space for a
898 filename instead of using a fixed-size buffer.
899 * lsattr.c (lsattr_dir_proc): Ditto.
900 * mklost+fond.c (main): Calculate the actual needed size for the
901 path buffer instead of using MAXPATHLEN (which not all systems have).
902
903 * badblocks.c: Only include linux include files if we have them.
904 (flush_bufs): New function to flush a block device, optionally
905 syncing it first. This replaces other copies of this code.
906 (test_ro): Replace calls to ioctl with flush_bufs().
907 (test_rw): Ditto.
908
909 * Makefile.in: Rewritten to conform to GNU coding standards and
910 support separate compilation directories.
911
Theodore Ts'of3db3561997-04-26 13:34:30 +0000912Sat Mar 11 10:59:58 1995 Theodore Y. Ts'o <tytso@localhost>
913
914 * mke2fs.c (main, zap_bootblock): Added new function
915 zap_bootblock() which clears the first 512 bytes of the
916 filesystem. This protects the filesystem from being
917 misidentified as a MS-DOS FAT filesystem.
918
919 * badblocks.c (alarm_intr, test_ro, test_rw): Increase the space
920 allocated for printing the block numbers, so that the
921 display doesn't get corrupted when running badblocks on a
922 very large partition.
923
924 * badblocks.c (do_test, test_ro, test_rw): Added missing cast to
925 ext2_loff_t, so that when checking a large device,
926 spurious seek errors aren't reported.
927
928 * mke2fs.c (count_blocks): Declare mid to be of type ext2_loff_t
929 instead of type int, so that it works for filesystems
930 greater than 2 GB. (Fortunately count_blocks is only
931 called if the device does not support the BLKGETSIZE
932 ioctl, which most do.)
933
934 * fsck.c (ignore): Add check to ignore filesystems with a pass
935 number of zero. (This check was accidentally deleted at
936 during 0.5b development.)
937
938Sat Dec 31 00:47:16 1994 <tytso@rsx-11.mit.edu>
939
940 * mke2fs.c (new_table_block, alloc_tables, PRS, main): Add a new
941 option, -S, which only writes the superblock and group
942 descriptors. Useful for recovering when all of the
943 superblocks are corrupted somehow (as a last ditch
944 measure).
945
946 Also, don't bother initializing the bitmap blocks in
947 alloc_tables(), since they will be overwritten at the end
948 anyway. (Should speed up mke2fs by a little.)
949
950Tue Dec 6 02:20:55 1994 <tytso@rsx-11.mit.edu>
951
952 * fsck.c (main): Fix stupid typo where a null inst would be freed.
953
954 * fsck.c (wait_one): Check WIFEXITED on status before trying to
955 extract the exit status. In other cases, return
956 FSCK_ERROR if the back end processor exited with a signal.
957
958Tue Nov 15 10:20:00 1994 Remy Card <card@bbj>
959
960 * tune2fs.c (main): Fixed a bug which prevented the use of the
961 new options.
962 Added the `w' (week) suffix recognition in the check interval.
963
964Sun Nov 13 15:58:48 1994 (tytso@rsx-11)
965
966 * fsck.c (load_fs_info): If the user has an obviously old
967 /etc/fstab file, issue a warning message and assume that
968 all partitions should be checked.
969
970Sat Nov 12 00:33:18 1994 (tytso@rsx-11)
971
972 * dumpe2fs.c (list_desc): Update to new inode and block bitmap
973 structures.
974
975 * mke2fs.c (create_root_dir): Create the root directory owned by
976 the effective uid.
977
978Mon Nov 7 22:04:37 1994 Remy Card <card@bbj>
979
980 * tune2fs.c (main.c): Added support for new options:
981 -r reserved_blocks_count, -g reserved_gid, -u reserved_uid.
982
983Sun Aug 21 00:57:33 1994 Theodore Y. Ts'o (tytso@rt-11)
984
985 * fsck.c (ignore): If the pass number is 0, ignore the filesystem.
986
987Wed Aug 17 21:55:03 1994 Remy Card (card@bbj)
988
989 * badblocks.c (test_rw): Added verbose output like in the
990 read-only test.
991
992 (do_test and test_rw): Use the llseek system call if available.
993
994 * chattr.c: Added support for new attributes.
995
996 * lsattr.c: Added support for long format.
997
998 * mke2fs.c (usage): Fixed bogus usage message.
999
1000 (valid_offset): Use the llseek system call if available.
1001
1002Wed Aug 17 10:50:57 1994 Theodore Y. Ts'o (tytso@rt-11)
1003
1004 * mke2fs.c (handle_bad_blocks): Check to see if a bad block is
1005 where a backup superblock/group descriptor is stored. If so,
1006 print a warning message and adjust the superblock counts so that
1007 they are correct. (Otherwise, the bad block will get counted
1008 twice and the # of free blocks count will be wrong.)
1009
1010 (alloc_tables): Removed code which calcualated the free block
1011 statistics, which was moved to lib/ext2fs/initialize.c. This
1012 allows the bad block code to adjust the group descriptor
1013 statistics if necessary.