]> git.ipfire.org Git - thirdparty/e2fsprogs.git/log
thirdparty/e2fsprogs.git
7 weeks agodebian: update changelog for 1.47.2-3 debian/master archive/debian/1.47.2-3 debian/1.47.2-3
Theodore Ts'o [Thu, 12 Jun 2025 00:02:02 +0000 (20:02 -0400)] 
debian: update changelog for 1.47.2-3

Also update debian patches to indicate they are all upstream patches.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 weeks agodebian: fix typo in fuse2fs.postrm which breaks a /usr-move mitigation
Theodore Ts'o [Tue, 10 Jun 2025 17:04:08 +0000 (13:04 -0400)] 
debian: fix typo in fuse2fs.postrm which breaks a /usr-move mitigation

A space was accidenally introduced into the fuse2fs.postrm which
breaks the /usr-move replacement of fusext2 from an older legacy
package that had been abandoned upstream.  Specifically, what was
broken was the cleanup of the protective diversions:

Unpacking fuse2fs (1.47.2-2) over (1.47.2-1+b1) ...
/var/lib/dpkg/info/fuse2fs.postrm: 6: test: failed-upgrade: unexpected operator

Addresses-Debian-Bug: #1107595
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit b539a0370777feaa5652fd42d32fc66b2cea8788)

7 weeks agoCommit Debian 3.0 (quilt) metadata archive/debian/1.47.2-2 debian/1.47.2-2
Theodore Ts'o [Tue, 10 Jun 2025 01:30:38 +0000 (21:30 -0400)] 
Commit Debian 3.0 (quilt) metadata

[dgit (12.11) quilt-fixup]

7 weeks agoUpdate debian changelog for 1.47.2-2
Theodore Ts'o [Tue, 10 Jun 2025 00:49:53 +0000 (20:49 -0400)] 
Update debian changelog for 1.47.2-2

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 weeks agodebian: update debian/patches with for bugfix e2fsprogs release
Theodore Ts'o [Mon, 9 Jun 2025 22:22:39 +0000 (18:22 -0400)] 
debian: update debian/patches with for bugfix e2fsprogs release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 weeks agolibext2fs: fix integer overflow in ext2fs_punch() when releasing more than 2**31...
Theodore Ts'o [Mon, 9 Jun 2025 15:30:48 +0000 (11:30 -0400)] 
libext2fs: fix integer overflow in ext2fs_punch() when releasing more than 2**31 blocks

Addresses-Debian-Bug: #1106241
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 34b2a4a1f9794498ca403393003cc5840c240d42)

7 weeks agolibext2fs: fix a extent tree corruption bug in ext2fs_extent_set_bmap()
Theodore Ts'o [Fri, 6 Jun 2025 13:07:11 +0000 (09:07 -0400)] 
libext2fs: fix a extent tree corruption bug in ext2fs_extent_set_bmap()

In the case where we are moving a particular logical block mapping
from a particular extent tree entry, to the immediately precending
entry (when the physical block or uninitialized flag is changing so it
can be coalesced with the precending entry) and the precending entry
is in a different extent tree block, the resulting extent tree can get
corrupted.

Fix this by removing the original logical block mapping before adding
the new logical block mapping.  Per the warning in the comments before
ext2fs_extents_fix_parents():

  Note a subtlety of this function -- if there happen to be two extents
  mapping the same lblk and someone calls fix_parents on the second of
  the two extents, the position of the extent handle after the call will
  be the second extent if nothing happened, or the first extent if
  something did.  A caller in this situation must use
  ext2fs_extent_goto() after calling this function.  Or simply don't map
  the same lblk with two extents, ever.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit b914701223255c116745a11f30563652c9fdbb4b)

7 weeks agomke2fs: fix a misindentation in the man page
Benno Schulenberg [Sun, 1 Jun 2025 12:36:23 +0000 (14:36 +0200)] 
mke2fs: fix a misindentation in the man page

Problem existed since commit 3c22bf7e70 from twelve years ago.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 4d6cfa2557de7d0878fed3203ac36d3e91df183f)

7 weeks agodebian: add a Built-Using field to the e2fsck-static package
Theodore Ts'o [Tue, 3 Jun 2025 23:06:37 +0000 (23:06 +0000)] 
debian: add a Built-Using field to the e2fsck-static package

We will probably want to eventually revert this commit and replace it
with a change using dh-builtusing, such as can be found in [1], but
dh-builtusing is only available in Debian 13 (trixie) and we don't
want to make life difficult for people who need to backport to Debian
Stable or Ubuntu LTS.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106799#32

Addresses-Debian-Bug: #1106799
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 41b400841b85dd7fb72fb0e605e33d7d7b146f71)

7 weeks agodebian: remove physical address of the FSF from the copyright file
Theodore Ts'o [Tue, 3 Jun 2025 17:31:40 +0000 (17:31 +0000)] 
debian: remove physical address of the FSF from the copyright file

Use https://www.gnu.org/licenses instead of telling users to request a
copy of the license text via snail (postal) mail.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 1036f723a4f8be383e92809c44998402ff33559f)

7 weeks agodebugfs: return after printing the usage message in the e2freefrag command
Theodore Ts'o [Mon, 26 May 2025 20:25:15 +0000 (16:25 -0400)] 
debugfs: return after printing the usage message in the e2freefrag command

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 0c675a67c5684252e3a228c824b0accb9f3ab5d7)

