]> git.ipfire.org Git - thirdparty/e2fsprogs.git/log
thirdparty/e2fsprogs.git
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Thu, 16 Jan 2020 23:33:24 +0000 (18:33 -0500)] 
Merge branch 'maint' into next

4 years agolibext2fs: reserve the error code EXT2_ET_NO_GDESC
Theodore Ts'o [Thu, 16 Jan 2020 20:35:29 +0000 (15:35 -0500)] 
libext2fs: reserve the error code EXT2_ET_NO_GDESC

This is really only needed in the 1.46+ where the EXT2_FLAG_SUPER_ONLY
is honored by ext2fs_open to only read the superblock, so that
fs->group_desc can be NULL.  We define it in the maint branch so that
we can be sure the error tables are kept in sync (in the unlikely case
that a new error code needs to be assigned in the maint branch).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: fix crash in ext2fs_image_super_write() on Big Endian systems
Theodore Ts'o [Tue, 14 Jan 2020 15:58:10 +0000 (10:58 -0500)] 
libext2fs: fix crash in ext2fs_image_super_write() on Big Endian systems

This is a similar fix as c9a8c53b17cc ("libext2fs: fix crash in
ext2fs_open2() on Big Endian systems").

Commit e6069a05: ("Teach ext2fs_open2() to honor the
EXT2_FLAG_SUPER_ONLY flag") changed how the function
ext2fs_group_desc() handled a request for a gdp pointer for a group
larger than the number of groups in the file system; it now returns
NULL, instead of returning a pointer beyond the end of the array.

Previously, the ext2fs_imager_super_write() function would swap all of
the block group descriptors in a block, even if they are beyond the
end of the file system.  This was OK, since we were not overrunning
the allocated memory, since it was rounded to a block boundary.  But
now that ext2fs_group_desc() would return NULL for those gdp, it would
cause ext2fs_open2(), when it was byte swapping the block group
descriptors on Big Endian systems, to dereference a null pointer and
crash.

This commit adds a NULL pointer check to avoid byte swapping those
block group descriptors in a bg descriptor block, but which are beyond
the end of the file system, to address this crash.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
4 years agolibcom_err: deal with the fact that the Hurd error messages are not zero-based
Theodore Ts'o [Wed, 8 Jan 2020 15:59:37 +0000 (10:59 -0500)] 
libcom_err: deal with the fact that the Hurd error messages are not zero-based

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge tag 'v1.45.5' into next
Theodore Ts'o [Tue, 7 Jan 2020 16:52:00 +0000 (11:52 -0500)] 
Merge tag 'v1.45.5' into next

v1.45.5

4 years agoUpdate release notes, etc., for the 1.45.5 release v1.45.5
Theodore Ts'o [Mon, 6 Jan 2020 04:54:30 +0000 (23:54 -0500)] 
Update release notes, etc., for the 1.45.5 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: always compile swapfs functions on all architectures
Theodore Ts'o [Mon, 6 Jan 2020 23:01:48 +0000 (18:01 -0500)] 
libext2fs: always compile swapfs functions on all architectures

By only compiling the ext2fs_swap_* functions on big-endian systems,
it causes debian/libext2fs2.symbols to need to be different on
different little-endian vs big-endian architectures.  Including the
ext2fS_swap_* functions increases the size of the library by ~6k,
which is not a big deal.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub, e2scrub_all: don't sleep unnecessarily in exitcode
Theodore Ts'o [Mon, 6 Jan 2020 21:01:23 +0000 (16:01 -0500)] 
e2scrub, e2scrub_all: don't sleep unnecessarily in exitcode

The two second sleep is only needed in e2scrub, and when there is a
failure, so that systemd has a chance to gather the log output before
e2scrub exits.  It's not needed if the script is exiting successfully,
and it's never needed for e2scrub_all ever.

Addresses-Debian-Bug: #948193
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: add autopkgtest files
Theodore Ts'o [Mon, 6 Jan 2020 16:47:21 +0000 (11:47 -0500)] 
debian: add autopkgtest files

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: don't scan /etc/mtab if file system not found in /proc/mounts
Theodore Ts'o [Mon, 6 Jan 2020 19:42:01 +0000 (14:42 -0500)] 
libext2fs: don't scan /etc/mtab if file system not found in /proc/mounts

Previously we would scan /etc/mtab if the device is not found in
/proc/mounts.  This is because previously, /etc/mtab would have the
filename for a loopback mount, while /proc/mounts would only have
something like /dev/loop0.  Since on many systems /etc/mtab is now a
symlink to /proc/mounts, ismounted.c has a special function,
check_loop_mounted.

For this reason, it's not necessary to fall back to trying to scan
/etc/mtab if a device / filename is not found from scanning
/proc/mounts.  This also prevents failures if the file /etc/mtab does
not exist but /proc/mounts does exist when checking to see if a device
is mounted when it isn't.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Thu, 2 Jan 2020 15:59:13 +0000 (10:59 -0500)] 
Merge branch 'maint' into next

4 years agoe2fsck: don't check for future superblock times if checkinterval == 0
Theodore Ts'o [Thu, 2 Jan 2020 02:50:27 +0000 (21:50 -0500)] 
e2fsck: don't check for future superblock times if checkinterval == 0

We are no longer enabling periodic file system checks by default in
mke2fs.  The only reason why we force file system checks if the last
mount time or last write time in the superblock is if this might
bypass the periodic file systme checks.  So if the checkinterval is
zero, skip the last mount/write time checks since there's no reason to
force a check just because the system clock is incorrect.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: update debhelper compat level to 12
Theodore Ts'o [Thu, 2 Jan 2020 01:40:43 +0000 (20:40 -0500)] 
debian: update debhelper compat level to 12

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoconfig: update config.{guess,sub}
Theodore Ts'o [Wed, 1 Jan 2020 20:16:41 +0000 (15:16 -0500)] 
config: update config.{guess,sub}

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update zh_CN.po (from translationproject.org)
Boyuan Yang [Wed, 1 Jan 2020 19:33:29 +0000 (14:33 -0500)] 
po: update zh_CN.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update ms.po (from translationproject.org)
Sharuzzaman Ahmat Raslan [Wed, 1 Jan 2020 19:33:29 +0000 (14:33 -0500)] 
po: update ms.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoDrop use of -pedantic when doing gcc-wall
Theodore Ts'o [Wed, 1 Jan 2020 00:48:37 +0000 (19:48 -0500)] 
Drop use of -pedantic when doing gcc-wall

With newer versions of gcc -pedantic is *super* pedantic, and
generates way too much noise.  So we drop it, and thus we don't need
util/gcc-wall-cleanup and util/static-analysis-cleanup.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: use ext2fs_file_llseek in inode_io.c
Theodore Ts'o [Wed, 1 Jan 2020 00:37:31 +0000 (19:37 -0500)] 
libext2fs: use ext2fs_file_llseek in inode_io.c

Enable the use of files > 2GB when using the inode_io manager.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: chage ext2_off_t and ext2_off64_t to be signed types
Theodore Ts'o [Wed, 1 Jan 2020 00:00:49 +0000 (19:00 -0500)] 
libext2fs: chage ext2_off_t and ext2_off64_t to be signed types

The ext2_off_t and ext2_off64_t types are used by ext2_file_lseek()
and ext2_file_llseek(), and they need to be signed so that it can be a
negative offset from the end of the file when EXT2_SEEK_END is used.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: use __u64 instead of ext2_off64_t in qcow.c
Theodore Ts'o [Tue, 31 Dec 2019 22:16:25 +0000 (17:16 -0500)] 
libext2fs: use __u64 instead of ext2_off64_t in qcow.c

The type ext2_off64_t should only be used in the context of the ext2fs
library's llseek() and ftruncate() analogs, ext2_file_llseek() and
ext2_inode_set_size().  That's because like the POSIX.1's off_t, it
needs to be a signed integer value so that SEEK_END will work
correctly.

qcow.c's use of ext2_off64_t is only internal, and not in any exposed
interfaces, so changes nothing; it just prepares us to be able to
change the type of ext2_off64_t.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agomke2fs: fix setting bad blocks in the block bitmap
Li Dongyang [Wed, 20 Nov 2019 04:35:24 +0000 (04:35 +0000)] 
mke2fs: fix setting bad blocks in the block bitmap

We mark the bad blocks as used on fs->block_map before allocating
group tables.  Don't translate the block number to cluster number when
doing this, the fs->block_map is still a block-granularity allocation
map, it will be coverted later by ext2fs_convert_subcluster_bitmap().

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2image: remove redundant -fr from man page and usage message
Benno Schulenberg [Thu, 5 Dec 2019 17:57:35 +0000 (18:57 +0100)] 
e2image: remove redundant -fr from man page and usage message

Also, add a missing dash and two missing brackets and two missing
spaces, and remove three excess spaces.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoAOSP: e2fsdroid: Skip Base FS entries that no longer exist.
David Anderson [Sat, 7 Dec 2019 00:48:52 +0000 (16:48 -0800)] 
AOSP: e2fsdroid: Skip Base FS entries that no longer exist.

Don't reserve blocks in the base map if the file does not exist in the
target image. This can happen if a file is removed or renamed in between
two builds. If the removed file is quite large, skipping it is important
since otherwise it will prevent blocks from being allocated for new files.

Bug: 145316683
Test: e2fsdroid with dynamic partitions
Change-Id: I63a9372c58adeaae3e1235fd92fed78a284ed391
From AOSP commit: 2b6646a3d2a7dd9972275cb829239ae033762da5

4 years agoAOSP: e2fsdroid: Allow re-use of deduplicated blocks.
David Anderson [Thu, 5 Dec 2019 22:00:28 +0000 (14:00 -0800)] 
AOSP: e2fsdroid: Allow re-use of deduplicated blocks.

When using a Base FS map, track deduplicated blocks in a separate
bitmap. The first inode to request a block from this set will succeed
in getting the block. Blocks in the dedup set are not available for
libext2fs to allocate; this ensures that previously deduplicated blocks
are re-used for their original purpose.

Note that deduplication takes priority over block allocation, so that
once a block is removed from the dedup set, that does not actually
prevent it from being re-used. Similarly, a file that was not previously
sharing a block may have its blocks shared in the new image.

Bug: 145316683
Test: e2fsdroid with dynamic partitions
Change-Id: I73856faa5d294a7b5fb985ccd1a6974a989481ea
From AOSP commit: 4e55425ff5d7d7cea27dcf79125766762e2b3529

4 years agoAOSP: e2fsdroid: Do not allocate invalid blocks from BaseFS.
David Anderson [Thu, 5 Dec 2019 21:27:44 +0000 (13:27 -0800)] 
AOSP: e2fsdroid: Do not allocate invalid blocks from BaseFS.

If certain metadata properties change in between builds, such as the
inode table size, then block mappings may not be valid from one build to
the next. For example, build A could allocate block N for a file. If
build B has a larger inode table, block N may no longer be a data block.

In this case, we need to remove the block from the BaseFS range list so
we do not give it back to libext2fs for writing data. We do this with a
new "owned_block_map" bitmap. If a block from the base FS is not in use
by the initial image, and is not used by any other file, it is
considered owned, and can be claimed by that file.

Note that while this produces correct images, it also prevents
deduplicated blocks from being re-used. This will be addressed in a
follow-up patch.

Bug: 145316683
Test: e2fsdroid block mapping with dynamic partitions
Change-Id: I3145e45156f7879bdf956384723fab4bd69acb93
Signed-off-by: David Anderson <dvander@google.com>
From AOSP commit: b3d1ccdb673772588b7bb14c4581980ef549a0b8

4 years agoAOSP: e2fsdroid: Refactor basefs allocation.
David Anderson [Thu, 5 Dec 2019 20:23:12 +0000 (12:23 -0800)] 
AOSP: e2fsdroid: Refactor basefs allocation.

This refactors base_fs_alloc_load() to address two issues. First, the
failure cases have been made simpler by factoring out a common helper
for freeing a base_fs_allocator. Second, we no longer return
EXIT_FAILURE, since this is not an errcode_t.

Bug: 145316683
Change-Id: I8b28c684ecf3423b605b550177d7ead4eb2821a4
From AOSP commit: b461ade872a809ab913d7506e9b8ed597d57dc87

4 years agoAOSP: e2fsdroid: Refactor block_range.
David Anderson [Thu, 5 Dec 2019 01:38:11 +0000 (17:38 -0800)] 
AOSP: e2fsdroid: Refactor block_range.

block_range is a singly-linked list, but the head/tail links are
manually managed all over. Instead, introduce a block_range_list
structure and refactor list helpers to operate on this instead. This
ensures head/tail are maintained properly (in some cases, like
delete_block_range, they were not).

Bug: 145316683
Test: manual test
Change-Id: Ieec6324549e2c3a71129871f703f4f0a37aeb1fa
From AOSP commit: 4220594792297619d2e70a29476667d1698dbd63

4 years agoAOSP: Add vendor_available: true
Justin Yun [Fri, 6 Dec 2019 06:14:36 +0000 (15:14 +0900)] 
AOSP: Add vendor_available: true

Make libext2-headers and libext2_uuid available to vendor and
product. They are required by f2fs-tools which are installed in
product partition.

Bug: 120954888
Bug: 145580164
Test: set PRODUCT_PRODUCT_VNDK_VERSION := current and build
Change-Id: Ibf5678448f9efbcb72c0544a3a50280fbfee2f38
From AOSP commit: 2c79a5f79197c090fc9c9534546f4ab4f7690809

4 years agoe2fsck: fix use after free in calculate_tree()
Wang Shilong [Tue, 31 Dec 2019 00:52:39 +0000 (19:52 -0500)] 
e2fsck: fix use after free in calculate_tree()

The problem is alloc_blocks() will call get_next_block() which might
reallocate outdir->buf, and memory address could be changed after
this.  To fix this, pointers that point into outdir->buf, such as
int_limit and root need to be recaulated based on the new starting
address of outdir->buf.

[ Changed to correctly recalculate int_limit, and to optimize how we
  reallocate outdir->buf.  -TYT ]

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: fix to return ENOMEM in alloc_size_dir()
Wang Shilong [Tue, 26 Nov 2019 09:03:58 +0000 (18:03 +0900)] 
e2fsck: fix to return ENOMEM in alloc_size_dir()

Two memory allocation return check is missed.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoext2fs: add ext2fs_get_stat_i_blocks() function
Theodore Ts'o [Mon, 30 Dec 2019 15:12:58 +0000 (10:12 -0500)] 
ext2fs: add ext2fs_get_stat_i_blocks() function

The function ext2fs_inode_i_blocks() is a bit confusing whether it is
returning the inode's i_blocks value, or whether it is returning the
value ala the stat(2) system call, which returns i_blocks in units of
512 byte sectors.  This caused ext2fs_inode_i_blocks() to be
incorrectly used in fuse2fs and the function quota_compute_usage().

To address this, we add a new function, ext2fs_get_stat_i_blocks()
which is clearly labelled what it is returning, and use it in fuse2fs
and quota_compute_usage().  It's also a bit more convenient to use it
in e2fsck, so use it there too.

Reported-by: Wang Shilong <wangshilong1991@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: fix crash in ext2fs_open2() on Big Endian systems
Theodore Ts'o [Fri, 27 Dec 2019 04:19:54 +0000 (23:19 -0500)] 
libext2fs: fix crash in ext2fs_open2() on Big Endian systems

Commit e6069a05: ("Teach ext2fs_open2() to honor the
EXT2_FLAG_SUPER_ONLY flag") changed how the function
ext2fs_group_desc() handled a request for a gdp pointer for a group
larger than the number of groups in the file system; it now returns
NULL, instead of returning a pointer beyond the end of the array.

Previously, the ext2fs_open2() function would swap all of the block
group descriptors in a block, even if they are beyond the end of the
file system.  This was OK, since we were not overrunning the allocated
memory, since it was rounded to a block boundary.  But now that
ext2fs_group_desc() would return NULL for those gdp, it would cause
ext2fs_open2(), when it was byte swapping the block group descriptors
on Big Endian systems, to dereference a null pointer and crash.

This commit adds a NULL pointer check to avoid byte swapping those
block group descriptors in a bg descriptor block, but which are beyond
the end of the file system, to address this crash.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Anatoly Pugachev <matorola@gmail.com>
4 years agofuse2fs: add support for 32-bit uids and gids
Theodore Ts'o [Fri, 20 Dec 2019 20:16:09 +0000 (15:16 -0500)] 
fuse2fs: add support for 32-bit uids and gids

Previously, uids were truncated at 16 bits because we weren't properly
handling i_uid_high and i_gid_high.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agomke2fs: fix "mke2fs -d /path/to/files" to support 32-bit uids and gids
Theodore Ts'o [Fri, 20 Dec 2019 19:58:41 +0000 (14:58 -0500)] 
mke2fs: fix "mke2fs -d /path/to/files" to support 32-bit uids and gids

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

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: don't try to rehash a deleted directory
Theodore Ts'o [Fri, 20 Dec 2019 00:45:06 +0000 (19:45 -0500)] 
e2fsck: don't try to rehash a deleted directory

If directory has been deleted in pass1[bcd] processing, then we
shouldn't try to rehash the directory in pass 3a when we try to
rehash/reoptimize directories.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: abort if there is a corrupted directory block when rehashing
Theodore Ts'o [Fri, 20 Dec 2019 00:37:34 +0000 (19:37 -0500)] 
e2fsck: abort if there is a corrupted directory block when rehashing

In e2fsck pass 3a, when we are rehashing directories, at least in
theory, all of the directories should have had corruptions with
respect to directory entry structure fixed.  However, it's possible
(for example, if the user declined a fix) that we can reach this stage
of processing with a corrupted directory entries.

So check for that case and don't try to process a corrupted directory
block so we don't run into trouble in mutate_name() if there is a
zero-length file name.

Addresses: TALOS-2019-0973
Addresses: CVE-2019-5188
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: optimize away repeated calls to gettext()
Theodore Ts'o [Sat, 14 Dec 2019 04:30:53 +0000 (23:30 -0500)] 
e2fsck: optimize away repeated calls to gettext()

Optimize _("getting next inode from scan") so it is not called for
each initialized inode in the file system, and make a similar
optimization in pass 2 for each directory block.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: fix the 30 second timeout when trying to remove a snapshot
Theodore Ts'o [Sat, 14 Dec 2019 04:23:06 +0000 (23:23 -0500)] 
e2scrub: fix the 30 second timeout when trying to remove a snapshot

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Sat, 23 Nov 2019 04:30:37 +0000 (23:30 -0500)] 
Merge branch 'maint' into next

4 years agoAdd a program to test images provided by UBSAN fuzzing reports
Theodore Ts'o [Sat, 23 Nov 2019 04:27:47 +0000 (23:27 -0500)] 
Add a program to test images provided by UBSAN fuzzing reports

This program calls a few ext2fs library functions used by the current
generation of libext2fs fuzzers, and is helpful in reproducing UBSAN
failures reported externally.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: define PATH_MAX if not provided by the system headers
Theodore Ts'o [Sat, 23 Nov 2019 04:26:39 +0000 (23:26 -0500)] 
libext2fs: define PATH_MAX if not provided by the system headers

This is needed to compile on Illumos and its derivatives.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotune2fs: prohibit toggling uninit_bg on live filesystems
Darrick J. Wong [Wed, 20 Nov 2019 19:32:55 +0000 (11:32 -0800)] 
tune2fs: prohibit toggling uninit_bg on live filesystems

An internal customer followed an erroneous AskUbuntu article[1] to try to
change the UUID of a live ext4 filesystem.  The article claims that you
can work around tune2fs' "cannot change UUID on live fs" error by
disabling uninit_bg, changing the UUID, and re-enabling the feature.

This led to metadata corruption because tune2fs' journal descriptor
rewrite races with regular filesystem writes.  Therefore, prevent
administrators from turning on or off uninit_bg on a mounted fs.

[1] https://askubuntu.com/questions/132079/how-do-i-change-uuid-of-a-disk-to-whatever-i-want/195839#459097

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: say "cleared" instead of "reset"
Eric Biggers [Mon, 18 Nov 2019 01:48:52 +0000 (17:48 -0800)] 
chattr.1: say "cleared" instead of "reset"

Setting a bit to 0 is normally called "clearing", not "resetting"; and
chattr.1 already says "clear" in some places.  Use "clear" consistently.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: clarify that ext4 doesn't support tail-merging either
Eric Biggers [Mon, 18 Nov 2019 01:48:51 +0000 (17:48 -0800)] 
chattr.1: clarify that ext4 doesn't support tail-merging either

This old text was never updated to mention ext4 in addition to ext2 and
ext3.  Do so now.  Also don't bother to mention old unmerged patches.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: fix some grammatical errors
Eric Biggers [Mon, 18 Nov 2019 01:48:50 +0000 (17:48 -0800)] 
chattr.1: fix some grammatical errors

- "can only be open" => "can only be opened"
- "is not candidate" => "is not a candidate"
- "written ... on the disk" => "written ... to the disk"

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: add casefold attribute to mode string
Eric Biggers [Mon, 18 Nov 2019 01:48:49 +0000 (17:48 -0800)] 
chattr.1: add casefold attribute to mode string

When the casefold attribute ('F') was added to the chattr man page, it
was forgotten to add it to the mode string.  Add it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: adjust documentation for encryption attribute
Eric Biggers [Mon, 18 Nov 2019 01:48:48 +0000 (17:48 -0800)] 
chattr.1: adjust documentation for encryption attribute

Adjust the documentation for the encryption attribute ('E') to clarify
that encryption isn't experimental anymore and isn't restricted to
regular files, and that the encryption is done by the filesystem.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agochattr.1: document the verity attribute
Eric Biggers [Mon, 18 Nov 2019 01:48:47 +0000 (17:48 -0800)] 
chattr.1: document the verity attribute

Document the verity file attribute ('V').

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Thu, 14 Nov 2019 16:46:13 +0000 (11:46 -0500)] 
Merge branch 'maint' into next

4 years agoconfigure: don't fail if /usr/include/sys/mount.h does not exist
Theodore Ts'o [Wed, 13 Nov 2019 18:55:29 +0000 (13:55 -0500)] 
configure: don't fail if /usr/include/sys/mount.h does not exist

The AX_CHECK_MOUNT_OPT macro fails if /usr/include/sys/mount.h.
Unfortunately, the GNU HURD doesn't have this header file.  Drop the
requirement, since if it doesn't exist, the macro will assume that
given mount options don't exist, which for e2fsprogs is used to test
to for the existence of the mount options nosuid and nodev.  This is
only used for fuse2fs, and HURD doesn't support fuse2fs anyway.

Addresses-Debian-Bug: #944649
Reported-by: Svante Signell <svante.signell@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoRevert "e2fsck: Change kmem_cache_t to lkmem_cache_t for Solaris"
Theodore Ts'o [Tue, 12 Nov 2019 15:47:37 +0000 (10:47 -0500)] 
Revert "e2fsck: Change kmem_cache_t to lkmem_cache_t for Solaris"

This is a logical revert of commit 1911bf113ef0, for which the
description reads:

    Solaris polutes the C namespace with kmem_cache_t when
    you include in/netinet.h is included, so rename kmem_cache_t
    to lkmem_cache_t.

Reverting this change allows us to keep e2fsck/revoke.c in sync with
its upstream kernel source of fs/jbd2/revoke.c, and was the last
change required to make the e2fsprogs and kernel versions of revoke.c
to be bit identical.

I've confirmed that this is no longer a problem with OmniOS (an
Illumos / Open Solaris derivative).  It may be a problem with Solaris,
but since I don't have easy access to Solaris, ¯\_(ツ)_/¯

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs/ismounted.c: check device id in advance to skip false device names
Theodore Ts'o [Sun, 10 Nov 2019 17:11:49 +0000 (12:11 -0500)] 
libext2fs/ismounted.c: check device id in advance to skip false device names

