]> git.ipfire.org Git - thirdparty/e2fsprogs.git/log
thirdparty/e2fsprogs.git
4 years agodebian: skip running "make check" if DEB_BUILD_OPTIONS contains nocheck
Theodore Ts'o [Sat, 27 Jul 2019 16:17:06 +0000 (12:17 -0400)] 
debian: skip running "make check" if DEB_BUILD_OPTIONS contains nocheck

This was done automatically by debhelper, but it got dropped when
override_dh_auto_test was added by commit 7f4c3bb120 ("debian: run
"make check" with V=1 to keep blhc happy").

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: mark more files in e2fsprogs.install as only being present on Linux
Theodore Ts'o [Fri, 26 Jul 2019 00:07:45 +0000 (20:07 -0400)] 
debian: mark more files in e2fsprogs.install as only being present on Linux

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: update changelog for 1.45.3-3 release
Theodore Ts'o [Thu, 25 Jul 2019 19:38:59 +0000 (15:38 -0400)] 
debian: update changelog for 1.45.3-3 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: set E2FSCK_TIME correctly on a 32-bit arch with a 64-bit time_t
Theodore Ts'o [Thu, 25 Jul 2019 02:25:11 +0000 (22:25 -0400)] 
e2fsck: set E2FSCK_TIME correctly on a 32-bit arch with a 64-bit time_t

Addresses-Debian-Bug: #932906

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: mark logsave as Multi-Arch: foreign
Theodore Ts'o [Thu, 25 Jul 2019 01:54:23 +0000 (21:54 -0400)] 
debian: mark logsave as Multi-Arch: foreign

Also fix logsave so it is Architecure: any.  It was previously
"linux-any kfreebsd-any" due to a cut-and-paste error.

Addresses-Debian-Bug: #932876

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: fix Breaks/Replace dependency for logsave
Theodore Ts'o [Thu, 25 Jul 2019 01:50:24 +0000 (21:50 -0400)] 
debian: fix Breaks/Replace dependency for logsave

Addresses-Debian-Bug: #932874

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: only install the udev and systemd files to e2fsprogs on Linux systems
Theodore Ts'o [Thu, 25 Jul 2019 01:31:20 +0000 (21:31 -0400)] 
debian: only install the udev and systemd files to e2fsprogs on Linux systems

Otherwise it will fail to build on hurd and kfreebsd.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: run "make check" with V=1 to keep blhc happy
Theodore Ts'o [Thu, 25 Jul 2019 00:40:19 +0000 (20:40 -0400)] 
debian: run "make check" with V=1 to keep blhc happy

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: update changelog for 1.45.3-2 release
Theodore Ts'o [Wed, 24 Jul 2019 17:19:10 +0000 (13:19 -0400)] 
debian: update changelog for 1.45.3-2 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: add a hard dependency on logsave to e2fsprogs
Theodore Ts'o [Wed, 24 Jul 2019 16:20:11 +0000 (12:20 -0400)] 
debian: add a hard dependency on logsave to e2fsprogs

The initramfs created by the initramfs-tools package needs logsave and
assumes it comes along with e2fsprogs.  If it is not present, the
result systems which will fail to boot.  Fix this by adding the
dependency.

In the future initramfs-tools will explicitly ask for logsave (tracked
in Debian Bug: #932854), but we'll need to keep this dependency until
the next stable release of Debian.

Addresses-Debian-Bug: #932855
Addresses-Debian-Bug: #932859
Addresses-Debian-Bug: #932861
Addresses-Debian-Bug: #932881
Addresses-Debian-Bug: #932888

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update fr.po (from translationproject.org)
Samuel Thibault [Sun, 21 Jul 2019 23:33:33 +0000 (19:33 -0400)] 
po: update fr.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: update to standards version 4.4.0
Theodore Ts'o [Sun, 21 Jul 2019 19:08:14 +0000 (15:08 -0400)] 
debian: update to standards version 4.4.0

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all_cron: check to make sure e2scrub_all exists
Theodore Ts'o [Sun, 21 Jul 2019 17:13:24 +0000 (13:13 -0400)] 
e2scrub_all_cron: check to make sure e2scrub_all exists

Since e2scrub_all.cron is marked as a config file, it can hang around
after the package is removed, in which case e2scrub_all might not be
present.  So check to make sure e2scrub_all exists before trying to
execute it.

Addresses-Debian-Bug: #932622

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Laurent Bigonville <bigon@debian.org>
4 years agopo: update pt.po (from translationproject.org)
Pedro Albuquerque [Sun, 21 Jul 2019 16:53:10 +0000 (12:53 -0400)] 
po: update pt.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Sat, 20 Jul 2019 20:32:18 +0000 (16:32 -0400)] 
po: update uk.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update sv.po (from translationproject.org)
Göran Uddeborg [Sat, 20 Jul 2019 20:32:18 +0000 (16:32 -0400)] 
po: update sv.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Sat, 20 Jul 2019 20:32:18 +0000 (16:32 -0400)] 
po: update pl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Sat, 20 Jul 2019 20:32:17 +0000 (16:32 -0400)] 
po: update de.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Sat, 20 Jul 2019 20:32:17 +0000 (16:32 -0400)] 
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoFinal updates to release notes, etc., for the v1.45.3 release v1.45.3
Theodore Ts'o [Sun, 14 Jul 2019 20:47:09 +0000 (16:47 -0400)] 
Final updates to release notes, etc., for the v1.45.3 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: add help text to e2fsprogs.pot explaining ix-nay on positional indicators
Theodore Ts'o [Mon, 15 Jul 2019 00:57:51 +0000 (20:57 -0400)] 
po: add help text to e2fsprogs.pot explaining ix-nay on positional indicators

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 15 Jul 2019 00:45:46 +0000 (20:45 -0400)] 
po: update nl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Mon, 15 Jul 2019 00:45:46 +0000 (20:45 -0400)] 
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agofuse2fs: stop using the nonempty option by default
Theodore Ts'o [Sun, 14 Jul 2019 16:03:29 +0000 (12:03 -0400)] 
fuse2fs: stop using the nonempty option by default