7 weeks agomke2fs: add range checks for -E desc_size
Theodore Ts'o [Mon, 26 May 2025 16:51:49 +0000 (12:51 -0400)] 
mke2fs: add range checks for -E desc_size

Prevent the user from specifying group descriptor that result in
invalid/corrupted file systems.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 326e8ab43503dd9f44338754c84cb03a725ecc49)

7 weeks agoe2freefrag: require that the chunksize must be greater than 0
Theodore Ts'o [Mon, 26 May 2025 16:36:07 +0000 (12:36 -0400)] 
e2freefrag: require that the chunksize must be greater than 0

"e2freefrag -c 0" doesn't make much sense, so abort with an error
message if the user specifies a zero chunksize.

Addresses-Coverity-Bug: 1633767
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 3e059df08de94abde1ddd82008d0658584a35e5e)

7 weeks agoe2fsck: fix e2fsck -E unshare_blocks when there are no shared blocks
Theodore Ts'o [Mon, 26 May 2025 02:20:36 +0000 (22:20 -0400)] 
e2fsck: fix e2fsck -E unshare_blocks when there are no shared blocks

If there are no shared blocks in a ext4 file system, e2fsck -E
unshare_blocks will not actually clear the shared_blocks feature flag
since e2fsck_pass1_dupblocks() is never called.  Fix this by adding a
check in e2fsck_pass1() to clear the shared blocks flag.

https://github.com/tytso/e2fsprogs/issues/218

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 707af4359e132bc415c3f6339f4ced9f23b28c0b)

7 weeks agomke2fs: disallow -O verity without extents
Allison Karlitskaya [Thu, 13 Mar 2025 16:18:17 +0000 (17:18 +0100)] 
mke2fs: disallow -O verity without extents

Similar to 64-bit support, fs-verity support requires extents, so don't
allow to create a filesystem that has -O verity unless it also supports
extents.

(cherry picked from commit 03fa1a5ee55d0653f5931cea3cab760599bab216)

7 weeks agodebugfs: abort reading a file on failure when dumping out a file
Theodore Ts'o [Fri, 23 May 2025 17:22:00 +0000 (13:22 -0400)] 
debugfs: abort reading a file on failure when dumping out a file

If ext2fs_file_read() fails --- perhaps due to a corrupted file
system, or an I/O error --- avoid looping forever in dump_file().

This issue was pointed out in [1] by Quentin Kaiser but the commit
description was too confusing and specific to the user's particular
situation.

[1] https://github.com/tytso/e2fsprogs/pull/149

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 51d68472456d22b6e64159244be63bce51473691)

7 weeks agofuse2fs: disable renameat2
Darrick J. Wong [Thu, 24 Apr 2025 21:44:25 +0000 (14:44 -0700)] 
fuse2fs: disable renameat2

Apparently fuse munged rename and renameat2 together into the same
upcall, so we actually have to filter out nonzero flags because
otherwise we do a regular rename for a RENAME_EXCHANGE/WHITEOUT, which
is not what the user asked for.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065177.1160461.684615549721279410.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit b431abbc8fe0fd1de4e414aae3520c4c19411048)

7 weeks agofuse2fs: update new child timestamps during mkdir/symlink
Darrick J. Wong [Thu, 24 Apr 2025 21:43:54 +0000 (14:43 -0700)] 
fuse2fs: update new child timestamps during mkdir/symlink

These two file creation functions fail to update the timestamps of the
new child file, unlike the others (mknod/creat).  Fix that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065141.1160461.7342685341356901806.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit f73fbf8e2cee1f2d49f4e7573eadb9f1cf141879)

7 weeks agofuse2fs: clamp timestamps that are being written to disk
Darrick J. Wong [Thu, 24 Apr 2025 21:42:52 +0000 (14:42 -0700)] 
fuse2fs: clamp timestamps that are being written to disk

Clamp the timestamps that we write to disk to the minimum and maximum
values permitted given the ondisk format.  This fixes y2038 support, as
tested by generic/402.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065069.1160461.14751120886781323020.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit e13395876d63cebf008101b934ee9e5cdaae0150)

7 weeks agofuse2fs: remove posix acl translation
Darrick J. Wong [Thu, 24 Apr 2025 21:41:49 +0000 (14:41 -0700)] 
fuse2fs: remove posix acl translation

Remove the POSIX ACL format translation since libext2fs takes care of
that now.

Fixes: 0ee1eaf70c257e ("libext2fs: translate internal ext4 acl to Posix ACL in ext2fs_xattr_[sg]et()")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064997.1160461.14235157932332388225.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 0111bdb70a9c460052387111414a2e2dc8c06822)

7 weeks agofuse2fs: return -EOPNOTSUPP when we don't recognize a fallocate mode
Darrick J. Wong [Thu, 24 Apr 2025 21:41:18 +0000 (14:41 -0700)] 
fuse2fs: return -EOPNOTSUPP when we don't recognize a fallocate mode

If we don't recognize a set bit in the mode parameter to fallocate,
return EOPNOTSUPP to communicate that we don't support that mode instead
of EINVAL.  This avoids unnecessary failures in generic/521 such as:

