| 1 |
E2fsprogs 1.47.3 (July 8, 2025) |
| 2 |
=============================== |
| 3 |
|
| 4 |
Updates/Fixes since v1.47.2: |
| 5 |
|
| 6 |
UI and Features |
| 7 |
--------------- |
| 8 |
|
| 9 |
Mke2fs -d can now copy the fs-verity metadata and chattr flags into |
| 10 |
newly created file system. |
| 11 |
|
| 12 |
Add fuse2fs's support for the XATTR_CREATE and XATTR_REPLACE flags in |
| 13 |
setxattr. |
| 14 |
|
| 15 |
Add support for FALLOC_FL_ZERO_RANGE in fuse2fs. |
| 16 |
|
| 17 |
Add support to fuse2fs for the setting file attributes via fsxattr, |
| 18 |
including support for nanosecond timestamps. |
| 19 |
|
| 20 |
Add support to fuse2fs to set newer chattr flags. |
| 21 |
|
| 22 |
Add a lockfile command-line option to fuse2fs which is useful for |
| 23 |
scripts that need to know when fuse2fs is done modifying the file system |
| 24 |
after it is unmounted. |
| 25 |
|
| 26 |
Add mke2fs.conf configuration settings to control whether the RAID |
| 27 |
stripe or stride sizes from the storage device information depending on |
| 28 |
whether the storage device is a rotational or non-rotational device. By |
| 29 |
default, don't set the RAID stripe size for non-rotational devices. |
| 30 |
|
| 31 |
E2scrub no longer runs fstrim by default, since util-linux ships with a |
| 32 |
fstrim.timer systemd file which will run fstrim on all mounted file |
| 33 |
systems. This can be re-enabled in /etc/e2scrub.conf if for some reason |
| 34 |
it is desireable to run the fstrim out of e2scrub. |
| 35 |
|
| 36 |
|
| 37 |
Fixes |
| 38 |
----- |
| 39 |
|
| 40 |
Fix "e2fsck -E unshare_blocks" to clear the shared_blocks flag when |
| 41 |
there are no shared blocks to clear. |
| 42 |
|
| 43 |
Fix "e2fsck -n" to not abort when it trips across an EA inode which |
| 44 |
is not referenced by any inodes in the file system. |
| 45 |
|
| 46 |
Fix debugfs's dump and rdump commands to avoid looping forever when |
| 47 |
it runs across an I/O error or corupt filesystem metadata. |
| 48 |
|
| 49 |
Fix debugfs's dirsearch command on big-endian systems. |
| 50 |
|
| 51 |
Fix many fuse2fs bugs found by running fstests, including fixing |
| 52 |
support for O_APPEND, O_TRUNC, POSIX ACLs, and the immutable flag. Also |
| 53 |
fix fuse2fs to correctly remove ea_inodes if the last reference to an |
| 54 |
ea_inode is removed when an inode is removed, and to update timestamps |
| 55 |
correctly after the mkdir(2) and symlink(2) operations. |
| 56 |
|
| 57 |
Fix fuse2fs's error code handling for fallocate(), truncate() and |
| 58 |
removexattr(). |
| 59 |
|
| 60 |
Fix an integer overflow bug which resulted in fuse2fs failing to delete |
| 61 |
very large files. (Addresses Debian Bug: #1106241) |
| 62 |
|
| 63 |
Fix a (hard to reproduce) extent tree corruption bug which could be |
| 64 |
triggered by resize2fs or fuse2fs if the extent tree was especially |
| 65 |
complex |
| 66 |
|
| 67 |
Improve fuse2fs's handling of corrupted file systems. |
| 68 |
|
| 69 |
Fuse2fs doesn't support renameat2()'s RENAME_EXCHANGE or RENAME_WHITEOUT |
| 70 |
flags, so return ENOSYS instead of incorrectly handling the renameat2() |
| 71 |
request. |
| 72 |
|
| 73 |
Fuse2fs will avoid clearning the setgid bit in op_chmod if the file's |
| 74 |
group ownership is one of the calling process's group list (instead of |
| 75 |
just the primary group id). |
| 76 |
|
| 77 |
Change fuse2fs to align with kernel's behaviors by (a) clearing |
| 78 |
post-EOF on truncation, (b) validating FITRIM's parameters consistently |
| 79 |
with how the kernel does things, (c) how the "ro" mount option will |
| 80 |
replay the journal, (d) only supporting the xattr namespaces supported |
| 81 |
by the kernel, (e) clamping timestamps to the minimum and maximum value |
| 82 |
supported by the on-disk format, and (e) optionally delegating access |
| 83 |
control decisions to the kernel. |
| 84 |
|
| 85 |
Prevent fuse2fs from mounting file systems which have features that |
| 86 |
fuse2fs can't deal with. |
| 87 |
|
| 88 |
Fix error path handling in fuse2fs when servicing an op_create request. |
| 89 |
|
| 90 |
Fix spurious warnings from fuse2fs while servicing an op_fallocate request. |
| 91 |
|
| 92 |
Fix fuse2fs to correctly translate system errors from libext2fs to the |
| 93 |
negative error codes expected by the FUSE kernel driver. There aren't |
| 94 |
many; but in some cases, when the file system is corrupted, libext2fs |
| 95 |
will return EOVERFLOW and we sent a nonsense error to the kernel. |
| 96 |
|
| 97 |
Optimize ext2fs_extent_set_bmap() to avoid fragmenting the extent tree. |
| 98 |
This fixes a problem where resize2fs is trying to relocate all of the |
| 99 |
blocks in a file leading to the extent tree doubling in size, and |
| 100 |
potentially leading to a corrupted extent tree. |
| 101 |
|
| 102 |
Fix a bounding error in ext2fs_fallocate() which could cause it to |
| 103 |
allocate far more blocks than was requested. This caused a failure in |
| 104 |
fuse2fs while formatting a loopback file system stored in a large sparse |
| 105 |
file. |
| 106 |
|
| 107 |
Fix potential livelock bug in the unix_io manager. |
| 108 |
|
| 109 |
Fix invalidation support in the unix_io manager. |
| 110 |
|
| 111 |
Various man page cleanups. |
| 112 |
|
| 113 |
|
| 114 |
Performance, Internal Implementation, Development Support etc. |
| 115 |
-------------------------------------------------------------- |
| 116 |
|
| 117 |
Improve performance in e2fsck when replaying a journal with a large |
| 118 |
number of revoke blocks (which can be the case on Lustre servers). |
| 119 |
|
| 120 |
Improve tune2fs's performance by avoiding scanning the file system to |
| 121 |
update quota inodes in cases when it's not necessary. |
| 122 |
|
| 123 |
Improve fuse2fs's performance by returning inode and type information in |
| 124 |
readdir() and to use the actual inode numbers instead of asking fuse |
| 125 |
to make up inode numbers. |
| 126 |
|
| 127 |
Fix various Coverity and compiler warnings. |
| 128 |
|
| 129 |
Add two new flags for ext2fs_link(). The EXT2FS_LINK_APPEND flag |
| 130 |
causes ext2fs_link() to only search the last block in the directory, |
| 131 |
which imrpoves the scalability of creating a large number of files in a |
| 132 |
directory. The EXT2FS_LINK_EXPAND() causes ext2fs_link() to |
| 133 |
automatically expand the directory if there is no free space found to |
| 134 |
create the requested directory entry. |
| 135 |
|
| 136 |
Add a new function, ext2fs_mkdir2() which allows the flags parameter |
| 137 |
to be passed to ext2fs_link(), allows the chattr flags to be set in the |
| 138 |
newly created directory, and return the inode number for the newly |
| 139 |
created directory. |
| 140 |
|
| 141 |
Add new functions ext2fs_log2_u{32,64}() and ext2fs_log10_u{32,64}() so |
| 142 |
we don't have multiple copies of these functions in various e2fsprogs |
| 143 |
programs. |
| 144 |
|
| 145 |
Improve debugging and logging in fuse2fs. |
| 146 |
|
| 147 |
General code cleanups in fuse2fs. |
| 148 |
|
| 149 |
Improve fuse2fs's performance by allowing a larger cache in unix_io and |
| 150 |
using O_DIRECT to read and write the block device. |
| 151 |
|
| 152 |
Fixed Windows portability problems introduced in 1.47.2. |
| 153 |
|
| 154 |
Fix various FreeBSD compile warnings and test issues. |
| 155 |
|
| 156 |
Fix MacOS build issues when compiling with libarchive and FUSE support. |
| 157 |
|
| 158 |
To avoid warning messages on newer versions of GNU grep, use "grep -E" |
| 159 |
instead of "egrep" when possible. |
| 160 |
|
| 161 |
Fix test failure for m_rootdir_acl when the build tree is hosted on |
| 162 |
btrfs. (This was caused by btrfs returning extended attributes relating |
| 163 |
to Posix ACL's in a different order than ext4 or xfs.) |
| 164 |
|
| 165 |
Fixed potential races in the Makefiles which could show up when using |
| 166 |
"make -j install". |
| 167 |
|
| 168 |
Fixed build failures when libarchive is not available. |
| 169 |
|
| 170 |
Fixed various Debian packaging issues. (Addresses Debian Bugs: |
| 171 |
#1106799, #1107595) |
| 172 |
|
| 173 |
Update Czech, Chinese, Dutch, French, Malay, Portuguese, Polish, |
| 174 |
Romainian, Serbian, Spanish, Swedish, and Ukrainian translations. |