The nonempty option isn't supported by fuse3, and so if fusermount is
from fuse3, having fuse2fs specify nonempty automatically will prevent
fuse2fs from working correctly.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agofuse2fs: install fuse2fs in /usr/bin instead of /usr/sbin
Theodore Ts'o [Sun, 14 Jul 2019 15:05:47 +0000 (11:05 -0400)] 
fuse2fs: install fuse2fs in /usr/bin instead of /usr/sbin

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: add lintian override to suppress a false positive
Theodore Ts'o [Sun, 14 Jul 2019 14:44:23 +0000 (10:44 -0400)] 
debian: add lintian override to suppress a false positive

Suppress the false positive:

   e2fsprogs: package-supports-alternative-init-but-no-init.d-script

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebugfs: clean up gcc -Wall warning from using snprintf
Theodore Ts'o [Sun, 14 Jul 2019 14:41:36 +0000 (10:41 -0400)] 
debugfs: clean up gcc -Wall warning from using snprintf

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotests: suppress e2image version number from being printed
Theodore Ts'o [Sat, 13 Jul 2019 21:44:20 +0000 (17:44 -0400)] 
tests: suppress e2image version number from being printed

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotests: fix test_script so that it will run all tests if w/o arguments
Theodore Ts'o [Sat, 13 Jul 2019 21:42:30 +0000 (17:42 -0400)] 
tests: fix test_script so that it will run all tests if w/o arguments

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: drop "new-essential-package" lintian override
Theodore Ts'o [Sat, 13 Jul 2019 21:40:22 +0000 (17:40 -0400)] 
debian: drop "new-essential-package" lintian override

This is no longer necessary, since e2fsprogs is no longer considered
an "essential" package.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: move logsave to its own package
Theodore Ts'o [Sat, 13 Jul 2019 21:29:32 +0000 (17:29 -0400)] 
debian: move logsave to its own package

Addresses-Debian-Bug: #923372
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoUpdate release notes, etc., for the 1.45.3 release
Theodore Ts'o [Sat, 13 Jul 2019 20:55:30 +0000 (16:55 -0400)] 
Update release notes, etc., for the 1.45.3 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: convert from using dh_movefiles to dh_install
Theodore Ts'o [Sat, 13 Jul 2019 19:58:56 +0000 (15:58 -0400)] 
debian: convert from using dh_movefiles to dh_install

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: add xgettext:no-c-format tags
Theodore Ts'o [Sat, 13 Jul 2019 17:49:34 +0000 (13:49 -0400)] 
e2fsck: add xgettext:no-c-format tags