If there is a trickster which tries to use device names as the mount
device for pseudo-file systems, the resulting /proc/mounts can confuse
ext2fs_check_mount_point().  (So far as I can tell, there's no good
reason to do this, but sysadmins do the darnest things.)

An example of this might be the following /proc/mounts excerpt:

/dev/sdb /mnt2 tmpfs rw,relatime 0 0
/dev/sdb /mnt ext4 rw,relatime 0 0

This is created via "mount -t tmpfs /dev/sdb /mnt2" followed via
"mount -t ext4 /dev/sdb /mnt".  (Normally, a sane mount of tmpfs would
use something like "mount -t tmpfs tmpfs /mnt2".)

Fix this by double checking the st_rdev of the claimed mountpoint and
match it with the dev_t of the device.  (Note that the GNU HURD
doesn't support st_rdev, so we can't solve this problem for the HURD.)

Reported-by: GuiYao <guiyao@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoresize2fs: make minimum size estimates more reliable for mounted fs
Jan Kara [Fri, 18 Oct 2019 12:50:59 +0000 (14:50 +0200)] 
resize2fs: make minimum size estimates more reliable for mounted fs

Currently, the estimate of minimum filesystem size is using free blocks
counter in the superblock. The counter generally doesn't get updated
while the filesystem is mounted and thus the estimate is very unreliable
for a mounted filesystem. For some usecases such as automated
partitioning proposal to the user it is desirable that the estimate of
minimum filesystem size is reasonably accurate even for a mounted
filesystem. So use group descriptor counters of free blocks for the
estimate of minimum filesystem size. These get updated together with
block being allocated and so the resulting estimate is more accurate.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoDefine the beXX_to_cpu and cpu_to_beXX macros for e2fsck/{recovery.c,revoke.c}
Theodore Ts'o [Sun, 10 Nov 2019 04:28:43 +0000 (23:28 -0500)] 
Define the beXX_to_cpu and cpu_to_beXX macros for e2fsck/{recovery.c,revoke.c}

