Commit Graph

6329 Commits

Author SHA1 Message Date
Petr Pisar
3adb12978a po: update cs.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-20 16:32:17 -04:00
Theodore Ts'o
1f56fb8123 Final updates to release notes, etc., for the v1.45.3 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 21:03:14 -04:00
Theodore Ts'o
f4ddd7526b po: add help text to e2fsprogs.pot explaining ix-nay on positional indicators
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 20:58:49 -04:00
Benno Schulenberg
d3543bfba4 po: update nl.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 20:58:49 -04:00
Petr Pisar
bad962c68e po: update cs.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 20:58:49 -04:00
Theodore Ts'o
aa6d326079 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>
2019-07-14 12:03:29 -04:00
Theodore Ts'o
b71150355d fuse2fs: install fuse2fs in /usr/bin instead of /usr/sbin
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 11:05:47 -04:00
Theodore Ts'o
1869dac75d 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>
2019-07-14 10:44:23 -04:00
Theodore Ts'o
9b96524174 debugfs: clean up gcc -Wall warning from using snprintf
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 10:41:36 -04:00
Theodore Ts'o
2c471c3074 tests: suppress e2image version number from being printed
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-14 10:07:24 -04:00
Theodore Ts'o
2760eed22a tests: fix test_script so that it will run all tests if w/o arguments
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-13 17:42:30 -04:00
Theodore Ts'o
194efee4a9 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>
2019-07-13 17:40:22 -04:00
Theodore Ts'o
bb788de9b0 debian: move logsave to its own package
Addresses-Debian-Bug: #923372
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-13 17:29:32 -04:00
Theodore Ts'o
61f8f51aac Update release notes, etc., for the 1.45.3 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-13 17:01:26 -04:00
Theodore Ts'o
e98cdafb55 debian: convert from using dh_movefiles to dh_install
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-13 15:58:56 -04:00
Theodore Ts'o
5684ef8ed9 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>
2019-07-13 13:49:34 -04:00
Theodore Ts'o
aa773f8083 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>
2019-07-13 13:28:23 -04:00
Theodore Ts'o
f63a7add6b 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>
2019-07-11 19:41:56 -04:00
Theodore Ts'o
15c23fed7b 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>
2019-07-11 18:19:52 -04:00
Theodore Ts'o
9b2c33f9da e2scrub_all: fix "e2scurb_all -r"
The e2scrub_all program was broken by commit c7d6525eca
("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: c7d6525eca ("e2scrub_all: refactor device probe loop")
Addresses-Debian-Bug: #931679
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-11 17:47:07 -04:00
Theodore Ts'o
71b499538b util: add a script gen-git-tarball to generate a release tarball from git
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-11 12:24:02 -04:00
Theodore Ts'o
336ac18483 debian: convert debian/rules to use dh
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-07-11 00:06:07 -04:00
Theodore Ts'o
922a40cf7a 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>
2019-07-09 19:04:20 -04:00
Theodore Ts'o
11155f391c 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>
2019-07-08 00:33:25 -04:00
Theodore Ts'o
3b6058affd 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>
2019-07-07 23:38:25 -04:00
Theodore Ts'o
a3819ca165 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>
2019-07-04 21:21:34 -04:00
Theodore Ts'o
73c74fe26e 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>
2019-07-04 15:25:24 -04:00
Artem Blagodarenko
10c5c5e564 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 ae9efd05a9 ("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>
2019-06-19 23:14:39 -04:00
Theodore Ts'o
c2eedf431e 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>
2019-06-07 13:07:12 -04:00
Darrick J. Wong
6ec2060a29 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>
2019-06-04 13:53:13 -04:00
Pedro Albuquerque
cc035a95a2 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>
2019-05-30 17:08:17 -04:00
Eric Biggers
0e660ee145 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 3baafde6a8 ("e2fsck: allow
verity files to have initialized blocks past i_size") and 43466d0396
("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>
2019-05-30 17:08:08 -04:00
Theodore Ts'o
40aa2743b5 Update release notes, etc., for the 1.45.2 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-27 22:21:49 -04:00
Theodore Ts'o
2638a78bba po: update the binary gmo files
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-27 20:05:54 -04:00
Theodore Ts'o
0e0dad426a 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>
2019-05-27 19:36:15 -04:00
Sharuzzaman Ahmat Raslan
b6ee243576 po: update ms.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-27 15:10:31 -04:00
Antonio Ceballos
a1694bda21 po: update es.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-27 15:10:31 -04:00
Eric Biggers
43466d0396 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: 3baafde6a8 ("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>
2019-05-27 15:10:31 -04:00
Theodore Ts'o
188bf39acf 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>
2019-05-27 15:10:31 -04:00
Theodore Ts'o
c0d5e63376 po: add new Portuguese translation from the Translation Project
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-27 15:10:20 -04:00
Göran Uddeborg
1753555aeb po: update sv.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-22 12:31:37 -04:00
Theodore Ts'o
30d90608b8 debian: update changelog for maintenance releases
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-22 12:31:04 -04:00
Theodore Ts'o
cf62b892eb e2scrub_all: fix missing getopts argument which broke e2scrub_all -C
Addresses-Debian-Bug: #929287

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-20 20:34:59 -04:00
Theodore Ts'o
6cf9a7f03f e2scrub: fix grammar nit: "a LVM" -> "an LVM"
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-20 10:56:51 -04:00
Yuri Chornoivan
e712a7ca90 po: update uk.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-18 23:44:02 -04:00
Jakub Bogusz
93d058dc3e po: update pl.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-18 23:44:02 -04:00
Petr Pisar
6da5f5242a po: update cs.po (from translationproject.org)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-18 23:44:02 -04:00
Theodore Ts'o
fbb9bfa4a5 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>
2019-05-18 23:43:55 -04:00
Theodore Ts'o
9d41a057d9 e2scrub: stop cron spam if lvm2 is not installed.
Addresses-Debian-Bug: #928977

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-18 21:43:57 -04:00
Theodore Ts'o
2a214d1bba Update release notes, etc., for the 1.45.1 release
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-05-12 21:23:53 -04:00