generic/521       - output mismatch (see /var/tmp/fstests/generic/521.out.bad)
    --- tests/generic/521.out   2025-01-30 10:00:16.898276477 -0800
    +++ /var/tmp/fstests/generic/521.out.bad    2025-04-03 14:46:20.019822396 -0700
    @@ -1,2 +1,9 @@
     QA output created by 521
    +zero range: 0x407ca to 0x52885
    +do_zero_range: fallocate: Invalid argument

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064961.1160461.9412670014664878384.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 7775293c08d2255e90b1e003ee532d826af52d95)

7 weeks agofuse2fs: refuse unsupported features
Darrick J. Wong [Thu, 24 Apr 2025 21:41:02 +0000 (14:41 -0700)] 
fuse2fs: refuse unsupported features

Don't mount a filesystem with superblock features that we don't actually
know how to support.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064943.1160461.14810321477577468832.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit ccbc6f24fed095b28f9faa7b575159e49787fae0)

7 weeks agodebugfs: byteswap dirsearch dirent buf on big endian systems
Brian Foster [Thu, 23 Jan 2025 13:52:11 +0000 (08:52 -0500)] 
debugfs: byteswap dirsearch dirent buf on big endian systems

fstests test ext4/048 fails on big endian systems due to broken
debugfs dirsearch functionality. On an s390x system and 4k block
size, the dirsearch command seems to hang indefinitely. On the same
system with a 1k block size, the command fails to locate an existing
entry and causes the test to fail due to unexpected results.

The cause of the dirsearch failure is lack of byte swapping of the
on-disk (little endian) dirent buffer before attempting to iterate
entries in the given block. This leads to garbage record and name
length values, for example. To resolve this problem, byte swap the
directory buffer on big endian systems.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250123135211.575895-1-bfoster@redhat.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 4be42019388d76c933e3b2ea80284aaf5b8eaecb)

7 weeks agoe2image.8: add missing comma
Jakub Wilk [Tue, 7 Jan 2025 07:07:24 +0000 (08:07 +0100)] 
e2image.8: add missing comma

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250107070724.6375-1-jwilk@jwilk.net
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 5a6ec683252be78ccda7dec7dac530f2ebc46ce6)

7 weeks agolibext2fs: teach ext2fs_extent_set_bmap() to update extents more optimally
Theodore Ts'o [Wed, 21 May 2025 02:53:41 +0000 (22:53 -0400)] 
libext2fs: teach ext2fs_extent_set_bmap() to update extents more optimally

When programs like resize2fs or e2fsck relocates all of the blocks in
an extent one at a time, the ext2fs_extent_set_bmap() works by
initially adding a new extent and then moving mapping from the old
extent to the new extent.  For example:

t=1   EXTENTS: (0-2) 1152-1154

t=2   EXTENTS: (0) 1136, (1-2) 1153-1154

t=3   EXTENTS: (0-1) 1136-1137, (2) 1154

Unfortunately, previously, when the last block is updated, the
resulting extent tree will have two extents instead of one, like this:

t=4   EXTENTS: (0-1) 1136-1137, (2) 1138

With this commit, the resulting extent tree will be more optimally
represented with a single extent:

t=4   EXTENTS: (0-2) 1136-1138

The optimization in this commit solves the prolem reproted at:
https://github.com/tytso/e2fsprogs/issues/146

In that case, the file had a very large, complex (fragmented) extent
tree, and resize2fs needed to relcate all of its blocks as part of a
off-line shrink, the lack of the optimization led to an extent block
overflowing, resulting in the old extent (the one which originally
mapped logical block 2507128 to physical block 389065080) and the new
extent landing in two different leaf blocks:

 2/ 2   1/  1  2507128 -  2507128    640097 -    640097      1
 2/ 2   1/135  2507128 -  2507128 389065080 - 389065080      1

This resulted a corrupted extent tree block and data loss.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit ea825a53bcb214de7356c2ebd8a10d005613bec3)

7 weeks agotest: fix expect files which changed after EA bugfix
Theodore Ts'o [Sat, 22 Mar 2025 20:18:26 +0000 (16:18 -0400)] 
test: fix expect files which changed after EA bugfix

The logic bug which was fixed in commit 92b6e93936d7 ("e2fsck: fix
logic bug when there are no references...") resulted in some silent
fixes that were never logged, and in some cases, corruption that was
not cleaned up.   Fix the tests so that they pass as expected.

Fixes: 92b6e93936d7 ("e2fsck: fix logic bug when there are no references..."
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit ddd4f796d9dfdb80e5639ca8411e8e4891d3c7f1)

7 weeks agoe2fsck: fix logic bug when there are no references to an EA inode
Theodore Ts'o [Mon, 17 Mar 2025 14:38:44 +0000 (10:38 -0400)] 
e2fsck: fix logic bug when there are no references to an EA inode

There was a boolean logic error which, among other things, could cause
an attempt to modify an inode in e2fsck -n mode:

e2fsck 1.47.2 (1-Jan-2025)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
ext2fs_write_inode: Attempt to write to filesystem opened read-only while writing inode 14 in pass4
e2fsck: aborted

Fixes: 849a9e6e133a ("e2fsck: add more checks for ea inode consistency")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 92b6e93936d7a0f6d7ce7a9f142e2c0ee9afbeaf)

7 months agoMerge branch 'master' into debian/master archive/debian/1.47.2-1 debian/1.47.2-1
Theodore Ts'o [Wed, 1 Jan 2025 06:51:25 +0000 (01:51 -0500)] 
Merge branch 'master' into debian/master