The xgettext program is incorrectly marking e2fsck problem
descriptions as being c-style printf strings.  Override its mistakes.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: remove unnecessary/buggy positional parameter specifiers
Theodore Ts'o [Sat, 13 Jul 2019 16:49:26 +0000 (12:49 -0400)] 
po: remove unnecessary/buggy positional parameter specifiers

The strings in e2fsck/problem.c use a special %-expansion scheme,
where %b gets expanded to a block number, %i gets expanded to an inode
number, etc., where these values are in a problem context data
structure.  As such, there is no need to use a printf style positional
indicator (e.g., %2$s).  Indeed, the use of things like %1$i or %2$b
will cause the %-expansion code to just print %1$i or %2$b, instead of
the inode or block number, respectively.

Addresses-Debian-Bug: #892173

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: Philipp Thomas <pth@suse.de>
Cc: Benno Schulenberg <vertaling@coevern.nl>
Cc: Trần Ngọc Quân <vnwildman@gmail.com>
Cc: Petr Pisar <petr.pisar@atlas.cz>
4 years agoe2scrub_all: only run in service mode when periodic_e2scrub=1
Theodore Ts'o [Thu, 11 Jul 2019 23:41:56 +0000 (19:41 -0400)] 
e2scrub_all: only run in service mode when periodic_e2scrub=1

By default, e2scrub_all will not actually trigger online scrubs unless
periodic_e2scrub=1 is set in /etc/e2scrub.conf.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: drop special case CFLAGS for Alpha and PowerMac architectures
Theodore Ts'o [Thu, 11 Jul 2019 22:19:52 +0000 (18:19 -0400)] 
debian: drop special case CFLAGS for Alpha and PowerMac architectures

Defining HAVE_NETINET_IN_H for Alpha and __NO_STRING_INLINES for the
PowerMac QUICK bootloader date back to over two decades, to 1997 and
1998, respectively.  These two architectures are no longer supported
by Debian, and it's not clear they are actually needed in 2019 even
for someone building for these architectures.  So let's drop them and
see if anyone complains (or notices).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: fix "e2scurb_all -r"
Theodore Ts'o [Thu, 11 Jul 2019 17:28:05 +0000 (13:28 -0400)] 
e2scrub_all: fix "e2scurb_all -r"

The e2scrub_all program was broken by commit c7d6525ecaab
("e2scrub_all: refactor device probe loop") so that it would use the
path of the snapshot volume instead of the base volume.  This caused
"e2scrub_all -r" to pass the wrong pathname to e2scrub, with the
result that e2scrub would abort with an error instead of removing the
snapshot volume.

Fixes: c7d6525ecaab ("e2scrub_all: refactor device probe loop")
Addresses-Debian-Bug: #931679
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoutil: add a script gen-git-tarball to generate a release tarball from git
Theodore Ts'o [Thu, 11 Jul 2019 16:24:02 +0000 (12:24 -0400)] 
util: add a script gen-git-tarball to generate a release tarball from git

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: convert debian/rules to use dh
Theodore Ts'o [Thu, 11 Jul 2019 04:06:07 +0000 (00:06 -0400)] 
debian: convert debian/rules to use dh

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: drop support for not building the e2fsck-static and udebs packages
Theodore Ts'o [Tue, 9 Jul 2019 23:04:20 +0000 (19:04 -0400)] 
debian: drop support for not building the e2fsck-static and udebs packages

The ability to not build udebs packages and e2fsck-static made sense
when we were doing a separate e2fsprogs builds for those packages.
Since we're not doing that any more, we can simplify things by
dropping that flexibility.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: drop support for Debian Jessie
Theodore Ts'o [Mon, 8 Jul 2019 04:32:25 +0000 (00:32 -0400)] 
debian: drop support for Debian Jessie

This allows us to drop the complexity needed to support debhelper v9
and the legacy -dbg packages.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: stop building a special version of e2fsprogs for e2fsprogs-udeb
Theodore Ts'o [Mon, 8 Jul 2019 03:38:25 +0000 (23:38 -0400)] 
debian: stop building a special version of e2fsprogs for e2fsprogs-udeb