We were previously using contrib/jbd2-resync.sh to transmogrify the
beXX_to_cpu and cpu_to_beXX macros to ext2fs_beXX_to_cpu and
ext2fs_cpu_to_beXX.  Define them in lib/ext2fs/jfs_compat.h so we can
more easily keep them in sync with the kernel version of those files.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: fix broken stdin redirection
Darrick J. Wong [Tue, 5 Nov 2019 01:54:20 +0000 (17:54 -0800)] 
e2scrub_all: fix broken stdin redirection

gregor herrmann reports that the weekly e2scrub cronjob emits these
errors:

/sbin/e2scrub_all: line 173: /proc/8234/fd/pipe:[90083173]: No such file or directory

The root cause of this is that the ls_targets stdout is piped to stdin
to the entire ls_targets loop body to prevent the loop body from reading
the loop iteration items.  Remove all the broken hackery by reading the
target list into a bash array and iterating the bash array.

Addresses-Debian-Bug: #944033

Reported-by: gregor herrmann <gregoa@debian.org>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: don't even reap if the config file doesn't allow it
Darrick J. Wong [Tue, 5 Nov 2019 01:54:14 +0000 (17:54 -0800)] 
e2scrub_all: don't even reap if the config file doesn't allow it

Dave Chinner complains that the automated on-boot e2scrub reaping takes
a long time (because the lvs command can take a while to run) even
though the automated e2scrub is disabled via e2scrub.conf on his
systems.

