Whamcloud - gitweb
Clean up gcc -Wall complaints in resize2fs
[tools/e2fsprogs.git] / resize / ChangeLog
1 2005-12-29  Theodore Ts'o  <tytso@mit.edu>
2
3         * resize2fs.c (mark_table_blocks): Remove unused variables to
4                 clean up gcc -Wall complaints.
5
6         * main.c (main): If the filesystem being resized is a regular
7                 file, truncate or expand the file to match the new
8                 filesystem size.  (Addresses Debian Bug: #271607)
9
10 2005-08-08  Theodore Ts'o  <tytso@mit.edu>
11
12         * resize2fs.c (move_itables): Fix fencepost error caught by valgrind.
13                 (adjust_superblock): Clear the newly allocated descriptor
14                 blocks when we allocate them to avoid false positives from
15                 valgrind (and so that the unusued descriptors at the tail
16                 end of the newly allocated descriptor blocks are zero'ed
17                 out, include of random garbage).
18
19 2006-06-30  Theodore Ts'o  <tytso@mit.edu>
20
21         * Release of E2fsprogs 1.38
22
23 2005-05-09  Theodore Ts'o  <tytso@mit.edu>
24
25         * resize2fs.c (fix_resize_inode): Don't bother to translate
26                 debugging printf's.
27
28         * main.c: Fix case on usage message, and remove _() from messages
29                 from a version string that doesn't need translation.
30
31 2005-03-21  Theodore Ts'o  <tytso@mit.edu>
32
33         * Release of E2fsprogs 1.37
34
35 2006-02-05  Theodore Ts'o  <tytso@mit.edu>
36
37         * Release of E2fsprogs 1.36
38
39 2005-01-26  Theodore Ts'o  <tytso@mit.edu>
40
41         * resize2fs.c: Fix bug where we don't release the blocks belonging
42                 to the old inode table blocks when we move the inode
43                 table.  (Addresses Debian Bug: #290894)
44
45 2005-01-05  Theodore Ts'o  <tytso@mit.edu>
46
47         * main.c (main): Use parse_num_blocks() from the e2p library to
48                 parse the number of blocks from the command line.
49
50 2004-12-16  Theodore Ts'o  <tytso@mit.edu>
51
52         * resize2fs.c (resize_fs): Call ext2fs_create_resize_inode to
53                 fill in the necessary fields in the resize inode.
54                 (adjust_superblock): Reserve blocks that are needed for
55                 on-line resizing if that feature is enabled.
56
57 2004-12-14  Theodore Ts'o  <tytso@mit.edu>
58
59         * Makefile.in: Move strip command to install-strip target.
60                 Use Linux-kernel-style makefile output for "make install"
61
62         * Makefile.in (installdirs): Use $(MKINSTALLDIRS) macro
63
64 2004-11-30  Theodore Ts'o  <tytso@mit.edu>
65
66         * main.c: If there is a question mark in the device name,
67                 separate out the options to the IO layer, and pass it on
68                 to ext2fs_open2().
69
70         * Makefile.in: Use Linux-kernel-style makefile output to make it
71                 easier to see errors/warnings.
72
73 2004-09-17  Theodore Ts'o  <tytso@mit.edu>
74
75         * resize2fs.c (check_and_change_inodes): Fix debugging printf to
76                 mask off the high 256 bits of dirent->name_len (which is
77                 where the file type information is stored).  (Addresses
78                 Debian Bug #271605)
79
80 2004-04-03  Theodore Ts'o  <tytso@mit.edu>
81
82         * Makefile.in: Update the modtime even if subst doesn't need to
83                 update the resize2fs man page, to avoid always re-running
84                 subst, especially since there are no dependencies on the
85                 man page.
86
87 2004-02-28  Theodore Ts'o  <tytso@mit.edu>
88
89         * Release of E2fsprogs 1.35
90
91 2003-12-07  Theodore Ts'o  <tytso@mit.edu>
92
93         * main.c, resize2fs.c: Fix gcc -Wall nitpicks.
94
95 2003-08-24  Theodore Ts'o  <tytso@mit.edu>
96
97         * resize2fs.8.in: Adjust description line so that apropos
98                 "ext2" or "ext3" will find the man page.  (Addresses
99                 Debian Bug #206845)
100
101 2003-08-01  Philipp Thomas <pthomas@suse.de>
102
103         * extent.c, resize2fs.c, sim_progress.c: ext2fs_getmem(),
104                 ext2fs_free_mem(), and ext2fs_resize_mem() all now take a
105                 'void *' instead of a 'void **' in order to avoid pointer
106                 aliasing problems with GCC 3.x.
107
108 2003-07-25  Theodore Ts'o  <tytso@mit.edu>
109
110         * Release of E2fsprogs 1.34
111
112 2003-07-08  Theodore Ts'o  <tytso@mit.edu>
113
114         * main.c (main): Round the default size of the filesystem to be an
115                 even multiple of the pagesize to work around a potential
116                 Linux kernel bug.
117
118 2003-06-24    <tytso@snap.thunk.org>
119
120         * resize2fs.c (block_mover): Don't move blocks associated with the
121                 bad blocks inode.  Instead, just remove them from the
122                 badblocks list.  (Note this means that shrinking and then
123                 enlarging a filesystem is not a reversible operation;
124                 information about bad blocks in the part of the filesystem
125                 which is to be chopped off is discarded.)
126
127 2003-06-08  Theodore Ts'o  <tytso@mit.edu>
128
129         * resize2fs.8.in: Make explicit that you need to run resize2fs
130                 after using fdisk to adjust the partition size when
131                 expanding the filesystem.  (Addresses Debian Bug #195616)
132
133 2003-05-13  root  <tytso@mit.edu>
134
135         * main.c (main): Add the ability to specify units to the size
136                 parameter, and make the error and information messages
137                 display explicitly the blocksize used by the filesystem,
138                 to avoid confusion.  (Addresses Debian bug: #189814)
139
140 2003-05-03  Theodore Ts'o  <tytso@mit.edu>
141
142         * main.c (main): Add calls to setup functions for NLS support.
143
144         * Makefile.in: Add $(LIBINTL) to the link line so we can support
145                 using the internal gettext library.
146
147         * resize2fs.h: Add #ifndef protection around LOCALEDIR definition.
148
149 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
150
151         * Release of E2fsprogs 1.33
152
153 2003-04-21  Theodore Ts'o  <tytso@mit.edu>
154
155         * Makefile.in: Use DYLD_LIBRAY_PATH so that "make check" works on
156                 Darwin systems when building with shared libraries.
157
158 2003-03-06    <tytso@mit.edu>
159
160         * resize2fs.c (blocks_to_move): Bug fix; we were incorrectly
161                 moving the block and inode bitmaps for sparse superblock
162                 filesystems.  (Address Debian bug #174766)
163
164 2002-11-09  Theodore Ts'o  <tytso@mit.edu>
165
166         * Release of E2fsprogs 1.32
167
168 2002-11-08  Theodore Ts'o  <tytso@mit.edu>
169
170         * Release of E2fsprogs 1.31
171
172 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
173
174         * Release of E2fsprogs 1.30
175
176 2002-10-31  Theodore Ts'o  <tytso@mit.edu>
177
178         * resize2fs.c (inode_scan_and_fix, check_and_change_inodes): When
179                 moving an inode, set the ctime field so that people using
180                 dump/restore will backup the changed inode.  Also update
181                 the mtime and ctime of directories which get updated when
182                 we need to move an inode.
183
184 2002-10-30  Theodore Ts'o  <tytso@mit.edu>
185
186         * Makefile.in (install): Search all compression extensions when
187                 deleting old man pages.
188
189         * resize2fs.c (adjust_superblock, mark_table_blocks,
190                 blocks_to_move): Add support for resizing filesystems that
191                 use the meta block group layout.
192
193         * main.c (main): Fixed bug that erroneously (and
194                 needlessly) checked the incompat feature flag field
195                 against the supported ro_compat feature set.
196
197 2002-10-03  Theodore Ts'o  <tytso@mit.edu>
198
199         * resize2fs.8.in: Fix typo in man page.
200
201 2001-09-24  Theodore Tso  <tytso@mit.edu>
202
203         * Release of E2fsprogs 1.29
204
205 2001-08-31  Theodore Tso  <tytso@thunk.org>
206
207         * Release of E2fsprogs 1.28
208
209 2002-08-16  Theodore Ts'o  <tytso@mit.edu>
210
211         * resize2fs.c (inode_scan_and_fix): Add code to move the extended
212                 attribute block.
213         
214 2002-07-26  Theodore Ts'o  <tytso@mit.edu>
215
216         * resize2fs.c (block_mover): If there are no blocks to move,
217                 release the bmap table.  This significantly speeds up
218                 resize2fs when shrinking or expanding a filesystem by a
219                 very small number of blocks (which EVMS will do).
220
221 2002-05-28    <tytso@mit.edu>
222
223         * main.c (main): If the filesystem has errors or is not valid,
224                 then require an e2fsck -f run be done on the filesystem
225                 more.
226
227 2002-04-09    <tytso@snap.thunk.org>
228
229         * main.c (main): If resize_fs returns an error, don't print the
230                 message stating that the filesystem was resized.
231
232 2002-03-31    <tytso@mit.edu>
233
234         * main.c (main): If we are resizing a plain file which is smaller
235                 than the requested size, then we will attempt to
236                 transparently extend the filesize in a sparse fashion by
237                 writing a block at the end of the requested part of the
238                 filesystem.
239
240         * main.c (main), resize2fs.c (resize_fs), resize2fs.h: Change the
241                 function prototype of resize_fs() so that it can modify
242                 the new_size parameter with the actual new size of the
243                 filesystem after the resize operation.  (This can
244                 sometimes be less than the requested new size if there
245                 isn't enough space to create the necessary block group
246                 metadata for that last bit of disk space.)  Resize2fs now
247                 prints the actual new size of the filesystem when it finishes.
248
249 2002-03-08  Theodore Tso  <tytso@mit.edu>
250
251         * Release of E2fsprogs 1.27
252
253 2002-03-07  Theodore Tso  <tytso@mit.edu>
254
255         * resize2fs.c (process_block, inode_scan_and_fix, 
256                 check_and_change_inodes): Fix gcc -Wall complaints in
257                 debug code.
258
259         * Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
260                 (From Philipp Thomas <pthomas@suse.de>)
261
262 2002-02-24  Theodore Tso  <tytso@mit.edu>
263
264         * Makefile.in (install): Remove any compressed man pages before
265                 installing the man pages.
266
267 2002-02-03  Theodore Tso  <tytso@thunk.org>
268
269         * Release of E2fsprogs 1.26
270
271 2001-09-20  Theodore Tso  <tytso@thunk.org>
272
273         * Release of E2fsprogs 1.25
274
275 2001-09-02  Theodore Tso  <tytso@thunk.org>
276
277         * Release of E2fsprogs 1.24a
278
279 2001-08-30  Theodore Tso  <tytso@thunk.org>
280
281         * Release of E2fsprogs 1.24
282
283 2001-08-15  Theodore Tso  <tytso@valinux.com>
284
285         * Release of E2fsprogs 1.23
286
287 2001-06-23  Theodore Tso  <tytso@valinux.com>
288
289         * Release of E2fsprogs 1.22
290
291 2001-06-15  Theodore Tso  <tytso@valinux.com>
292
293         * Release of E2fsprogs 1.21
294
295 2001-06-01  Theodore Tso  <tytso@valinux.com>
296
297         * Makefile.in: Move include/asm/types.h.in to
298                 lib/ext2fs/ext2_types.h.in.
299
300 2001-05-25  Theodore Tso  <tytso@valinux.com>
301
302         * Release of E2fsprogs 1.20
303
304 2001-05-14  Theodore Tso  <tytso@valinux.com>
305
306         * resize2fs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
307
308 2001-01-11    <tytso@snap.thunk.org>
309
310         * main.c (main): Use ext2fs_sync_device() instead of calling the
311                 BLKFLSBUF ioctl directly.
312
313         * extent.c, main.c, resize2fs.c: Change ino_t to ext2_ino_t.
314
315 2001-01-01    <tytso@snap.thunk.org>
316
317         * main.c (main): Replace use of struct ext2fs_sb with struct
318                 ext2_super_block.
319
320 2000-12-08    <tytso@snap.thunk.org>
321
322         * Makefile.in: Fix so that top-level "make check" works correctly.
323
324 2000-07-13    <tytso@valinux.com>
325
326         * Release of E2fsprogs 1.19
327
328 2000-07-05    <tytso@snap.thunk.org>
329
330         * Makefile.in (install): Install resize2fs in /sbin, not /usr/sbin.
331
332 2000-06-12  Theodore Ts'o  <tytso@valinux.com>
333
334         * main.c, resize2fs.c, resize2fs.h, extent.c: Add NLS support.
335
336 2000-04-06  Theodore Ts'o  <tytso@valinux.com>
337
338         * Update copyright of files in preparation for release of
339                 resize2fs.  Also removed the (obsolete) beta-test check
340                 that had been in the code, as well as the old spec files
341                 used to package the separate distribution of resize2fs.
342
343         * Makefile.in: No longer build resize2fs.static, since there's no
344                 real point in it any more.
345
346 2000-04-03  Theodore Ts'o  <tytso@valinux.com>
347
348         * main.c: For platforms that don't define optarg.h, manually
349                 define optarg and optind.
350
351 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
352
353         * resize2fs.h: Remove unneeded #include of linux/fs.h
354
355         * main.c: Fix gcc -Wall bug.  main() should return an int.
356
357 1999-11-19    <tytso@valinux.com>
358
359         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
360                 the source directory.
361
362 1999-11-10    <tytso@valinux.com>
363
364         * Release of E2fsprogs 1.18
365
366 1999-10-26    <tytso@valinux.com>
367
368         * Release of E2fsprogs 1.17
369
370 1999-10-22    <tytso@valinux.com>
371
372         * Release of E2fsprogs 1.16
373
374 1999-07-18  Theodore Ts'o  <tytso@rsts-11.mit.edu>
375
376         * Release of E2fsprogs 1.15
377
378 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
379
380         * Release of E2fsprogs 1.14
381
382 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
383
384         * Release of E2fsprogs 1.13
385
386 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
387
388         * Makefile.in: Updated dependencies.
389
390 1998-09-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
391
392         * main.c (main): Print a feedback message stating the new size of
393                 the filesystem when we're through.
394
395 1998-09-02  Theodore Ts'o  <tytso@rsts-11.mit.edu>
396
397         * resize2fs.c: Rename max to max_groups and max_dirs to avoid
398                 possible conflicts with a cpp macro named "max".
399
400 1998-07-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
401
402         * resize2fs.h: Protect include of unistd.h with HAVE_UNISTD_H.
403
404 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
405
406         * Release of E2fsprogs 1.12
407
408 1998-06-10  Theodore Ts'o  <tytso@rsts-11.mit.edu>
409
410         * resize2fs.c (process_block): Change blkcnt_t to be e2_blkcnt_t
411                 to avoid collision with LFS API.
412
413 1998-04-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
414
415         * extent.c (ext2fs_create_extent_table): Use ext2fs_free_mem
416                 instead of free().
417           (extent_cmp): Use EXT2_QSORT_TYPE to define the appropriate
418                 return type for comparison functions for qsort.
419
420 1998-04-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
421
422         * resize2fs.c (adjust_superblock): 
423         * extent.c (ext2fs_add_extent_entry): Update functions to
424                   pass the old size of the memory to be resized to
425                   ext2fs_resize_mem(). 
426
427 1998-03-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
428
429         * Makefile.in: Change to use new installation directory variables
430                 convention.  Fix uninstall rules to take $(DESTDIR) into
431                 account.  Remove cat8dir from the installdirs target,
432                 since modern man package don't necessarily put the cat
433                 directory in /usr/man/cat?.
434
435 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
436
437         * extent.c (extent_cmp): Add const to cast to prevent -Wall warning.
438
439         * main.c (check_mount): Rename function argument to prevent -Wall
440                 warning. 
441
442 1998-03-24  Theodore Ts'o  <tytso@rsts-11.mit.edu>
443
444         * main.c (main): Check to make sure we can really resize this
445                 filesystem.  If there are compatible feature sets that we
446                 don't support, we need to abort.
447
448         * resize2fs.c: Change to use the new prototype required by
449                 block_iterate2 (which uses blkcnt_t for the blockcount).
450
451 1998-03-20  Theodore Ts'o  <tytso@rsts-11.mit.edu>
452
453         * resize2fs.c (inode_scan_and_fix): If we are expanding the
454                 filesystem, temporarily set
455                 rfs->old_fs->super->s_blocks_count to ultimate size of the
456                 filesystem, to avoid catching an error on the block
457                 iterator.
458
459 Mon Mar  9 12:02:47 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
460
461         * main.c: Use a local version.h file.
462
463 Sat Mar  7 18:18:04 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
464
465         * Makefile.in: Change the name of the complete source file that we
466                 built (that includes resize2fs) to be
467                 e2fsprogs-ALL-<version>.tar.gz.  Don't link with libuuid,
468                 since it's not needed.
469
470         * main.c (main): Add copyright notice.
471
472         * resize2fs.c (blocks_to_move): Create the meta_bmap using the old
473                 filesystem, not the new filesystem.  
474                 (get_new_block): Don't try checking the old block bitmap
475                 if the block we're testing is beyond the boundaries of the
476                 old filesystem.
477
478 Fri Feb 27 01:02:50 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
479
480         * Makefile.in: Add rule to build a static version of resize2fs.
481                 Update dependency rules.
482
483         * main.c: #include ../version.h, instead of using a hard-coded
484                 version string.
485
486 Tue Feb 24 15:22:52 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
487
488         * Change the progress function to return an errcode_t; this allows
489                 the progress function to return a error indicating a
490                 user-requested cancel.
491
492 1998-02-20  Theodore Y. Ts'o  <tytso@edt.mit.edu>
493
494         * main.c (check_mount, main): Resize2fs now checks the size of the
495                 partition, and uses this as a default new_size of the
496                 partition if one is not specified.  Resize2fs will not let
497                 you resize a mounted partition.
498
499         * resize2fs.c: Change how the progress function for the INODE_SCAN
500                 pass is performed, so that the maximum size is never zero.
501
502         * resize2fs.8.in: Updated man page.
503         
504 Mon Feb 16 17:13:01 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
505
506         * resize2fs.c, resize2fs.h, main.c, ext2_block_move.c,
507                 ext2_inode_move.c: Major reoganization of how resizing
508                 works.  Functions in ext2_block_move.c, and
509                 ext2_inode_move.c moved into resize2fs.c.  Multiple passes
510                 in those two files also combined into a single inode
511                 scanning pass.  Made the inode table moving function
512                 better handling the case where it needs to abort
513                 mid-operation.  When moving blocks around, made the block
514                 allocation function preferentially avoid the old group
515                 descriptor blocks, to make resize2fs more robust.
516
517 Fri Feb 13 17:15:43 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
518
519         * resize2fs.c, resize2fs.h, ext2_block_move.c, ext2_inode_move.c,
520                 main.c: Reorganize how the progress functions are called.
521
522 Mon Jan 19 09:12:28 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
523
524         * resize2fs.h: If EXT2_FLAT_INCLUDES is defined, then assume all
525                 of the ext2-specific header files are in a flat directory.
526
527         * ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
528                 resize2fs.h: Rename variables named "new" to "new_block",
529                 "new_inode", or "new_loc" to avoid C++ reserved word
530                 clash.
531         
532         * ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
533                 sim_progress.c: Use ext2fs_get_memory(),
534                 ext2fs_free_memory(), et. al., instead of malloc() and
535                 free().
536         
537         * ext2_block_move.c, ext2_inode_move.c, extent.c: Explicitly cast
538                 all assignments from void * to be compatible with C++.
539         
540 Mon Dec 29 19:09:45 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
541
542         * banalysis.c, banalysis.h, ext2_inode_move.c, ext2_block_move.c:
543                 Change private to priv_data to avoid C++ namespace clash.
544
545 Mon Nov  3 14:45:06 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
546
547         * resize2fs.h: Remove STDC magic, since everyone is STDC these days.
548
549         * resize2fs.c, ext2_block_move.c ext2_inode_move.c: Only include
550                 printf statements if RESIZE2FS_DEBUG is defined.
551
552         * main.c: Don't read in the bitmaps since resize2fs.c does that.
553
554 Sun Oct 19 20:40:42 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
555
556         * resize2fs.h: Add #ifdef's for HAVE_SYS_TYPES_H and HAVE_SYS_TIME_H.
557
558 Wed Sep  3 17:31:49 1997  Theodore Y. Ts'o  <tytso@edt.mit.edu>
559
560         * resize2fs.h: Add #include for errno.h
561
562 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
563
564         * Release of E2fsprogs 1.11
565