Previously, we configured and built a separate version of e2fsprogs
for the e2fsprogs-udeb package.  This was important back when we still
cared about build floppies, but going to extra lengths to save 145k of
disk space isn't worth it any more.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: only require the udev, systemd, cron packages when build on Linux
Theodore Ts'o [Fri, 5 Jul 2019 01:21:34 +0000 (21:21 -0400)] 
debian: only require the udev, systemd, cron packages when build on Linux

Addresses-Debian-Bug: #931266

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: correctly handle the case where LUKS is stacked on an LV
Theodore Ts'o [Thu, 4 Jul 2019 15:39:45 +0000 (11:39 -0400)] 
e2scrub_all: correctly handle the case where LUKS is stacked on an LV

We handle the case where an LVM's PV is stacked on top of a dm-crypt
device, but not the case where it's the other way around, where a LVM
LV contains a LUKS encrypted file system.  Fix this oversight.

Addresses-Debian-Bug: #931387

Reported-by: Marc Haber <mh+debian-bugs@zugschlus.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: correctly handle inline directories when large_dir is enabled.
Artem Blagodarenko [Fri, 14 Jun 2019 14:42:37 +0000 (17:42 +0300)] 
e2fsck: correctly handle inline directories when large_dir is enabled.

Historically, e2fsck has required that directories not contain holes.
(In fact, as of this writing, ext4 still requires this to be the
case.)  Commit ae9efd05a98 ("e2fsck: 3 level hash tree directory
optimization") removed this requirement if the large_dir feature is
enabled; however, the way it was done caused it to incorrectly handle
inline directories.

To reproduce the problem fixed by this commit:

truncate -s 100000000 ext4.img
misc/mke2fs -t ext4 -I 512 -O 'inline_data,large_dir' ext4.img
mkdir m
sudo mount ext4.img m
mkdir m/aa
sudo umount m
e2fsck/e2fsck -f -n ext4.img

The last command gives this output:

[root@localhost e2fsprogs-kernel]# e2fsck/e2fsck -f -n ext4-2.img
e2fsck 1.45.2 (27-May-2019)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
'..' in /aa (12) is <The NULL inode> (0), should be / (2).
Fix? no

Pass 4: Checking reference counts
Inode 2 ref count is 4, should be 3.  Fix? no

Inode 12 ref count is 2, should be 1.  Fix? no

Pass 5: Checking group summary information

ext4-2.img: ********** WARNING: Filesystem still has errors **********

ext4-2.img: 12/24384 files (0.0% non-contiguous), 17874/97656 blocks

Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Artem Blagodarenko <c17828@cray.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoFix posix_memalign and posix_fadvise calls.
Theodore Ts'o [Fri, 7 Jun 2019 17:07:12 +0000 (13:07 -0400)] 
Fix posix_memalign and posix_fadvise calls.

Almost all posix_ functions return a positive errno value (without
setting errno) rather than -1 and setting errno. Most calls in this
project were correct, but these two weren't.

Reported-by: Hughes <enh@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: remove -C from e2scrub_all
Darrick J. Wong [Tue, 4 Jun 2019 04:27:12 +0000 (21:27 -0700)] 
e2scrub: remove -C from e2scrub_all

We already have the "SERVICE_MODE=1" feature that signals to e2scrub
that we're running as a background daemon and therefore we should exit
quietly if conditions aren't right.

It's therefore unnecessary to have a separate -C flag to achieve the
same outcome for cron jobs.  Merge the two together.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update pt.po (from translationproject.org)
Pedro Albuquerque [Thu, 30 May 2019 21:05:57 +0000 (17:05 -0400)] 
po: update pt.po (from translationproject.org)

Note: This fixes the yes/no matching strings for mke2fs and tune2fs if
Portuguese is in use.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agotests: add test for e2fsck of verity file
Eric Biggers [Tue, 28 May 2019 23:12:30 +0000 (16:12 -0700)] 
tests: add test for e2fsck of verity file

Test that e2fsck doesn't report errors when an inode with the 'verity'
flag has blocks past i_size.

This is a regression test for commits 3baafde6a8ae ("e2fsck: allow
verity files to have initialized blocks past i_size") and 43466d039689
("e2fsck: handle verity files in scan_extent_node()").

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoUpdate release notes, etc., for the 1.45.2 release v1.45.2
Theodore Ts'o [Tue, 28 May 2019 02:10:51 +0000 (22:10 -0400)] 
Update release notes, etc., for the 1.45.2 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update the binary gmo files
Theodore Ts'o [Tue, 28 May 2019 00:05:54 +0000 (20:05 -0400)] 
po: update the binary gmo files

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agomke2fs: accept the english yes character to the proceed question
Theodore Ts'o [Mon, 27 May 2019 23:36:15 +0000 (19:36 -0400)] 
mke2fs: accept the english yes character to the proceed question

In some cases if the translation file is missing some translations,
mke2fs can end up printing an English message, e.g.:

% LANG=it_IT.UTF-8 ./mke2fs /tmp/foo.img 8M
mke2fs 1.45.1 (12-May-2019)
/tmp/foo.img contiene un file system ext4
created on Mon May 27 19:35:48 2019
Proceed anyway? (y,N)

However, if there is a translation for string to match with "yY"
(e.g., to "sS" for Italian), then 'y' won't work.  Fix this by falling
back to the english 'yY' characters.

Addresses-Debian-Bug: #907034
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update ms.po (from translationproject.org)
Sharuzzaman Ahmat Raslan [Mon, 27 May 2019 04:24:01 +0000 (00:24 -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, 27 May 2019 04:24:01 +0000 (00:24 -0400)] 
po: update es.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: handle verity files in scan_extent_node()
Eric Biggers [Thu, 23 May 2019 15:30:33 +0000 (08:30 -0700)] 
e2fsck: handle verity files in scan_extent_node()

Don't report PR_1_EXTENT_END_OUT_OF_BOUNDS on verity files during
scan_extent_node(), since they will have blocks stored past i_size.

This was missed during the earlier fix because this check only triggers
if the inode has enough extents to need at least one extent index node.

This bug is causing one of the fs-verity xfstests to fail with the
reworked fs-verity patchset.

Fixes: 3baafde6a8ae ("e2fsck: allow verity files to have initialized blocks past i_size")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoconfigure: fix test where cron is not installed on a non-systemd system
Theodore Ts'o [Wed, 22 May 2019 17:03:38 +0000 (13:03 -0400)] 
configure: fix test where cron is not installed on a non-systemd system

Reported-by: thomas@linuxfromscratch.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: add new Portuguese translation from the Translation Project
Theodore Ts'o [Wed, 22 May 2019 16:33:55 +0000 (12:33 -0400)] 
po: add new Portuguese translation from the Translation Project

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update sv.po (from translationproject.org)
Göran Uddeborg [Wed, 22 May 2019 16:31:37 +0000 (12:31 -0400)] 
po: update sv.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agodebian: update changelog for maintenance releases
Theodore Ts'o [Wed, 22 May 2019 16:31:04 +0000 (12:31 -0400)] 
debian: update changelog for maintenance releases

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: fix missing getopts argument which broke e2scrub_all -C
Theodore Ts'o [Tue, 21 May 2019 00:34:59 +0000 (20:34 -0400)] 
e2scrub_all: fix missing getopts argument which broke e2scrub_all -C

Addresses-Debian-Bug: #929287

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: fix grammar nit: "a LVM" -> "an LVM"
Theodore Ts'o [Mon, 20 May 2019 14:56:51 +0000 (10:56 -0400)] 
e2scrub: fix grammar nit: "a LVM" -> "an LVM"

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Sun, 19 May 2019 03:32:30 +0000 (23:32 -0400)] 
po: update uk.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Sun, 19 May 2019 03:32:29 +0000 (23:32 -0400)] 
po: update pl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Sun, 19 May 2019 03:32:29 +0000 (23:32 -0400)] 
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub_all: avoid scrubbing all devices when there is nothing to scrub
Theodore Ts'o [Sun, 19 May 2019 03:04:49 +0000 (23:04 -0400)] 
e2scrub_all: avoid scrubbing all devices when there is nothing to scrub