We still need the reaping service to kill off stale e2scrub snapshots
after a crash, but it's unnecessary to annoy everyone with slow bootup.
Because we can look for the e2scrub snapshots in /dev/mapper, let's
skip reaping if periodic e2scrub is disabled unless we find evidence of
e2scrub snapshots in /dev.

Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoAlign the types used by jbd2_journal_bmap and getblk with the kernel
Theodore Ts'o [Sat, 9 Nov 2019 06:47:24 +0000 (01:47 -0500)] 
Align the types used by jbd2_journal_bmap and getblk with the kernel

This avoids some 32-bit vs 64-bit discrepancies in the function
signatures and the types used by their callers.

This cleans up some sparse warnings in recovery.c.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck/recovery.c: sync up with kernel's use of __be32
Theodore Ts'o [Sat, 9 Nov 2019 06:42:59 +0000 (01:42 -0500)] 
e2fsck/recovery.c: sync up with kernel's use of __be32

E2fsprogs as a whole is not sparse-clean, but it does have and
understand the __beXX and __leXX types from the kernel.  The structure
definitions in kernel-jbd.h have been updated to use the __beXX types,
so that recovery.c and revoke.c are more sparse-clean.

This removes a few more unneeded deltas from the kernel's recovery.c.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoSync kernel's removal of open-coded allocation retry loop in revoke.c
Theodore Ts'o [Sat, 9 Nov 2019 03:47:31 +0000 (22:47 -0500)] 
Sync kernel's removal of open-coded allocation retry loop in revoke.c