7 months agodebian: remove debian/patches from 1.47.2-rc1
Theodore Ts'o [Wed, 1 Jan 2025 06:49:53 +0000 (01:49 -0500)] 
debian: remove debian/patches from 1.47.2-rc1

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agoUpdate release notes, etc., for the 1.47.2 release v1.47.2
Theodore Ts'o [Wed, 1 Jan 2025 06:24:42 +0000 (01:24 -0500)] 
Update release notes, etc., for the 1.47.2 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agoconfig: update config.{guess,sub}
Theodore Ts'o [Wed, 1 Jan 2025 06:21:15 +0000 (01:21 -0500)] 
config: update config.{guess,sub}

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update the binary gmo files
Theodore Ts'o [Wed, 1 Jan 2025 06:09:43 +0000 (01:09 -0500)] 
po: update the binary gmo files

Also relax the msgfmt checking to avoid using --check-format, since
e2fsck's problem string's %-interpolation allows the ordering of
block, inode, etc. numbers to be moved around in translations.  (And
the recent update to the Spanish po file takes advantage of this
feature.)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodebian: decrease priority of e2fsprogs from required to important
Theodore Ts'o [Wed, 1 Jan 2025 04:45:52 +0000 (23:45 -0500)] 
debian: decrease priority of e2fsprogs from required to important