Running lsblk when there are no valid block devicse results in
generating all block devices as the list of devices to scrub; this
results in a lot of e2scrub_all failures.

Addresses-Debian-Bug: #929186

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: stop cron spam if lvm2 is not installed.
Theodore Ts'o [Thu, 16 May 2019 18:56:37 +0000 (14:56 -0400)] 
e2scrub: stop cron spam if lvm2 is not installed.

Addresses-Debian-Bug: #928977

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoUpdate release notes, etc., for the 1.45.1 release v1.45.1
Theodore Ts'o [Mon, 13 May 2019 01:10:29 +0000 (21:10 -0400)] 
Update release notes, etc., for the 1.45.1 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: remove an potentially ambiguous dangling else clause
Theodore Ts'o [Fri, 10 May 2019 23:21:03 +0000 (19:21 -0400)] 
e2fsck: remove an potentially ambiguous dangling else clause

This doesn't actually fix a bug or change behavior, but it removes a
clang warning.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: hide struct ext2fs_hashmap as an internal implementation detail
Theodore Ts'o [Fri, 10 May 2019 23:00:13 +0000 (19:00 -0400)] 
libext2fs: hide struct ext2fs_hashmap as an internal implementation detail

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agomke2fs: fix memory leak when parsing encoding flags
Theodore Ts'o [Fri, 10 May 2019 18:38:24 +0000 (14:38 -0400)] 
mke2fs: fix memory leak when parsing encoding flags