Apply the kernel's changes for commit 7b506b103532 ("jbd2: get rid of
open coded allocation retry loop") for revoke.c.

This required adjusting some of kernel compatibility defines.

Note that retrying allocations in user space never makes any sense!

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoSync kernel's fix for potential double free in jbd2
Theodore Ts'o [Sat, 9 Nov 2019 02:53:42 +0000 (21:53 -0500)] 
Sync kernel's fix for potential double free in jbd2

Commit 0d52154bb0a7 ("jbd2: fix potential double free") changes the
interface exported by revoke.c to initialize and destroy the slab
caches.  Make the necessary changes to the code in e2fsck and debugfs
which calls revoke.c

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck/revoke.c: sync kernel's adoption of kmalloc_array()
Theodore Ts'o [Sat, 9 Nov 2019 02:25:59 +0000 (21:25 -0500)] 
e2fsck/revoke.c: sync kernel's adoption of kmalloc_array()

Sync the changes to e2fsck/revoke.c from commit 6da2ec56059c
("treewide: kmalloc() -> kmalloc_array()"), and add the emulation of
kmalloc_array() to e2fsck/jfs_user.h

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoSync kernel's unification of jbd2 revoke and tag block checksum handling
Theodore Ts'o [Sat, 9 Nov 2019 01:26:05 +0000 (20:26 -0500)] 
Sync kernel's unification of jbd2 revoke and tag block checksum handling