Addresses-Debian-Bug: #897277
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update zh_CN.po (from translationproject.org)
Wenbin Lv [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update zh_CN.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update uk.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update sv.po (from translationproject.org)
Göran Uddeborg [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update sv.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update ro.po (from translationproject.org)
Remus-Gabriel Chelu [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update ro.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update pl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update ms.po (from translationproject.org)
Sharuzzaman Ahmat Raslan [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update ms.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update fr.po (from translationproject.org)
Samuel Thibault [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update fr.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update es.po (from translationproject.org)
Antonio Ceballos [Tue, 31 Dec 2024 23:41:35 +0000 (18:41 -0500)] 
po: update es.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agopo: update cs.po (from translationproject.org)
Petr Pisar [Tue, 31 Dec 2024 23:41:34 +0000 (18:41 -0500)] 
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodebian: sort the symbol list for libext2fs2t64
Theodore Ts'o [Mon, 16 Dec 2024 05:00:21 +0000 (00:00 -0500)] 
debian: sort the symbol list for libext2fs2t64

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodebian: disable salsa CI on non-debian branches
Theodore Ts'o [Mon, 16 Dec 2024 04:16:05 +0000 (23:16 -0500)] 
debian: disable salsa CI on non-debian branches

The Salsa CI attempts to do a package build, and the debian/patches
directory is generally not set up correctly for a successful source
build on non-debian branches.  So skip them to avoid failed builds and
to avoid wasting CI bandwidth.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agorezize2fs: fix memory leak when fixing up the orphan file inode
Theodore Ts'o [Wed, 11 Dec 2024 04:59:59 +0000 (23:59 -0500)] 
rezize2fs: fix memory leak when fixing up the orphan file inode

Fixes: ff4f46b4fdb2 ("resize2fs: rewrite the checksums in the orphan...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agolibext2fs: fix compiler warning in ext2fs_orphan_file_block_csum_set()
Theodore Ts'o [Tue, 10 Dec 2024 04:48:50 +0000 (23:48 -0500)] 
libext2fs: fix compiler warning in ext2fs_orphan_file_block_csum_set()

Fixes: daf2d1c830d9 ("libext2fs: fix ext2fs_orphan_file_block_csum_set()")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodebugfs: add a new command to list the orphan inodes
Theodore Ts'o [Tue, 10 Dec 2024 03:35:16 +0000 (22:35 -0500)] 
debugfs: add a new command to list the orphan inodes

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agoe2fsck: clear the orphan_file while processing it
Theodore Ts'o [Mon, 9 Dec 2024 22:19:26 +0000 (17:19 -0500)] 
e2fsck: clear the orphan_file while processing it

Previously, we cleared the orphan file after pass 5.  This was
unfortunate, because it means that the file system is left in a
corrupted state after running "e2fsck -E journal_only".  By fixing
this, we can also remove a spurious "Orpan file... is not clean"
report from e2fsck.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agotests: check updating the orphan file checksums during an offline resize
Theodore Ts'o [Sun, 8 Dec 2024 04:56:47 +0000 (23:56 -0500)] 
tests: check updating the orphan file checksums during an offline resize

Check to make sure resize2fs correctly update the orphan file's
checksums if the orphan_file's blocks get moved.

This test checks the fix in commit ff4f46b4fdb2 ("resize2fs: rewrite
the checksums in the orphan file if necessary").

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agoresize2fs: rewrite the checksums in the orphan file if necessary
Theodore Ts'o [Sun, 8 Dec 2024 04:31:43 +0000 (23:31 -0500)] 
resize2fs: rewrite the checksums in the orphan file if necessary

The calculation of the metadata checksum located in each block of the
orphan file's inode includes the physical block number.  So if any of
those blocks have been moved, the checksum needs to be updated.

Reported-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agotests: fix m_rootgnutar expect script
Theodore Ts'o [Fri, 6 Dec 2024 06:02:00 +0000 (01:02 -0500)] 
tests: fix m_rootgnutar expect script

Fixes: 62fe2f4df048 ("misc/mke2fs.c: suppress 'Creating regular file' message with -q")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agolibext2fs: fix ext2fs_orphan_file_block_csum_set()
Theodore Ts'o [Thu, 5 Dec 2024 21:34:42 +0000 (16:34 -0500)] 
libext2fs: fix ext2fs_orphan_file_block_csum_set()

The function ext2fs_orphan_file_block_csum_set() isn't used by
e2fsprogs, but it was embarassingly broken.  Thanks to Darrick Wong
for pointing this out.

Fixes: 16534ff59444 ("e2fsck: fix big-endian support for orphan_file...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodebian: add a suggestion of libarchive13t64 to e2fsprogs
Theodore Ts'o [Thu, 5 Dec 2024 20:35:15 +0000 (15:35 -0500)] 
debian: add a suggestion of libarchive13t64 to e2fsprogs

Addresses-Debian-Bug: #1089085
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agomke2fs: remove deprecated -r option from the usage message
Theodore Ts'o [Thu, 5 Dec 2024 17:08:18 +0000 (12:08 -0500)] 
mke2fs: remove deprecated -r option from the usage message

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agodumpe2fs: add support for LABEL= and UUID= specifiers for the device
Theodore Ts'o [Thu, 5 Dec 2024 05:23:09 +0000 (00:23 -0500)] 
dumpe2fs: add support for LABEL= and UUID= specifiers for the device

The e2mmpstatus man page claims that it will support LABEL= and UUID=
specifiers, and these days e2mmpstatus is implemented in terms of
dumpe2fs.  So teach dumpe2fs to handle these specifiers so we can make
the e2mmpstatus man page be true.

https://github.com/tytso/e2fsprogs/issues/106

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agomisc: fix potential memory leak in create_inode_libarchive.c
Theodore Ts'o [Thu, 5 Dec 2024 03:41:20 +0000 (22:41 -0500)] 
misc: fix potential memory leak in create_inode_libarchive.c

Fix a potential memory leak on an error path.

Also handle the case where strdup() fails, and remove a redundant
test.

Addresses-Coverity-Bug: 1636564
Addresses-Coverity-Bug: 1636565
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agoMerge branch 'be_quiet' of https://github.com/josch/e2fsprogs into next
Theodore Ts'o [Thu, 5 Dec 2024 03:26:44 +0000 (22:26 -0500)] 
Merge branch 'be_quiet' of https://github.com/josch/e2fsprogs into next

7 months agoFix portability for systems which don't have dlopen or libarchive
Theodore Ts'o [Thu, 5 Dec 2024 03:08:46 +0000 (22:08 -0500)] 
Fix portability for systems which don't have dlopen or libarchive

Fixes: ecfd4dd1217a ("Decouple --without-libarchive and HAVE_ARCHIVE_H")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 months agofix portability problem with uselocale(), et. al.
Theodore Ts'o [Thu, 5 Dec 2024 01:25:32 +0000 (20:25 -0500)] 
fix portability problem with uselocale(), et. al.

misc/create_inode_libarchive.c uses uselocale(), newlocale(), et. al.
These functions are defined in POSIX.1-2017, which isn't available
everywhere --- including MacOS and Windows.

We don't actually need to use these functions, since mke2fs already
calls setlocale() to initialize to use the default locale.  So there
was no reason to set and restore the locale to use exactly the default
locale.

Fixes: ecfd4dd1217a ("Decouple --without-libarchive and HAVE_ARCHIVE_H")
Fixes: 7e3a4f0a33e9 ("mke2fs: the -d option can now handle tarball input")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agodebian: update debian/patches for 1.47.2~rc1-2 archive/debian/1.47.2_rc1-2 debian/1.47.2_rc1-2
Theodore Ts'o [Wed, 4 Dec 2024 04:56:57 +0000 (23:56 -0500)] 
debian: update debian/patches for 1.47.2~rc1-2

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agoMerge branch 'master' into debian/master
Theodore Ts'o [Wed, 4 Dec 2024 04:45:40 +0000 (23:45 -0500)] 
Merge branch 'master' into debian/master

8 months agoMore release note updates for 1.47.2.
Theodore Ts'o [Wed, 4 Dec 2024 04:44:26 +0000 (23:44 -0500)] 
More release note updates for 1.47.2.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agodebian: fix fuseext2 transition to account for /usr-move
Theodore Ts'o [Wed, 4 Dec 2024 04:06:43 +0000 (23:06 -0500)] 
debian: fix fuseext2 transition to account for /usr-move

Addresses-Debian-Bug: #1088838
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agoe2fsck: fix big-endian support for orphan_file file systems
Theodore Ts'o [Wed, 4 Dec 2024 04:03:13 +0000 (23:03 -0500)] 
e2fsck: fix big-endian support for orphan_file file systems

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomke2fs: allow specifying the revision 1 via "-r 1"
Theodore Ts'o [Tue, 3 Dec 2024 23:23:51 +0000 (18:23 -0500)] 
mke2fs: allow specifying the revision 1 via "-r 1"

The fsarchiver program unconditionally passes -r 1 even though it's
effectively a no-op.  To avoid commit 3fffe9dd6be5 breaking
fsarchiver, we'll silently allow the "-r 1" option instead of printing
an error and exiting.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agoDecouple --without-libarchive and HAVE_ARCHIVE_H
Johannes Schauer Marin Rodrigues [Tue, 3 Sep 2024 11:15:33 +0000 (13:15 +0200)] 
Decouple --without-libarchive and HAVE_ARCHIVE_H

To aid bootstrapping, it would be useful to be able to build e2fsprogs
without archive.h as otherwise there is a build dependency loop with
libarchive. If archive.h is not present, add the missing forward
declarations (as opaque structs) and preprocessor definitions and
typedefs. Since this allows building e2fsprogs with libarchive support
even without the archive.h header present on the system, we cannot check
HAVE_ARCHIVE_H anymore to decide whether to build with libarchive
support or not. So if --without-libarchive is passed to ./configure,
CONFIG_DISABLE_LIBARCHIVE gets set and later checked to decide about
libarchive support.

Addresses-Debian-Bug: #1078693
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agodebian: fix some typos in debian/changelog
Theodore Ts'o [Mon, 2 Dec 2024 12:53:47 +0000 (07:53 -0500)] 
debian: fix some typos in debian/changelog

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agoMerge tag 'v1.47.2-rc1' into debian/master archive/debian/1.47.2_rc1-1 debian/1.47.2_rc1-1
Theodore Ts'o [Fri, 29 Nov 2024 08:18:06 +0000 (03:18 -0500)] 
Merge tag 'v1.47.2-rc1' into debian/master

v1.47.2-rc1

8 months agoUpdate release notes, etc., for the 1.47.2 release v1.47.2-rc1
Theodore Ts'o [Fri, 29 Nov 2024 07:16:28 +0000 (02:16 -0500)] 
Update release notes, etc., for the 1.47.2 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d
Johannes Schauer Marin Rodrigues [Mon, 26 Aug 2024 22:45:16 +0000 (00:45 +0200)] 
mke2fs: accept gnu.translator xattrs in tar files fed to mke2fs -d

https://github.com/tytso/e2fsprogs/issues/192
https://github.com/tytso/e2fsprogs/pull/194

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agotests/fuzz: fix memory leak from repeatedly calling add_error_table()
Theodore Ts'o [Thu, 28 Nov 2024 18:21:20 +0000 (13:21 -0500)] 
tests/fuzz: fix memory leak from repeatedly calling add_error_table()

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agodebian: provide fuseext2 to replace src:fuse-umfuse-ext2
наб [Thu, 28 Nov 2024 17:48:58 +0000 (12:48 -0500)] 
debian: provide fuseext2 to replace src:fuse-umfuse-ext2

The fuse-umfuse-ext2 packaghas been abandoned by upstream, and a
follow-up fork at https://github.com/alperakcan/fuse-ext2 hasn't been
updated in five years.  Both of these versions also warn against
mounting file systems read/write with fuse-ext2.

As proposed on debian-devel, let's replace fuse-umfuse-ext2 with a
compatibility shell script shipped with fuse2fs.

Link: https://lists.debian.org/debian-devel/2024/10/msg00231.html
Addresses-Debian-Bug: #1085590
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agolibext2fs: fix -std=c23 build failure
Rudi Heitbaum [Fri, 22 Nov 2024 12:36:32 +0000 (12:36 +0000)] 
libext2fs: fix -std=c23 build failure

gcc-15 switched to -std=c23 by default:

    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212

As a result `e2fsprogs` fails the build so only typedef int bool
for __STDC_VERSION__ <= 201710L (C17)

    ../../../lib/ext2fs/tdb.c:113:13: error: two or more data types in declaration specifiers
    ../../../lib/ext2fs/tdb.c:113:1: warning: useless type name in empty declaration
      113 | typedef int bool;
          | ^~~~~~~

https://github.com/tytso/e2fsprogs/issues/202

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Link: https://lore.kernel.org/r/Z0B60JhdvT9bpSQ6@6f91903e89da
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agoext4.5, tune2fs.8: add documentation for the orphan_file feature
Theodore Ts'o [Thu, 28 Nov 2024 03:37:52 +0000 (22:37 -0500)] 
ext4.5, tune2fs.8: add documentation for the orphan_file feature

Add documentation for the orphan_file feature to the ext4(5) and
tune2fs(8) man pages.

Addresses-Debian-Bug: #1073062
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agobadblocks: avoid an error when -n or -w is specified twice
Theodore Ts'o [Thu, 28 Nov 2024 03:34:57 +0000 (22:34 -0500)] 
badblocks: avoid an error when -n or -w is specified twice

Fix a bug where if the user specifies the -n or -w command-line option
twice, badblocks will issue a misleading (and incorrect) error
message.

Addresses-Debian-Bug: #1087341
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agodebugfs: clean up groff warnings in the debugfs.8 man page
Theodore Ts'o [Thu, 28 Nov 2024 01:16:29 +0000 (20:16 -0500)] 
debugfs: clean up groff warnings in the debugfs.8 man page

Addresses-Debian-Bug: #1086892
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomisc: clean up groff warnings in the e2image.8 man page
Theodore Ts'o [Thu, 28 Nov 2024 00:28:34 +0000 (19:28 -0500)] 
misc: clean up groff warnings in the e2image.8 man page

Addresses-Debian-Bug: #1082787
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomisc: clean up groff warnings in the ext4.5 man page
Theodore Ts'o [Wed, 27 Nov 2024 18:53:19 +0000 (13:53 -0500)] 
misc: clean up groff warnings in the ext4.5 man page

Addresses-Debian-Bug: #1072866
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomisc: clean up groff warnings in the mek2fs.8 man page
Theodore Ts'o [Wed, 27 Nov 2024 18:36:17 +0000 (13:36 -0500)] 
misc: clean up groff warnings in the mek2fs.8 man page

Addresses-Debian-Bug: #1087898
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agotune2fs: replace the -r option with -E revision=<fs-rev>
Theodore Ts'o [Wed, 27 Nov 2024 18:03:38 +0000 (13:03 -0500)] 
tune2fs: replace the -r option with -E revision=<fs-rev>

Revision 0 file systems are needed for compatibility with pre-1995
Linux kernels (older that version 1.2).  Other for testing and
computer science archoelogy, there are no valid reasons for using this
feature.  Revision 0 file systms do not support any file system
extensions beyond what was present in Linux 1.0 kernels, and only
support 128 byte inode sizes, which means that the file system will
only support file dates after the Unix epoch in 2038.

Users who use -r 0 are almost certainly doing so by mistake (for
example, perhaps they meant -m 0 but they typed -r 0 instead).  As a
result they get a very badly cripped file system that won't support
SELinux, post-2038 dates, on-line resizing, etc.  So remove the -r
option and replace it with the extended option "revision", to prevent
users from falling into this trap.

Addresses-Debian-Bug: #1086603
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agotune2fs: update revision 0 file systems before changing the inode size
Theodore Ts'o [Tue, 26 Nov 2024 05:42:14 +0000 (00:42 -0500)] 
tune2fs: update revision 0 file systems before changing the inode size

Revsion 0 file systems only support the fixed 128 byte inode size.  So
before changing the inode size via tune2fs -I, we must first update
the file system to revision 1.

Addresses-Debian-Bug: #1086603
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agomisc: sort the extended and journal options in man pages for tune2fs/mke2fs
Theodore Ts'o [Wed, 27 Nov 2024 08:20:40 +0000 (03:20 -0500)] 
misc: sort the extended and journal options in man pages for tune2fs/mke2fs

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 months agofuse2fs: fix fuse2fs --helpfull
Theodore Ts'o [Tue, 26 Nov 2024 05:28:43 +0000 (00:28 -0500)] 
fuse2fs: fix fuse2fs --helpfull

https://github.com/tytso/e2fsprogs/issues/204

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agoresize2fs: check number of group descriptors only if meta_bg is disabled
Jan Kara [Wed, 25 Sep 2024 17:19:26 +0000 (19:19 +0200)] 
resize2fs: check number of group descriptors only if meta_bg is disabled

When meta_bg feature is enabled, the total number of group descriptors
is not really limiting the filesystem size. So there's no reason to
check it in that case. This allows resize2fs to resize filesystems past
256TB boundary similarly as the kernel can do it.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20240925171926.11354-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agotune2fs: only set the superblock as dirty if the default group is modified
Gwendal Grignou [Thu, 18 Jul 2024 17:52:04 +0000 (10:52 -0700)] 
tune2fs: only set the superblock as dirty if the default group is modified

Similar to commit 2eb3b20e80, it speeds up `tunefs -g` command when
the group argument is identical.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20240718175204.1590917-1-gwendal@chromium.org
9 months agotests: new test to check that the orphan file is cleaned up
Luis Henriques (SUSE) [Tue, 11 Jun 2024 14:27:04 +0000 (15:27 +0100)] 
tests: new test to check that the orphan file is cleaned up

This test verifies that e2fsck clears the orphan file if it is present.
The filesystem was created by simply creating a bunch of empty files and,
while those files were open by an application, delete some of them in
order to add them to the orphan file.  After this, the filesystem is
simply powered off.  An e2fsck will need to clear the orphaned inodes but
also to clean the orphan file.

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Link: https://lore.kernel.org/r/20240611142704.14307-3-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agoe2fsck: don't skip checks if the orphan file is present in the filesystem
Luis Henriques (SUSE) [Tue, 11 Jun 2024 14:27:03 +0000 (15:27 +0100)] 
e2fsck: don't skip checks if the orphan file is present in the filesystem

If the filesystem supports the orphan file feature and that file is present
then don't skip the filesystem checks as that file may need to be cleaned
up.

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Link: https://lore.kernel.org/r/20240611142704.14307-2-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agotests: write f_badjour_encrypted output to log
Andreas Dilger [Wed, 5 Jun 2024 20:03:52 +0000 (14:03 -0600)] 
tests: write f_badjour_encrypted output to log

Write the mke2fs and debugfs output from f_badjour_encrypted/script
into a log file instead of stdout/stderr, so that it doesn't mess
up the "make check" output, and is available if this test ever fails.

   [ Fixed missing definition of $LOG -- TYT ]

Fixes: b0cd09e5 ("e2fsck: don't allow journal to have encrypt flag")
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20240605200408.55221-1-adilger@dilger.ca
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agoFix implicit my_llseek declaration error when targeting musl libc
Henrik Lindström [Sun, 2 Jun 2024 12:07:21 +0000 (14:07 +0200)] 
Fix implicit my_llseek declaration error when targeting musl libc

Signed-off-by: Henrik Lindström <henrik@lxm.se>
Link: https://lore.kernel.org/r/20240602120721.387561-1-henrik@lxm.se
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agofuse2fs: explicitly set _FILE_OFFSET_BITS again
Darrick J. Wong [Wed, 29 May 2024 18:12:14 +0000 (11:12 -0700)] 
fuse2fs: explicitly set _FILE_OFFSET_BITS again

In commit 3ab99d9b602, the build system was changed not to set
_FILE_OFFSET_BITS explicitly due to some weird error on mips64el.
Unfortunately, this breaks the aarch64 Debian build because libfuse
2.9.9 requires this value to be set explicitly.  Restore this dumb
preprocessor symbol dependency with even more hackery as documented in
the commit.

Fixes: 3ab99d9b602 ("Remove explicit #define of _FILE_OFFSET_BITS")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20240529181214.GA52969@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agoconfigure: add SIZEOF_TIME_T to public_config.h
Alyssa Ross [Mon, 27 May 2024 07:41:21 +0000 (09:41 +0200)] 
configure: add SIZEOF_TIME_T to public_config.h

This has recently started being used by ext2fs.h.  Other users of the
ext2fs.h header would always get the 32-bit versions of the
__encode_extra_time, __decode_extra_sec, and __sb_set_tstamp; and the
64-bit version of __sb_get_tstamp, due to the SIZEOF_TIME_T macro
being undefined and treated as zero.

Fixes: 5b599a32 ("Fix 32-bit build and test failures")
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Link: https://lore.kernel.org/r/20240527074121.2767083-1-hi@alyssa.is
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 months agolibext2fs: fix unused parameter warnings/errors
Alyssa Ross [Tue, 28 May 2024 13:18:41 +0000 (15:18 +0200)] 
libext2fs: fix unused parameter warnings/errors

This fixes building dependent packages that use -Werror.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Link: https://lore.kernel.org/r/20240528131841.576999-1-hi@alyssa.is
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 months agodebian: enable Salsa Continuous Integration testing
Theodore Ts'o [Fri, 23 Aug 2024 21:40:38 +0000 (17:40 -0400)] 
debian: enable Salsa Continuous Integration testing

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 months agoMerge tag 'v1.47.1' into debian/master archive/debian/1.47.1-1 debian/1.47.1-1
Theodore Ts'o [Tue, 21 May 2024 03:13:33 +0000 (23:13 -0400)] 
Merge tag 'v1.47.1' into debian/master

v1.47.1

14 months agoext4.5: add preprocessor hint v1.47.1
Theodore Ts'o [Tue, 21 May 2024 02:52:47 +0000 (22:52 -0400)] 
ext4.5: add preprocessor hint

This fixes a Lintian warning which is triggered by an arbtrary
MANROFFSEQ='' environment variable:

an.tmac:<standard input>:376: warning: tbl preprocessor failed, or it or soelim was not run; table(s) likely not rendered (TE macro called with TW register undefined)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 months agoUpdate release notes, etc., for the 1.47.1 release
Theodore Ts'o [Mon, 20 May 2024 19:31:17 +0000 (15:31 -0400)] 
Update release notes, etc., for the 1.47.1 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 months agoUpdate makefile dependencies
Theodore Ts'o [Mon, 20 May 2024 19:46:10 +0000 (15:46 -0400)] 
Update makefile dependencies

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 months agoAOSP: Use no_full_install: true instead of installable: false
Jiyong Park [Wed, 1 May 2024 07:17:36 +0000 (16:17 +0900)] 
AOSP: Use no_full_install: true instead of installable: false

So far, we have used `instalable: false` to avoid collision with the
other modules that are installed to the same path. A typical example was
<foo> and <foo>.microdroid. The latter is a modified version of the
former for the inclusion of the microdroid image. They however both have
the same instalation path (ex: system/bin) and stem (ex: foo) so that we
can reference them using the same path regardless of whether we are in
Android or microdroid.

However, the use of `installable: false` for the purpose is actually
incorrect, because `installable: false` also means, obviously, "this
module shouldn't be installed". The only reason this incorrect way has
worked is simply because packaging modules (ex: android_filesystem)
didn't respect the property when gathering the modules.

As packaging modules are now fixed to respect `installable: false`, we
need a correct way of avoiding the collision. `no_full_install: true` is
it.

If a module has this property set to true, it is never installed to the
full instal path like out/target/product/<partition>/... It can be
installed only via packaging modules.

Bug: 338160898
Test: m
Change-Id: Idb173a7e3528c96b23f857bb3bdf5f37e698c445
From AOSP commit: 21a895548df7de83ce1e2e146e1718e5f723af7f

14 months agoAOSP: e2fsdroid: disable asan leak detection
Steven Moreland [Mon, 15 Apr 2024 23:07:31 +0000 (23:07 +0000)] 
AOSP: e2fsdroid: disable asan leak detection

borked and breaks asan build

Bugs: me
Test: build with SANITIZE_HOST=address
Change-Id: I9ae15ba328081c38e31c61834e80ce10765f9e30
From AOSP commit: eff2c071b546c3d2d3ea5eb89328babcc48e4bc2

14 months agoAOSP: Make mke2fs/e2fsdroid available for vendor
Kelvin Zhang [Tue, 26 Mar 2024 17:35:02 +0000 (10:35 -0700)] 
AOSP: Make mke2fs/e2fsdroid available for vendor

vendor_init needs to execute these binaries when converting partitions
to EXT4.

Test: th
Bug: 293313353
Change-Id: I1fa49c1a0f802b3c36e96112ef262bae4d5d394a
From AOSP commit: 0b54b8227815d447b52de76bb419735b21608941