Also fix extended-options usage string.

Addresses-Coverity-Bug: 1444984
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: fix printf format / argument mismatches
Theodore Ts'o [Fri, 10 May 2019 18:26:27 +0000 (14:26 -0400)] 
e2fsck: fix printf format / argument mismatches

Fixes-Coverity-Bug: 1444982
Fixes-Coverity-Bug: 1444983
Fixes-Coverity-Bug: 1444985
Fixes-Coverity-Bug: 1444986
Fixes-Coverity-Bug: 1444987
Fixes-Coverity-Bug: 1444988
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agolibext2fs: add missing check for utf8lookup()'s return value
Theodore Ts'o [Fri, 10 May 2019 18:18:12 +0000 (14:18 -0400)] 
libext2fs: add missing check for utf8lookup()'s return value

Fixes-Coverity-Bug: 1442630
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
4 years agoFix parallel install issue in scrub subdir
Michael Haubenwallner [Tue, 7 May 2019 12:49:25 +0000 (14:49 +0200)] 
Fix parallel install issue in scrub subdir

In scrub/Makefile the various 'install-*' targets do not explicitly
depend on their corresponding 'installdirs-*' target, so they get run
in parallel.

Addresses-Gentoo-Bug: #680030

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: fix XML validity problem with the problem log
Theodore Ts'o [Fri, 10 May 2019 17:20:59 +0000 (13:20 -0400)] 
e2fsck: fix XML validity problem with the problem log

Also fix a gcc warning.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoUpdate release notes, etc., for the 1.45.1-rc1 release v1.45.1-rc1
Theodore Ts'o [Mon, 6 May 2019 23:12:58 +0000 (19:12 -0400)] 
Update release notes, etc., for the 1.45.1-rc1 release

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: add support for saving the problem code log
Theodore Ts'o [Mon, 6 May 2019 05:10:53 +0000 (01:10 -0400)] 
e2fsck: add support for saving the problem code log

Add the ability to save a log of problems found by e2fsck in a log
file that can be specified via /etc/e2fsck.conf.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: make the e2scrub service files require CAP_SYS_ADMIN and CAP_SYS_RAWIO
Theodore Ts'o [Mon, 6 May 2019 02:26:04 +0000 (22:26 -0400)] 
e2scrub: make the e2scrub service files require CAP_SYS_ADMIN and CAP_SYS_RAWIO

Addresses-Debian-Bug: #926138

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2scrub: tag the *.e2scrub LV's with UDISK_IGNORE in udev
Theodore Ts'o [Mon, 6 May 2019 02:00:16 +0000 (22:00 -0400)] 
e2scrub: tag the *.e2scrub LV's with UDISK_IGNORE in udev

Force the *.e2scrub LV's to be ignored by udisk.

Addresses-Debian-Bug: #926112

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agomke2fs: fix check for absurdly large devices
Andreas Dilger [Sun, 5 May 2019 22:33:46 +0000 (18:33 -0400)] 
mke2fs: fix check for absurdly large devices