Commit 1101cd4d13ba ("jbd2: unify revoke and tag block checksum
handling") cleans up the fact that the jbd2_journal_revoke_tail and
jbd2_journal_block_tail structures are basically the same.  So it
drops the definition of struct jbd2_journal_revoke_tail and unifies
the functions which calculates and verifies the checksums for revoke
blocks and tag blocks.

Make the same changes in e2fsprogs so eliminate unnecessary
differences in e2fsck/recovery.c and e2fsck/revoke.c.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck/revoke.c: sync changes from kernel
Theodore Ts'o [Sat, 9 Nov 2019 00:00:30 +0000 (19:00 -0500)] 
e2fsck/revoke.c: sync changes from kernel

Sync up the revoke.c specific changes from kernel commits 9bcf976cb8b8
("jbd2: remove unnecessary arguments of jbd2_journal_write_revoke_records"),
32ab671599a8 ("jbd2: factor out common descriptor block initialization"),
70fd76140a6c ("block,fs: use REQ_* flags directly"), cd9cb405e0b9
("jbd2: don't leak memory if setting up journal fails"), 8bdd5b60e027
("jbd2: remove NULL check before calling kmem_cache_destroy()"),
547b9ad698b4 ("jbd2: flush_descriptor(): Do not decrease buffer head's
ref count"), and fdc3ef882a5d ("jbd2: Reserve space for revoke descriptor
blocks").

Nearly all of the changes is in code under an #ifdef __KERNEL__.  The
changes that will actually affect e2fprogs compilation are trivial and
easy to hand verify.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoRename functions, types, constants to reflect jbd2 usage
Theodore Ts'o [Fri, 8 Nov 2019 22:17:35 +0000 (17:17 -0500)] 
Rename functions, types, constants to reflect jbd2 usage

We had previously stuck to using the names from ext3/jbd kernel files,
and used a script in contrib/jbd2-resync.sh to convert the kernel
files to use the ext3/jbd conventions so we could keep the files
e2fsck/recovery.c and e2fsck/revoke.c in sync with jbd2/recovery.c and
jbd2/revoke.c, respectively.

This has been getting harder and harder, so let's make a global sweep
through e2fsprogs to use the jbd2 names.  Fortunately none of the
ext3/jbd names had leaked out into publically exported header files,
so this is only an internal change.  Which looks scary, but it's
basically a search and replace, so if it compiles it's going to be
correct.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoConvert kernel compat functions to use new ll_rw_block() function signature
Theodore Ts'o [Fri, 8 Nov 2019 21:03:38 +0000 (16:03 -0500)] 
Convert kernel compat functions to use new ll_rw_block() function signature

In newer kernels, ll_rw_block() separated the request operation and
the operational flags arguments.  This means adding a new parameter to
ll_rw_block() (which is ignored in our compat layer) and changing READ
and WRITE to REQ_OP_READ and REQ_OP_WRITE, respectively.

This makes it easier to keep us in sync with the kernel tree.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoClean up minor differences between kernel and e2fsck's jbd2 source files
Theodore Ts'o [Fri, 8 Nov 2019 20:02:42 +0000 (15:02 -0500)] 
Clean up minor differences between kernel and e2fsck's jbd2 source files

Historically e2fsprogs's e2fsck/recovery.c and e2fsck/revoke.c was
sync'ed against the ext3 version of jbd/recovery.c and jbd/revoke.c.
Remove minor differences so we can better sync up between the two
versions.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Sat, 9 Nov 2019 06:54:31 +0000 (01:54 -0500)] 
Merge branch 'maint' into next

4 years agolibext2fs: verify the block numbers for the allocation bitmaps are valid
Theodore Ts'o [Fri, 8 Nov 2019 16:58:10 +0000 (11:58 -0500)] 
libext2fs: verify the block numbers for the allocation bitmaps are valid

This avoids a potential UBsan failure when we multiply an insanely
high block number with the block size and we get a multiplication
overflow.

Google-Bug-Id: 128130353
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: properly free the bitmaps in read_bitmap()'s error/cleanup path
Theodore Ts'o [Fri, 8 Nov 2019 14:49:51 +0000 (09:49 -0500)] 
libext2fs: properly free the bitmaps in read_bitmap()'s error/cleanup path

Use ext2fs_free_{block,inode}_bitmaps() instead of ext2fs_free_mem()
to avoid some memory leaks if there is an error while calling
read_bitmaps().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebugfs: teach the htree command to check and display the dx block checksum
Theodore Ts'o [Thu, 7 Nov 2019 14:01:23 +0000 (09:01 -0500)] 
debugfs: teach the htree command to check and display the dx block checksum

To do this we need to export the ext2fs_dx_csum() function from
libext2fs.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: refactor common code into ext2fs_dx_csum()
Theodore Ts'o [Thu, 7 Nov 2019 12:17:13 +0000 (07:17 -0500)] 
libext2fs: refactor common code into ext2fs_dx_csum()

ext2fs_dx_csum() is currently a static function, so this has no
visible changes except shrinking the text size of csum.o by
approximately 100 bytes.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Thu, 7 Nov 2019 03:33:11 +0000 (22:33 -0500)] 
Merge branch 'maint' into next

