Commit Graph

13496 Commits

Author SHA1 Message Date
Karel Zak 73ec5e164c libfdisk: fix fdisk_script_get_table()
Make sure we never return NULL and we reuse the table in code.

Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-17 15:46:10 +02:00
Karel Zak 9335bfc845 libfdisk: (docs) add notes about fdisk_enable_wipe()
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-17 15:46:10 +02:00
Karel Zak bfdca6d728 libfdisk: add fdisk_script_set_table()
This small change improves possibility to modify by script described
PT and use script API in another tools as primary way to create
partitions.

All you need is to compose script by fdisk_script_set_header() and
fdisk_script_set_table() and than apply by fdisk_apply_script().

Requested-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-17 15:46:10 +02:00
Karel Zak cf3b6b71eb lscpu: add a new columns to --cache
References: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-17 15:46:10 +02:00
Karel Zak 0c93519e78 docs: we have 2019 already
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-17 12:55:25 +02:00
Karel Zak d4319b91c9 build-sys: release++ (v2.34)
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-14 12:34:10 +02:00
Karel Zak 8c00a9107f docs: update v2.34-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-14 12:32:22 +02:00
Karel Zak 213b3b98e2 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-14 12:30:20 +02:00
Karel Zak 43731e751f po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-14 12:18:19 +02:00
Boyuan Yang 0de2e6a7de po: update zh_CN.po (from translationproject.org) 2019-06-14 12:13:54 +02:00
Yuri Chornoivan e3478efa74 po: update uk.po (from translationproject.org) 2019-06-14 12:13:54 +02:00
Sebastian Rasmussen 2d5f607575 po: update sv.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Rafael Fontenelle daa531bc15 po: update pt_BR.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Jakub Bogusz 398e838ef3 po: update pl.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Takeshi Hamasaki e77ab61851 po: update ja.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Božidar Putanec 39fc89ad10 po: update hr.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Frédéric Marchal ee80e8ae21 po: update fr.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Antonio Ceballos Roa 087c91f509 po: update es.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Mario Blättermann 0024767e4b po: update de.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Joe Hansen 5e8ec215bb po: update da.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Petr Písař b4d0a5f0ab po: update cs.po (from translationproject.org) 2019-06-14 12:13:53 +02:00
Karel Zak d06ffd28d4 tests: update build-sys output
It seems, no more libgcc_s...

Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-14 12:06:58 +02:00
Karel Zak ed16c910be libsmartcols: fix docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-13 13:45:46 +02:00
Karel Zak 369e4c53a8 libmount: fix docs typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-13 13:45:39 +02:00
Karel Zak 303ff21ea7 rev: be careful with close()
Addresses: https://github.com/karelzak/util-linux/issues/807
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-13 12:59:39 +02:00
Karel Zak f5b7bf155b findmnt: (verify) ignore passno for XFS
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1719069
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-12 11:03:23 +02:00
Karel Zak 4a0e70663c lib/sysfs: fix reference counting for parent
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-11 12:11:32 +02:00
Karel Zak 41994e0097 cfdisk: free libfdisk items
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-11 11:22:39 +02:00
Karel Zak 6466959d9a fstrim: update man page, reuse libmnt_iter
* add info about read-only to the man page
* don't be systemd specific, people aso use crond
* reuse libmnt_iter

Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-11 11:05:12 +02:00
Karel Zak 49e1a33346 cfdisk: simplify code
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-11 10:54:22 +02:00
Stanislav Brabec 402006fa6e fstrim: properly de-duplicate fstrim -A
fstab can contain tag based mounts. De-duplication by source has to be
done after resolving the full source path.

Perform the table iteration twice. First time, prepare for
de-duplication, second time perform the TRIM itself.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2019-06-11 10:26:55 +02:00
Stanislav Brabec 2d22ac64e4 fstrim -a/-A: Skip read-only volumes
Calling TRIM on some read-only volumes can fail with:
fstrim: /win: FITRIM ioctl failed: Bad file descriptor

Skipping all read-only mounts seems to be safe and logical strategy.

Fixes opensuse#1106214.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2019-06-11 10:23:45 +02:00
Stanislav Brabec 4080be3d7d fstrim: Fix fstrim_all() comment
"convert LABEL=" does not happens in mnt_fs_get_source(), but later in
mnt_resolve_spec(). To make this more clean, move the comment before this
chunk of code.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2019-06-11 10:23:45 +02:00
Karel Zak 348f57d669 lib/canonicalize: fix compiler warning [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-10 11:00:38 +02:00
Karel Zak 2089538adb libmount: (docs) add reference to v2.33 and v2.34
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-07 12:37:28 +02:00
Karel Zak 36ad92c23e libsmartcols: (docs) add reference to v2.33 and v2.34
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-07 12:32:45 +02:00
Karel Zak cbfd67cfea libfdisk: (docs) add reference to v2.33
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-07 12:30:13 +02:00
Karel Zak bf0a0e3e2a umount: be more strict about --all
If you by accident execute

	umount ls -al /mnt/

then umount --all is executed and another arguments silently ignored.
It seems better to be more strict in this case.

Reported-by: Harald Dunkel <harald.dunkel@aixigo.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-06 14:56:48 +02:00
Karel Zak 33985f1149 wall: make sure ut_line is not empty
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1711574
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-06-06 12:33:03 +02:00
Milan Broz 73421b953e libblkid: fix detection of dm-integrity superblock version
Kernel 5.2 can use superblock version 3 for dm-integrity.
Let's remove the explicit version check to be compatible
with future extensions.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
2019-06-04 13:04:09 +02:00
Karel Zak f7c5507db6 hardlink: fix bad formatting in hardlink.1
* fix regex\f to regex\fR (issue #805)
* replace \fP with \fR to be consistent with our another man pages

Addresses: https://github.com/karelzak/util-linux/issues/805
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-31 11:57:29 +02:00
Karel Zak 3282593d30 docs: add lscpu --caches to ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-31 11:48:10 +02:00
Karel Zak 4de60aecad build-sys: release++ (v2.34-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-30 12:06:50 +02:00
Karel Zak f26ed90583 docs: update v2.34-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-30 12:01:36 +02:00
Karel Zak 0731ab5498 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-30 11:58:26 +02:00
Karel Zak c7033bbb12 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-30 11:54:20 +02:00
Božidar Putanec 18c630a27e po: update hr.po (from translationproject.org) 2019-05-30 11:49:43 +02:00
Karel Zak 9db442e954 libmount: add selinuxfs between pseudo filesystems
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-29 18:04:57 +02:00
Karel Zak 0e36d7c271 libmount: add bpf between pseudo filesystems
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-29 18:01:04 +02:00
Karel Zak 21d93094d4 findmnt: fix filters use on --list
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-05-29 17:59:33 +02:00