The check in mke2fs is intended to be for the number of blocks in the
filesystem exceeding the maximum number of addressable blocks in 2^32
bitmaps, which is (2^32 * 8 bits/byte * blocksize) = 2^47 blocks,
or 2^59 bytes = 512PiB for the common 4KiB blocksize.

However, s_log_blocksize holds log2(blocksize_in_kb), so the current
calculation is a factor of 2^10 too small.  This caused mke2fs to fail
while trying to format a 900TB filesystem.

Fixes: 101ef2e93c25 ("mke2fs: Avoid crashes / infinite loops for absurdly large devices")
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
4 years agoe2fsck: check and fix tails of all bitmap blocks
Theodore Ts'o [Sun, 5 May 2019 20:43:33 +0000 (16:43 -0400)] 
e2fsck: check and fix tails of all bitmap blocks

Currently, e2fsck effectively checks only tail of the last inode and
block bitmap in the filesystem. Thus if some previous bitmap has unset
bits it goes unnoticed.  Mostly these tail bits in the bitmap are
ignored; however, if blocks_per_group are smaller than 8*blocksize,
the multi-block allocator in the kernel can get confused when the tail
bits are unset and return bogus free extent.

Add support to libext2fs to check these bitmap tails when loading
bitmaps (as that's about the only place which has access to the bitmap
tail bits) and make e2fsck use this functionality to detect buggy bitmap
tails and fix them (by rewriting the bitmaps).

Reported-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
4 years agodebian: update libext2fs2.symbols file
Theodore Ts'o [Sun, 5 May 2019 02:51:43 +0000 (22:51 -0400)] 
debian: update libext2fs2.symbols file

Update to reflect changes to avoid leaking utf8 and nls symbols into
the namespace.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibext2fs: move struct ext2fs_nls_table to the private ext2fsP.h header
Theodore Ts'o [Fri, 3 May 2019 20:42:36 +0000 (16:42 -0400)] 
libext2fs: move struct ext2fs_nls_table to the private ext2fsP.h header

Callers of libext2fs don't need to use this structure, and this gives
us the ability to change it later on without worrying about
changing public ABI's.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoRename the feature "fname_encoding" to be "casefold".
Theodore Ts'o [Fri, 3 May 2019 17:16:29 +0000 (13:16 -0400)] 
Rename the feature "fname_encoding" to be "casefold".

Also change mke2fs so that the encoding and encoding flags are
specified in mke2fs.conf in the fs_types and defaults stanzas instead
of the options stanza.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agodebugfs: teach set_super_value how to set the s_encoding field
Theodore Ts'o [Thu, 2 May 2019 17:19:01 +0000 (13:19 -0400)] 
debugfs: teach set_super_value how to set the s_encoding field

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibe2p: print the filename character encoding in list_super[2]
Theodore Ts'o [Thu, 2 May 2019 15:48:45 +0000 (11:48 -0400)] 
libe2p: print the filename character encoding in list_super[2]

Also clean up some gcc -Wall warnings while we're at it.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibext2fs: remove utf8_* namespace contamination
Theodore Ts'o [Mon, 29 Apr 2019 13:15:48 +0000 (09:15 -0400)] 
libext2fs: remove utf8_* namespace contamination

Merge nls_utf8-norm.c and nls_utf8.c.  This also allows us to comment
out functions which we don't actually need for e2fsprogs.

Also fix some gcc -Wall complaints, including one which would have
caused utf8_casefold() to misbehave (this was fixed in the kernel, but
not carried back to e2fsprogs).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibext2fs: remove nls_* namespace contamination
Theodore Ts'o [Mon, 29 Apr 2019 02:04:10 +0000 (22:04 -0400)] 
libext2fs: remove nls_* namespace contamination

Also remove nls.h, and avoid declaring static functions and variables
in a header file, which is wasteful of space.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibext2fs: remove unused variable 'old_flags'
Eric Biggers [Mon, 29 Apr 2019 00:37:45 +0000 (20:37 -0400)] 
libext2fs: remove unused variable 'old_flags'

In ext2fs_write_inode2(), the 'old_flags' variable is never used.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agodebugfs: remove unused variable 'tmp_inode'
Eric Biggers [Mon, 29 Apr 2019 00:37:21 +0000 (20:37 -0400)] 
debugfs: remove unused variable 'tmp_inode'