4 years agoFix UBSan when shifting (1LL << 63)
Theodore Ts'o [Tue, 5 Nov 2019 02:22:54 +0000 (21:22 -0500)] 
Fix UBSan when shifting (1LL << 63)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: fix UBSan when updating an inline_data file
Theodore Ts'o [Mon, 4 Nov 2019 23:43:49 +0000 (18:43 -0500)] 
libext2fs: fix UBSan when updating an inline_data file

What memcpy does when the length is zero is not well-defined.  So
avoid it.

Bug: https://github.com/tytso/e2fsprogs/issues/25
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: fix bug when reading or writing more than 2GB in unix_io
Theodore Ts'o [Mon, 4 Nov 2019 21:43:41 +0000 (16:43 -0500)] 
libext2fs: fix bug when reading or writing more than 2GB in unix_io

If count * block_size exceeds 2GB, we will overflow a 32-bit signed
integer value.  This shouldn't happen in practice except for
fuzz-corrupted file systems, but let's fix the code so it's correct.

Bug: https://github.com/tytso/e2fsprogs/issues/24
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoAOSP: support the stable_inodes feature
Eric Biggers [Mon, 21 Oct 2019 23:30:43 +0000 (16:30 -0700)] 
AOSP: support the stable_inodes feature

Reserve the codepoint for EXT4_FEATURE_COMPAT_STABLE_INODES, allow it to
be set and cleared, and teach resize2fs to forbid shrinking the
filesystem if it is set.

This feature will allow the use of encryption policies where the inode
number is included in the IVs (initialization vectors) for encryption,
so data would be corrupted if the inodes were to be renumbered.

For more details, see the kernel patchset:
https://lkml.kernel.org/linux-fsdevel/20191021230355.23136-1-ebiggers@kernel.org/T/#u

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
From AOSP commit: 9aa30c254dd57df54f00c5d520b7ac867ad7ca68

4 years agoMerge branch 'maint' into next
Theodore Ts'o [Thu, 31 Oct 2019 23:30:54 +0000 (19:30 -0400)] 
Merge branch 'maint' into next

4 years agoAOSP: Link to production releases, not testing releases
Eric Biggers [Tue, 24 Sep 2019 21:59:10 +0000 (14:59 -0700)] 
AOSP: Link to production releases, not testing releases

The testing links are not stable and are not guaranteed to exist.

Test: After re-generating the generated files, the link works now.
Change-Id: I36e73ef74571b3246f470280a75ae1098245eff5
From AOSP commit: 5971f6a5113b12b33d9454229bf27621853e1da7

4 years agoAOSP: Add new source files to Android.bp files
Eric Biggers [Tue, 24 Sep 2019 21:59:10 +0000 (14:59 -0700)] 
AOSP: Add new source files to Android.bp files

Test: see I3781b6d1e55923e9410644e8a7ba834b4d13b733
Change-Id: Ie071b30937dcf73f34df5dc3aa08d23ae30d9c63
From AOSP commit: d2a16e1616b807a6143b9c6232a1c54f90dc06f6

4 years agoTeach ext2fs_open2() to honor the EXT2_FLAG_SUPER_ONLY flag
Theodore Ts'o [Tue, 22 Oct 2019 22:42:25 +0000 (18:42 -0400)] 
Teach ext2fs_open2() to honor the EXT2_FLAG_SUPER_ONLY flag

Opening the file system with EXT2_FLAG_SUPER_ONLY will leave
fs->group_desc to be NULL and modify "dumpe2fs -h" and tune2fs when it
is emulating e2label to use this flag.  This speeds up "dumpe2fs -h"
and "e2label" when operating on very large file systems.

To allow other libext2fs functions to work without too many surprises,
ext2fs_group_desc() will read in the block group descriptors on
demand.  This allows "dumpe2fs -h" to be able to read the journal
inode, for example.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cray-bug-id: LUS-5777

4 years agoUpdate debian changelog and version.h for 1.46~WIP.2019.10.09-1
Theodore Ts'o [Thu, 10 Oct 2019 00:25:01 +0000 (20:25 -0400)] 
Update debian changelog and version.h for 1.46~WIP.2019.10.09-1

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: check for consistent encryption policies
Eric Biggers [Wed, 18 Sep 2019 01:07:34 +0000 (18:07 -0700)] 
e2fsck: check for consistent encryption policies

