-
Notifications
You must be signed in to change notification settings - Fork 8
/
RELEASE-NOTES
6235 lines (4497 loc) · 247 KB
/
RELEASE-NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
E2fsprogs 1.41.14 (December 22, 2010)
=====================================
Fix spurious complaint in mke2fs where it would complain if the file
system type "default" is not defined in mke2fs.conf.
The resize2fs program will no longer clear the resize_inode feature
when the number reserved group descriptor blocks reaches zero. This
allows for subsequent shrinks of the file system to work cleanly for
flex_bg file systems.
The resize2fs program now handles devices which are exactly 16T;
previously it would give an error saying that the file system was too
big.
E2fsck (and the libext2fs library) will not use the extended rec_len
encoding for file systems whose block size is less than 64k, for
consistency with the kernel.
Programming notes
-----------------
E2fsprogs 1.41.13 would not compile on big-endian systems. This has
been fixed. (Addresses Sourceforge Bug: #3138115)
The ext2fs_block_iterator2() function passed an incorrect ref_offset
to its callback function in the case of sparse files. (Addresses
Sourceforge Bug: #3081087)
Fix some type-punning warnings generated by newer versions of gcc.
E2fsprogs 1.41.13 (December 13, 2010)
=====================================
E2fsck now supports the extended option "-E journal_only", which
causes it to only do a journal replay. This is useful for scripts
that want to first replay the journal and then check to see if it
contains errors.
E2fsck will now support UUID= and LABEL= specifiers for the -j option
(which specifies where to find the external journal). (Addresses
Debian Bug #559315)
E2fsck now has support for the problems/<problem code>/force_no
configuration option in e2fsck.conf, which forces a problem to not be
fixed.
Dumpe2fs will now avoid printing large negative offsets for the bitmap
blocks and instead print a message which is a bit more helpful for
flex_bg file systems.
Mke2fs will now check the file system type (specified with the -t
option) to make sure it is defined in the mke2fs.conf file; if it is
not, it will print an error and abort. If the usage type (specified
with the -T option) is not defined in mke2fs.conf, mke2fs will print a
warning but will continue. (Addresses Debian Bug #594609)
Clarified error message from resize2fs clarifying that on-line
shrinking is not supported at all. (Addresses Debian Bug #599786)
Fix an e2fsck bug that could cause a PROGRAMMING BUG error to be
displayed. (Addresses Debian Bug #555456)
E2fsck will open the external journal in exclusive mode, to prevent
the journal from getting truncated while it is in use due to a user
accidentally trying to run e2fsck on a snapshotted file system volume.
(Addresses Debian Bug #587531)
Fix a bug in e2fsck so it has the correct test for the EOFBLOCKS_FL
flag.
The tune2fs program can now set the uninit_bg feature without
requiring an fsck.
The tune2fs, dumpe2fs, and debugfs programs now support the new ext4
default mount options settings which were added in 2.6.35.
The e2fsck and dumpe2fs programs now support the new ext4 superblock
fields which track where and when the first and most recent file
system errors occurred. These fields are displayed by dumpe2fs and
cleared by e2fsck. These new superblock fields were added in 2.6.36.
Debugfs now uses a more concicse format for listing extents in its
stat command. This format also includes the interior extent tree
blocks, which previously was missing from stat's output for
extent-based files.
Debugfs has a new option, -D, which will request Direct I/O access of
the file system.
Mke2fs will skip initializing the inode table if a device supports
discard and the discard operation will result in zero'ed blocks.
Badblocks will now correctly backspace over UTF-8 characters when
displaying its progress bar. (Addresses Gentoo Bug #309909; Addresses
Debian Bugs #583782 and #587834)
E2freefrag will now display the total number of free extents.
Resize2fs -P no longer requires a freshly checked filesystem before
printing the minimum resize size.
Fixed a floating point precision error in a binary tree search routine
that can lead to seg fault in e2fsck and resize2fs.
Fixed a bug in e2fsck where if both the original and backup superblock
are invalid in some way, e2fsck will fail going back to the original
superblock because it didn't close the backup superblock first, and
the exclusive open prevented the file system from being reopened.
Fixed a big in e2freefrag which caused getopt parsing to fail on
architectures with unsigned chars. (Addresses Gentoo Bug: #299386)
Clarified an mke2fs error message so a missed common in an -E option
(i.e., mke2fs -t ext4 -E stride=128 stripe-width=512 /dev/sda1")
results in a more understandable explanation to the user.
Mke2fs now displays the correct valid inode ratio range when
complaining about an invalid inode ratio specified by the user.
Mke2fs now understands the extended option "discard" and "nodiscard",
and the older option -K is deprecated. The default of whether
discards are enabled by default can be controled by the mke2fs.conf
file.
Mke2fs's handling of logical and physical sector sizes has been
improved to reflect the fact that there will be some SSD's with 8k and
16k physical sectors arriving soon. Mke2fs will no longer force block
size to be the physical sector size, since there will be devices where
the physical sector size is larger than the system's page size, and
hence larger than the maximal supported block size. In addition, if
the minimal and optimal io size are not exported by the device, and
the physical sector size is larger than the block size, the physical
sector size will be used to set the Raid I/O optimization hints in the
superblock.
E2fsck will now display a better, more specific error message when the
user enters a typo'ed device name, instead of blathering on about
alternate superblocks.
Fixed various Debian Packaging Issues
Updated/clarified man pages (Addresses Debian Bugs: #580236, #594004,
#589345, #591083; Addresses Launchpad Bug: #505719)
Update the Chinese, Chzech, Dutch, French, Germany, Indonesian,
Polish, Swedish, and Vietnamese translations.
Programmer's Notes
------------------
Fix a dependency definition for the static and profiled blkid
libraries which could cause compile failures in some configurations.
(Addresses Debian Bug: #604629)
Add support for Direct I/O in the Unix I/O access layer.
Fixed a memory leak in the Unix I/O layer when changing block sizes.
Fixed minor memory leaks in mke2fs.
Added a new function to the ext2fs library, ext2fs_get_memalign().
The tst_super_size test program will check to make sure the superblock
fields are correctly aligned and will print them out so they can be
manually checked for correctness.
Fixed some makefile dependencies for test programs in lib/ext2fs.
Reserved the feature flags and superblock fields needed for the Next3
snapshot feature.
Reserved the feature flags for EXT4_FEATURE_INCOMPAT_DIRDATA and
EXT4_INCOMPAT_EA_INODE.
E2fsprogs 1.41.12 (May 17, 2010)
================================
Mke2fs now gives a correct error message if the external journal
device is not found. (Addresses Red Hat Bug #572935)
Resize2fs -P will now refuse to print a minimum size if the file
system is not clean. Previously it would go ahead and print a minimum
size anyway, which might not be correct, leading to user confusion.
E2fsck now tests for extents that begin at physical block 0 and
rejects them as invalid. (Addresses Google Bug: #2573806)
Fixed a bug in e2fsck which could cause it to crash when trying to
remove an invalid extent and the block bitmaps hadn't yet been loaded.
(Addresses SourceForge Bug: #2971800)
E2fsck now will completely skip time-based checks if the system clock
looks insane or the option broken_system_clock is set in
/etc/e2fsck.conf.
E2fsck would previously report an i_blocks corruption for a 4T file
created using posix_fallocate; this bug has been fixed.
E2fsck will now correctly mark a sparse journal as invalid and will
delete and recreate the journal to address the problem.
E2fsck would previously incorrectly ask the user whether she would
like to abort the file system check after finding a problem --- and
then abort regardless of the user's answer. This is annoying, and
has been fixed.
E2fsck can now continue even if it fails to recreate the resize
inode; previously it would just abort the file system check
altogether.
E2fsck could potentially remove directory entries for inodes found in
the unused region of the inode table; this would generally happen on
ext4 file systems that do not use journaling. This bug has been fixed
by not clearing these directory entries once it has been established
that bg_unused_inodes may not be trustworthy; once pass #2 has been
completed, e2fsck will restart the file system check from the
beginning, and then it will be safe to delete any directory entries
pointing to inodes that appear to be deleted. (Addresses Google Bug:
#2642165)
E2fsck will not try to set the block group checksums if the user
cancels the fsck with a control-C. It's a bad idea to set the
checksums if e2fsck hasn't been completed, and it often results an the
error message, "Inode bitmap not loaded while setting block group
checksum info". (Addresses Launchpad Bug: #582035)
The mke2fs program now queries the kernel for the physical as well as
the logical sector size, and will not allow a blocksize below the
logical, and will strongly encourage a blocksize at least as big as
the physical blocksize. This is needed for 4k sector drives that
emulate 512 byte sector sizes.
Mke2fs will now allow a flex_bg size of 1. This is unusual, and
rarely needed, but it is a legal value.
E2fsck will check for cases where the EOFBLOCKS_FL is set when it is
not needed, and offer to clear it; this is a sign of a kernel bug, but
more importantly, some released kernels may crash when this situation
is encountered on ext4 file systems. (Addresses Google Bug: #2604224)
E2fsck will use the EOFBLOCKS_FL flag exclusively to check whether
i_size is correct. (Kernels starting with 2.6.34 will set
EOFBLOCKS_FL.)
The com_err library will now only output ^M (a CR character) when the
tty is in raw mode.
Update the Czech, Chinese, Dutch, French, Germany, Indonesian, Polish,
and Vietnamese translations.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #571247, #563487)
Programmer's Notes
------------------
The regression test suite now uses its own mke2fs.conf file, so that
downstream distributions want change the mke2fs.conf file which is
distributed in the RPM or dpkg file, without worrying about screwing
up the regression test results.
Always build namei.o so that building with configure --disable-debugfs
works correctly. Long-term, if we care about reduced e2fsprogs
builds, we need a more general solution for deciding what .o files are
needed for a particular build. Given that install floppies are going
(gone?) the way the dodo bird, we probably don't care, though.
(Addresses Sourceforge Bug: #2911433)
Add configure options --enable-symlink-build and
--enable-symlink-install, which allow e2fsprogs be built using
symlinks instad of hard links, and to be installed using symlinks
instead of hard links, respectively. It is useful when the file
system where the build is taking place, or the file system where
e2fsprogs is installed, can't handle hard links for some reason.
(Addresses Sourceforge Bug: #1436294)
Fixed compile warning in mke2fs.c.
E2fsprogs 1.41.11 (March 14, 2010)
==================================
E2fsck will no longer give a fatal error and abort if the physical
device has been resized beyond 2**32 blocks. (Addresses Launchpad
Bug: #521648)
Debugfs has a bug fixed so that "logdump -b <blk>" now properly shows
the allocation status of the block <blk>. (Addresses Debian Bug:
#564084)
E2fsck now prints a much more emphatic and hopefully scary message
when a file system is detected as mounted while doing a read/write
check of the filesystem. Hopefully this will dissuade users from
thinking, "surely that message doesn't apply to *me*" :-(
E2fsck -n will now always open the file system read-only. We now
disallow certain combination of options which previously were manual
exceptions; this is bad because it causes users to think they are
smarter than they really are. So "-n -c", "-n -l", "-n -L", and "-n
-D" are no longer supported. (Addresses Launchpad Bug: #537483)
In e2fsprogs 1.41.10, mke2fs would ask for confirmation to proceed if
it detected a badly aligned partition. Unfortunately, this broke some
distribution installation scripts, so it now just prints the warning
message and proceeds. (Addresses Red Hat Bug: #569021. Addresses
Launchpad Bug: #530071)
Mke2fs would take a long time to create very large journal files for
ext4. This was caused by a bug in ext2fs_block_iterate2(), which is
now fixed.
E2fsck now understands the EOFBLOCKS_FL flag which will be used in
2.6.34 kernels to make e2fsck not complain about blocks deliberately
fallocated() beyond an inode's i_size.
E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
e2fsck -fD can corrupt non-indexed directories when are exists one or
more file names which alphabetically sort before ".". This can happen
with ext2 filesystems or for small directories (take less than a lock)
which contain filenames that begin with a space or some other
punctuation mark. (Addresses Debian Bug: #573923, Addresses Launchpad
Bug: #525114)
Programmer's Notes
------------------
Add new test, f_rehash_dir, which checks to make sure e2fsck -D works
correctly.
The libcom_err function now has support for Heimdal's com_right_r
function(). (Addresses Sourceforge Bug: #2963865, Addresses Debian
Bug: #558910)
E2fsprogs 1.41.10 (February 7, 2010)
====================================
Fix resize2fs bug which causes it to access invalid memory.
Add libss support for libreadline.so.6.
Fix e2fsck's check for extent-mapped directory with an incorrect file
type.
Add new e2fsck.conf configuration option, default/broken_system_clock
to support systems with broken CMOS hardware clocks. Also, since too
many distributions seem to have broken virtualization scripts now,
e2fsck will by default accept dates which are off by up to 24 hours by
default. (Addresses Debian Bugs: #559776, #557636)
Fix a bug where mke2fs may not use the best placement of the inode
table when there is only room for a single block group in the last
flex_bg.
E2fsck is now smarter when it needs to allocate blocks in the course
of fixing file system problems. This reduces the number of spurious
differences found in pass #5.
E2fsck will no longer rehash directories which fit in a single
directory block.
E2fsck now correctly handles holes in extent-mapped directories (i.e.,
sparse directories which use extents).
Fix big-endian problems with ext2fs_bmap() and ext2fs_bmap2().
Fix a bug in filefrag where on platforms which can allow file systems
with 8k blocks, that it doesn't core dump when it sees a file system
with 8k block sizes. (Thanks to Mikulas Patocka for pointing this
out.)
E2fsck will correctly fix directories that are have an inaccurate
i_size as well as other problems in a single pass, instead of
requiring two e2fsck runs before the file system is fully fixed.
Fix e2fsck so it will correctly find and detect duplicate directory
entries for non-indexed directories. ( Addresses Sourceforge Bug:
#2862551)
Mke2fs will use BLKDISCARD to pre-discard all blocks on an SSD or
thinly-provisioned storage device. This can be disabled using the -K
option.
Enhance libext2fs so it works around bug in Linux version 2.6.19
and earlier where the /proc/swaps file was missing the header on
the first line.
Fix bug in Linux version 2.6.19 and earlier where the /proc/swaps file
was missing the header on the first line.
Fix some big-endian bugs in e2fsck and libext2fs.
Fix resize2fs so it works correctly on file systems with external
journals instead of failing early with the error "Illegal inode
number".
Fix libss so that it does not seg fault when using a readline library
which does not supply a readline_shutdown() function.
Updated dumpe2fs's usage message so it correctly gives the right
arguments summary for "-o superblock=<num>" and "-o blocksize=<num>".
(Addresses Launchpad Bug: #448099)
Teach libext2fs to ignore the high 32 bits of the i_blocks field
when huge_file file system feature is set, but the inode does not
have the HUGE_FILE_FL flag set.
Fix e2fsck's handling of 64-bit i_blocks fields.
E2fsck will now print "Illegal indirect block", "Illegal
double-indirect block", etc., instead of "Illegal block #-1" or
"Illegal block #-2", etc. This makes it easier for users to
understand what has gone wrong. (Addresses SourceForge Bug: #2871782)
Mke2fs now will obtain get device topology information from blkid and
use it to populate the superblock stride and stripe sizes. It will
also warn if the block device is misaligned
Fix file descriptor leaks in fsck and debugfs. (Addresses Novell Bug:
##524526)
Fix the libext2fs library code to round up the bitmap size to a 4-byte
boundary, to prevent spurious seg faults caused by the x86
architecture. This doesn't affect Linux systems, but was a major
problem on a number of *BSD systems. (Addresses Sourceforge Bug:
#2328708)
Fix resize2fs's minimum size required for a file system so it doesn't
fail when "resize2fs -M" is run. (Addresses RedHat Bugzilla: #519131)
Dumpe2fs now prints summary information about the contents of the
journal.
Avoid printing scary error messages when e2fsck starts running
problems on low-memory systems, as it tends to panic and mislead the
user. (Addresses Debian Bug: #509529)
Fix blkid's modules.dep parser so it handles compressed (.ko.gz)
modules files. (Address Red Hat Bug: #518572)
Fix tune2fs so it can add a journal when an extent-enabled file system
is mounted. (Addresses Launchpad bug: #416648)
Update Czech, Indonesian, Polish and Vietnamese translations (from the
Translation Project).
Update/clarify man pages. (Addresses Sourceforge Bug: #2822186)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #540111)
Programmer's Notes
------------------
The configure script supports the --with-cc, --with-ccopts, and
--with-ldopts options. Instead, the more standard use of CC=,
CCFLAGS=, and LDFLAGS= in the configure command line is used instead.
Also, --with-ld, which never worked, was also removed.
(Addresses Sourceforge Bug: #2843248)
The in-tree header files are only used if the in-tree uuid or blkid
libraries are used. Otherwise, use the system-provided uuid or blkid
header files if using the system-provided libraries.
Fix some build failures caused by --disable-* configure options.
Work around a bug in autoconf 2.64.
E2fsprogs 1.41.9 (August 22, 2009)
==================================
Fix a bug in e2fsck routines for reallocating an inode table which
could cause it to loop forever on an ext4 filesystem with the FLEX_BG
filesystem feature with a relatively rare (and specific) filesystem
corruption. This fix causes e2fsck to try to find space for a new
portion of the inode table in the containing flex_bg, and if that
fails, the new portion of the inode table will be allocated in any
free space available in the filesystem.
Make e2fsck less annoying by only asking for permission to relocate a
block group's inode table once, instead of for every overlapping
block. Similarly, only ask once to recompute the block group
checksums, instead of once for each corrupted block group's checksum.
Fix filefrag to avoid print the extent header if the FIEMAP ioctl is
not present, and it needs to fall back to using the FIBMAP ioctl.
Fix filefrag to correctly print the number of extents for zero-length
files. (Addresses Debian Bug: #540376)
Filefrag now has a -B option which forces the use of the FIBMAP ioctl
to more easily debug the FIBMAP code.
Fixed filefrag for non-extent based files.
Add a new program, e2freefrag, which displays information about the
free space fragmentation in an ext2/3/4 filesystem.
Fix inode resizing via tune2fs -I so that it works correctly in the
face of non-empty bad blocks inodes, and if the filesystem was
formatted using the "mke2fs -E stride=N" option for RAID arrays.
Fix regression in ext2fs_extent_set_bmap() caused e2fsck -fD to fail
and corrupt large directories if the directory needs to shrink by more
than one block. (Addresses Debian Bug: #537510)
Fix e2fsck's buggy_init_scritps=1 so that the if the last write and/or
last mount times are in the future, they are corrected even if
buggy_init_scripts is set. This is needed because otherwise resize2fs
will refuse to resize the filesystem, even after running "e2fsck -f".
(Addresses Launchpad bug: #373409)
E2fsck will now print much fuller information when the last mount time
or last written time is in the future, since most people can't seem to
believe their distribution has buggy init scripts, or they have a
failed CMOS/RTS clock battery.
Enhance dumpe2fs to dump the extent information via the 'stat'
command, and more detailed extent information via the new command
'dump_extents'.
Update French, Polish, Czech, and Sweedish translation from the
Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
details.
Programmer's Notes
------------------
Fixed miscellaneous gcc -Wall warnings.
Fixed memory leak in error path in ext2fs_block_iterate2()
Fixed non-Linux build of the intl directory by adding support for the
E/Q/V macros.
The bitmap read/write functions now treat uninitialized bitmaps as
unallocated; this fixes a number of problems in all e2fsprogs for ext4
filesystems when there is a need to allocate new blocks or inodes, and
there aren't any free blocks or inodes in the already-used block
groups.
Improve ext2fs_extent_set_bmap() to avoid creating new extents which
get inserted into the extent tree when they are not needed.
E2fsprogs 1.41.8 (July 11, 2009)
================================
Fix resize2fs's online resizing, fixing a regression which in
e2fpsrogs 1.41.7. (Addresses Debian Bug: #535452)
Fix potential filesystem corruptions caused by using resize2fs to
shrinking ext4 filesystems with extents enabled. (Addresses Red Hat
Bug: #510379)
Optimize uuid_generate() to avoid running uuidd if it is not setuid or
setgid and the currently running program doesn't have write access to
the uuidd work directory.
Add safety checks (for non-Linux systems) so that uuidd isn't run with
file descriptors 0, 1, and 2 closed; and if they are closed, uuidd
will be careful not to close the file descriptor for its unix domain
socket when it detaches itself from the controlling tty. Also add
safety checks so that if the unix domain socket between the uuid
library and uuidd program is closed for any reason, both the library
and the uuidd will return an appropriate error code instead of looping
in an infinite loop.
The e2croncheck script, which creates an LVM snapshot and then checks
the ext3/4 filesystem via the LVM snapshot, has been added to the
contrib directory.
Fix filefrag program for files that have more than 144 extents.
Update French, Polish, Czech, Indonsian, and Sweedish translation from
the Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug #535530)
Update/clarify man pages.
Programmer's Notes
------------------
Fix compilation problem when configured with --disable-uuid.
Don't build uuidgen if configured with --disable-uuid.
Add the new library function ext2fs_test_inode_bitmap_range(), and
optimized ext2fs_test_block_bitmap_range(), which will be needed for
future optimizations for e2fsck.
Fix makefile dependencies for libcom_err so that the Makefiles work
well on non-GNU make program. (Addresses Sourceforge Patches: #2813809)
Enhance the build system so that the full set of commands executed by
the Makefiles are displayed, instead of the Linux kernel summary
output, if the build was configured with --enable-verbose-makecmds, or
if GNU make is in use and the V variable is non-null, i.e., via "make
V=1".
E2fsprogs 1.41.7 (June 29, 2009)
================================
Fix a bug in libext2fs which can cause e2fsck and resize2fs to write
uninitalized data into the portion of the inode beyond the first 128
bytes when operating on inodes mapped via extents; potentially
corrupting filesystems.
Fix memory leaks in e2fsprogs, including a very large memory leak
which can cause e2fsck to run out of memory when checking very large
filesystems using extents.
The logsave program will now filter out the ^A and ^B characters when
writing to the console.
Harden ext2fs_validate_entry() so that lsdel will not read beyond the
end of the block even if the directory block is corrupted.
Fix debugfs from core dumping if the logdump command fails to open the
output file.
Enhance badblocks to print the currently tested block number when
interrupted with ^C.
Fix lsattr to exit with a non-zero status when it encounters errors.
(Addresses RedHat Bugzilla #489841)
Fix e2fsprogs to use the same encoding for rec_len in 64k (and larger)
filesystems as the kernel when encoding rec_len >= 64k. For 64k
filesystems (currently all that is supported by e2fsprogs, this is
only a minor corner case).
Resize2fs will now update the journal backup fileds in the sup0erblock
if the journal is moved; this avoids an unnecessary full fsck after
resizing the filesystem. (Addresses RedHat Bugzilla: #505339)
Fix libext2fs to properly initialize i_extra_size when creating the
journal and resize inodes.
Change badblocks to allow block sizes larger than 4k.
Fix filefrag progam so it correctly checks for errors from the fiemap ioctl.
Update Chinese and Czech translation from the Translation Project.
Clean up various man pages. (Addresses Debian Bug #531385 and #523063)
Programmer's Notes
------------------
Add --disable-libuuid option to configure which uses an in-system
installed version of libuuid; the private version is enabled by
default.
Add --valgrind-leakcheck option to the test_script program which runs
valgrind with the appropriate options to find memory leaks.
E2fsprogs 1.41.6 (May 30, 2009)
===============================
Fix a critical regression in e2fsck introduced version 1.41.5 which
can undo updates to the block group descriptors after a journal replay.
If e2fsck receives an I/O error while replaying the journal, prompt
the user whether they want to ignore the error or not; if e2fsck is
run in preen mode, force fsck to abort the preen pass.
Fix a bug which would cause e2fsck to core dump if the filesystem
contains a corrupt extent header, and the user declines to clear the
inode. (Addresses Sourceforge Bug: #2791794)
Fix e2fsck to restart only once in the case of multiple block groups
which inodes in use that are in the uninitialized part of the block
group's inode table.
To reduce user confusion, if the /etc/mtab file is missing
ext2fs_check_mount_point and ext2fs_check_if_mounted will return a
new, explicit error code to indicate this case. This will cause
e2fsck to give a clearer error message when the user is using buggy
rescue CD's that don't properly set up /etc/mtab. (Addresses Debian
Bug: #527859)
Fix e2fsck so that if the primary group descriptors are corrupted, but
the backup superblock is entirely invalid, to go back to using (and
fixing) the priary group descriptors instead of completely giving up
on the filesystem. (Addresses Debian Bug: #516820)
Change e2fsck to not abort a preen pass if an inode is found to have
i_file_acl_hi non-zero. Ext3 filesystems don't care, and newer
kernels (post 2.6.29) will ignore this field. So let's fix it
automatically during the preen pass instead of forcing the user to fix
this up manually. (Addresses Debian Bug: #526524)
Add resource tracking for e2fsck passes 1b through 1d.
Speed up e2fsck by eliminating unnecessary journal checks if the
filesystem is already mounted and doesn't need recovery (since the
kernel would have run the journal when the filesystem was mounted.)
Also speed up e2fsck by avoiding unnecessary block group descriptor
updates in ext2fs_close().
Add support to chattr to migrate inodes from using direct/indirect
blocks to extents.
Avoid corrupting the filesystem if there is an attempt to shrink a
filesystem using resize2fs smaller than posible by making
ext2fs_set_bmap() more careful not to delete the old block until the
new block can be inserted. In addition, fix a bug in how the minimum
size of the filesystem (plus a safety margin) is calculated, and
modify resize2fs to refuse to shrink the filesystem below that minimum
size without the force flag.
Teach blkid to try to figure out DM device names using take advantage
of information in sysfs when running on kernels (2.6.29 and later)
which provide this information in /sys/block/dm-<N>/dm/name; this is
much faster than scanning for the devncie number in /dev/mapper.
Fix blkid to prefer /dev/mapper/<name> device names instad of the
private /dev/dm-X names.
Add an -a option to debugfs's close_filesys command which writes any
changes to the superblock or block group descriptors to all of the
backup superblock locations.
Add support to the filefrag program to use the FIEMAP ioctl.
Update Chinese translation from the Translation Project.
Clean up various man pages. (Addresses Red Hat Bugzilla: #502971 and
Launchpad Bug: #381854)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug #506064)
Programmer's Notes
------------------
Add test code to make sure e2fsck's problem.c doesn't have two problem
codes assigned to duplicate values.
Avoid using a hard-coded path for /bin/rm in block's test_probe.in.
(Addresses Sourceforge Bug: #2780205)
Clean up e2fsck by removing #ifdef RESOURCE_TRACK by adding an empty
function declaration for init_resource_track() and
print_resource_track() when RESOURCE_TRACK is not defined.
The test code which is used to build the tst_csum progam has been
moved from from tst_csum.c into csum.c under an #ifdef DEBUG to to
avoid compile problems caused by not having a prototype for
ext2fs_group_desc_csum(). (Addresses Sourceforge Bug #2484331)
Update the config.guess and config.sub file to the latest from the
FSF, to allow e2fsprogs to build on the avr32 platform. (Addresses
Debian Bug: #528330)
Add a new function, ext2fs_extent_open2(), which behaves like
pext2fs_extent_open(), but uses the user-supplied inode structure
when opening an extent instead of reading the inode from disk.
E2fsprogs 1.41.5 (April 23, 2009)
=================================
Fix a number of filesystem corruption bugs in resize2fs when growing
or shrinking ext4 filesystems off-line (i.e., when the ext4 filesystem
is not mounted).
Debugfs can now set i_file_acl_high via the set_inodes_field command,
and print a 64-bit file acl. This is useful for debugging filesystem
corruptions where the high bits of i_file_acl_high are set. E2fsck
will detect and fix non-zero i_file_acl_high on 32-bit filesystems
since some Linux kernel versions pay attention to this field even when
they shouldn't.
Speed up e2fsck when checking clean filesystems by avoiding
unnecessary block reads, and coalescing the block group descriptor
blocks so they are read using a single read operation.
The libuuid library will now close all file descriptors before running
uuidd. This avoids problems when the calling program has open sockets
which then never get closed because uuidd is a long-running helper
daeomn. (Addresses Launchpad bug: #305057)
In order to avoid unnecessary full filesystem checks by e2fsck after
an on-line resize, e2fsck will ignore the NEEDS_RECOVERY flag set on
the backup superblocks. (Addresses Red Hat Bugzilla: #471925)
Mke2fs will avoid trying to create the journal when run in
superblock-only mode (mke2fs -S), since the left-over journal in the
inode table will cause mke2fs to fail.
Fix a bug in libext2fs functions that check to see if a particular
device or filesystem image is mounted, which would cause these
functions to report that a file identical to the (relative) pathname
used by a pseudo-filesystem was mounted when in fact it was not.
Update Czech translation from the Translation Project.
Add Chinese (simplified) translation from the Translation Project.
Fix support for external journals (which was broken in e2fsprogs
1.41.4).
Fix a regression in debugfs where the "stat" command when no
filesystem was open would cause debugfs to crash with a segmentation
violation.
Starting in the 2.6.29 linux kernel, the ext4 filesystem driver can be
used to support filesystems without a journal. Update the blkid
library so it understands this.
The blkid library will remove an entry from the blkid cache
representing the entire disk if partitions are found, since presuambly
the device previously had no partition table, but has now transitioned
to using a partition table.
Add a check to mke2fs and tune2fs that the argument to the -m option
(which specifies the reserved ratio) must be greater than zero.
(Addresses Debian Bug: #517015)
Add support for tracking the number kilobytes written to the
filesystem via the superblock field s_kbytes_written. It will be
updated by the kernel as well as by e2fsprogs programs which write to
the filesystem. This is useful for tracking the wear to filesystems
on Solid Sstate Drives.
Fix compatibility issue in the libext2fs info file and makeinfo
version 4.12. (Addresses Red Hat Bugzilla: #481620)
Update/clarify man pages. (Addresses Debian Bug: #515693, #365619)
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bug: #506279)
Programmer's Notes
------------------
Fix Hurd compilation problem in e2fsck and tune2fs (Addresses Debian
Bug: #521602)
Fix various gcc compilation warnings and other programming cleanups.
(Addresses Red Hat Bugzilla: #486997)
Add support for building the blkid command statically.
Add support for disabling the built-in blkid library in favor of a
system-installed blkid implementation via the configure option
--disable-libblkid.
E2fsprogs 1.41.4 (January 27, 2009)
===================================
Fixed a bug which could sometimes cause blkid to return an exit value
of zero for a non-existent device (Addresses Debian Bug: #502541)
Blkid will now recognize ext3 filesystems that have the test_fs flag
set as ext3 filesystems.
The blkid library will now recognize btrfs filesystems and swap
devices currently used by user-level software suspend.
Tune2fs now updates the block group checksums when changing the UUID
to avoid causing e2fsck to complain vociferously at the next reboot.
Tune2fs's inode size resizing algorithms have been fixed so it is not
vastly inefficient for moderate-to-large filesystems, due to some
O(n**2) and O(n*m) algorithms that didn't scale well at all.
Fix tune2fs's inode resizing algorithm so it will not corrupt
filesystems laid out for RAID filesystems; in addition, tune2fs will
refuse to change the inode size for filesystems that have the flex_bg
feature enabled. (This is a limitation in the current implementation
of tune2fs -I.)
E2fsprogs 1.41 broke debugfs's logdump command for normal ext3/4
filesystems with 32-bit block numbers, when the headers for 64-bit
block numbers was added. This regression has been fixed.
Debugfs's ncheck command has been fixed to avoid printing garbage
characters at the end of file names.
Fix resize2fs for ext4 filesystems. Some blocks that that need moving
when shrinking filesystems with uninit_bg feature would not be moved.
In addition, blocks and inode table blocks were not being correctly
freed when shrinking filesystems with the flex_bg feable, which caused
resize2fs -M to fail. Finally, when blocks are moved, make sure the
uninitialized flag in extents is preserved.
Fix bug which caused dumpe2fs to abort with an error if run on a
filesystem that contained an external journal.
Some distributions used "mke3fs" as an alias for "mkfs.ext3"; check
for this in argv[0] to provide better legacy support for these
distributions. This is a practice that should NOT be continued,
however.
Mke2fs now has a new option -U, which allows the user to specify the
UUID that should be used for the new filesystem.
Mke2fs will treat devices that are exactly 16TB as if they were 16TB
minus one block. This allows users who have read that ext3 supports
up to 16TB filesystems and who create a 16TB LVM to not get confused,
since the true limit is really 16TB minus one block.
E2fsck will no longer abort an fsck run if block group has an errant
INODE_UNINIT flag.
E2fsck now distinguishes between fragmented directories and fragmented
files in verbose mode statistics and in the fragcheck report.
Fix a bug in e2fsck which casued it double count non-contiguous
extent-based inodes.
E2fsck will leave some slack space when repacking directories to allow
room for a few directory entries to be added without causing leaf
nodes to be split right away.
Fix a bug which caused e2fsck to crash when it comes across a
corrupted interior node in an extent tree with the error message:
"Error1: Corrupt extent header on inode XXXXXX"
E2fsck problem descriptions involving the journal are no longer
referred to as "ext3" problems, since ext4 filesystems also have
journals.
Fix a long-standing bug in e2fsck which would cause it to crash when
replying journals for filesystems with block sizes greater than 8k.
Update Catalan translation from the Translation Project.
Fixed various Debian packaging issues --- see debian/changelog for
details. (Addresses Debian Bugs: #503057, #502323, #511207)
Programmer's Notes
------------------
Fix build of e2fsck.profiled, and add support for building profiled
binaries in the misc directory if configured with --enable-profile.
The ext2fs_open() function now performs more sanity checks on the
superblock to avoid potential divide by zero errors by other parts of
library.
The ext2fs_read_inode_full() function now has a safety check to avoid
a segmentation fault on corrupted filesystems.
The ext2fs_new_inode() function now has a sanity check so that if the
s_first_inode field in the superblock is insane, it will return
EXT2_ET_INODE_ALLOC_FAIL instead of returning an invalid inode number.
To avoid segmentation faults, ext2fs_block_alloc_stats() and
ext2fs_inode_alloc_stats() now validates the passed inode or block
number to avoid overrunning an array boundary.
Various signed/unsigned errors for variables containing block numbers
have been fixed.
Accomodations for gcc's stupidity in not realizing that constant
strings that do not contain a '%' character are safe to use in format
strings have been made so that distributions that want to compile
e2fsprogs with -Werror=format-security have an easier time doing so.
Added a new 64-bit getsize interface, ext2fs_get_device_size2().
Added the utility make-sparse.c to the contrib directory.
The ext2fs_block_iterate2() function now reflects errors from
ext2fs_extent_set_bmap() to the caller, if the callback tries to
change a block on an extent-based file, and ext2fs_extent_set_bmap()
fails for some reason (for example, there isn't enough disk space to
split a node and expand the extent tree.
The ext2fs_block_iterate2() function will preserve the uninit flag in
extents when the callback function modifies a block in an extent-based
file.
E2fsck will now flag filesystems that have an insane s_first_ino field
in their superblock, and attempt to use a backup superblock to repair
the filesystem.
E2fsprogs 1.41.3 (October 12, 2008)
===================================