In parse_inode_csum(), the outer 'tmp_inode' variable is never used.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agolibext2fs: remove unused variable 'buff'
Eric Biggers [Mon, 22 Apr 2019 21:08:43 +0000 (14:08 -0700)] 
libext2fs: remove unused variable 'buff'

In ext2fs_dirhash2(), the outer 'buff' variable is never used.

Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agodebugfs: fix encoding handling in dx_hash command
Eric Biggers [Mon, 29 Apr 2019 00:35:21 +0000 (20:35 -0400)] 
debugfs: fix encoding handling in dx_hash command

Fix the following bugs:

1. 'encoding' and 'hash_flags' are not initialized, causing a segfault.

2. 'hash_flags' incorrectly uses a __bitwise type.

3. The optstring doesn't contain "c" or "e", so the -c and -e options
   aren't recognized.

4. The code that handles the -e option always returns.

Fixes: ef733f1a97ec ("debugfs: support encoding when printing the file hash")
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agodebugfs: avoid ambiguity when printing filenames
Eric Biggers [Sun, 28 Apr 2019 23:42:41 +0000 (19:42 -0400)] 
debugfs: avoid ambiguity when printing filenames

The way debugfs escapes filenames is ambiguous because a sequence like
M-A can mean either the byte 'A' + 128 == 0xc1 or the three bytes
{'M', '-', 'A'}.  Similarly, ^A can mean either the byte
'A' ^ 0x40 == 0x01 or the two bytes {'^', 'A'}.

Fix this and simplify the code by switching to a simpler strategy where
all bytes < 32, all bytes >= 127, and backslash are encoded with C-style
hex escape sequences.  E.g., the byte 0xc1 will now be encoded as \xc1
rather than M-A as it was before, while a filename consisting of the
three bytes {'M', '-', 'A'} will continue to be shown as M-A.

I want to fix this mainly because I want to use debugfs to retrieve raw
encrypted filenames for ciphertext verification tests.  But this doesn't
work if the returned filenames are ambiguous.

Fixes: 68a1de3df340 ("debugfs: pretty print encrypted filenames in the ls command")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext4.5.in: document design changes on the casefold attribute
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 20:53:08 +0000 (16:53 -0400)] 
ext4.5.in: document design changes on the casefold attribute

Document the fact that the encoding support is only used by directories
with the +F attribute.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: drop ASCII NLS support
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 20:52:12 +0000 (16:52 -0400)] 
ext2fs: drop ASCII NLS support

As agreed on the kernel side, ext4 will only support utf8 for now, and
not plain ASCII, so we don't need this anymore.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: drop Unicode normalization support
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 20:48:01 +0000 (16:48 -0400)] 
ext2fs: drop Unicode normalization support

No longer necessary after +F design change.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: don't normalize names on -F directories
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 20:45:41 +0000 (16:45 -0400)] 
ext2fs: don't normalize names on -F directories

As agreed on the new design, even if fname_encoding is enabled,
directories entries who aren't owned by a +F directory will not be
normalized.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: nls: Update to unicode 12.1.0
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 20:33:36 +0000 (16:33 -0400)] 
ext2fs: nls: Update to unicode 12.1.0

Since we didn't release a kernel version that supports version 11.0.0,
it should be safe to reuse the sb entry for version 12.1.0.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: merge sparse fixes for unicode normalization
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 19:12:12 +0000 (15:12 -0400)] 
ext2fs: merge sparse fixes for unicode normalization

The sparse script complained about the following issues in the kernel
version of this script.  This patch port the fixes to the userspace
version.

sparse warnings: (new ones prefixed by >>)

>> fs/unicode/utf8-norm.c:41:24: sparse: non-ANSI function declaration
   of function 'utf8version_latest'

vim +/utf8version_latest +41 fs/unicode/utf8-norm.c

  40
> 41 int utf8version_latest()
  42 {
  43 return utf8vers;
  44 }
  45 EXPORT_SYMBOL(utf8version_latest);
  46

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
5 years agoext2fs: fix potential null dereference in utf8nlookup
Gabriel Krisman Bertazi [Sun, 28 Apr 2019 19:10:21 +0000 (15:10 -0400)] 
ext2fs: fix potential null dereference in utf8nlookup

Delay the access of data->offset until after the null check.  This was
reported by 0-day on the kernel version of the script.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>