By design, the kernel enforces that all files in an encrypted directory
use the same encryption policy as the directory.  It's not possible to
violate this constraint using syscalls.  Lookups of files that violate
this constraint also fail, in case the disk was manipulated.

But this constraint can also be violated by accidental filesystem
corruption.  E.g., a power cut when using ext4 without a journal might
leave new files without the encryption bit and/or xattr.  Thus, it's
important that e2fsck correct this condition.

Therefore, this patch makes the following changes to e2fsck:

- During pass 1 (inode table scan), create a map from inode number to
  encryption policy for all encrypted inodes.  But it's optimized so
  that the full xattrs aren't saved but rather only 32-bit "policy IDs",
  since usually many inodes share the same encryption policy.  Also, if
  an encryption xattr is missing, offer to clear the encrypt flag.  If
  an encryption xattr is clearly corrupt, offer to clear the inode.

- During pass 2 (directory structure check), use the map to verify that
  all regular files, directories, and symlinks in encrypted directories
  use the directory's encryption policy.  Offer to clear any directory
  entries for which this isn't the case.

Add a new test "f_bad_encryption" to test the new behavior.

Due to the new checks, it was also necessary to update the existing test
"f_short_encrypted_dirent" to add an encryption xattr to the test file,
since it was missing one before, which is now considered invalid.

Google-Bug-Id: 135138675
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
4 years agodebian: update changelog for 1.46~WIP.2019.10.03-1
Theodore Ts'o [Fri, 4 Oct 2019 01:51:14 +0000 (21:51 -0400)] 
debian: update changelog for 1.46~WIP.2019.10.03-1

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMark version as 1.46-WIP
Theodore Ts'o [Fri, 4 Oct 2019 01:47:52 +0000 (21:47 -0400)] 
Mark version as 1.46-WIP

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoEnable support for the fast_commit compat feature
Theodore Ts'o [Fri, 4 Oct 2019 01:45:50 +0000 (21:45 -0400)] 
Enable support for the fast_commit compat feature

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge branch 'maint' into next
Theodore Ts'o [Fri, 4 Oct 2019 01:16:26 +0000 (21:16 -0400)] 
Merge branch 'maint' into next

4 years agoDefine the codepoint for the fast_commit compat feature
Theodore Ts'o [Fri, 4 Oct 2019 01:14:31 +0000 (21:14 -0400)] 
Define the codepoint for the fast_commit compat feature

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoMerge tag 'v1.45.4' into next
Theodore Ts'o [Mon, 23 Sep 2019 22:29:14 +0000 (18:29 -0400)] 
Merge tag 'v1.45.4' into next

v1.45.4

4 years agoUpdate release notes, etc., for the 1.45.4 release v1.45.4
Theodore Ts'o [Mon, 23 Sep 2019 20:04:59 +0000 (16:04 -0400)] 
Update release notes, etc., for the 1.45.4 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotune2fs.8: tweak the documentation for the encrypt feature
Eric Biggers [Fri, 20 Sep 2019 21:29:54 +0000 (14:29 -0700)] 
tune2fs.8: tweak the documentation for the encrypt feature

Try to make it clearer that enabling 'encrypt' just enables *support*
for encryption; it doesn't actually encrypt anything by itself.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotune2fs.8: document the verity feature
Eric Biggers [Fri, 20 Sep 2019 21:29:53 +0000 (14:29 -0700)] 
tune2fs.8: document the verity feature

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoext4.5: tweak the documentation for the encrypt feature
Eric Biggers [Fri, 20 Sep 2019 21:29:52 +0000 (14:29 -0700)] 
ext4.5: tweak the documentation for the encrypt feature

Try to make it clearer that enabling 'encrypt' just enables *support*
for encryption; it doesn't actually encrypt anything by itself.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoext4.5: document the verity feature
Eric Biggers [Fri, 20 Sep 2019 21:29:51 +0000 (14:29 -0700)] 
ext4.5: document the verity feature

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoext4.5: document first kernel version to support casefold feature
Eric Biggers [Fri, 20 Sep 2019 21:29:50 +0000 (14:29 -0700)] 
ext4.5: document first kernel version to support casefold feature

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoext4.5: move casefold feature to correct position
Eric Biggers [Fri, 20 Sep 2019 21:29:49 +0000 (14:29 -0700)] 
ext4.5: move casefold feature to correct position

The features are listed in alphabetic order, so put the casefold feature
in the right place.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: make sure fd 3 is closed before running lvm commands
Theodore Ts'o [Mon, 23 Sep 2019 17:17:13 +0000 (13:17 -0400)] 
e2scrub_all: make sure fd 3 is closed before running lvm commands

Some versions of cron leave fd 3 open for some unknown reason.  So
when e2scrub_all is run by cron (on non-systemd systems) this results
in an annoying message from the Cron Daemon because lvm will print
warning messages about "leaked file descriptors.  So force close fd 3
at the beginning of e2scrub and e2scrub_all.

Addresses-Debian-Bug: #940240
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Mon, 23 Sep 2019 17:10:37 +0000 (13:10 -0400)] 
po: update vi.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 23 Sep 2019 17:10:36 +0000 (13:10 -0400)] 
po: update nl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update ms.po (from translationproject.org)
Sharuzzaman Ahmat Raslan [Mon, 23 Sep 2019 17:10:36 +0000 (13:10 -0400)] 
po: update ms.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update es.po (from translationproject.org)
Antonio Ceballos [Mon, 23 Sep 2019 17:10:36 +0000 (13:10 -0400)] 
po: update es.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>