Thomas Weißschuh
8949ec930a
dmesg: use subsecond granularity in iso format
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-24 16:04:55 +00:00
Thomas Weißschuh
d1e5764c55
dmesg: add subsecond granularity for --since and --until
...
Fixes #1708
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-24 16:04:52 +00:00
Thomas Weißschuh
3214aa149e
dmesg: add test for --since and --until
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-24 16:04:41 +00:00
Thomas Weißschuh
ba5c3e7387
libblkid: bcachefs: validate device fields
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-19 19:17:25 +00:00
Thomas Weißschuh
4ad02a2566
libblkid: bcachefs: probe UUID_SUB
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-19 19:17:23 +00:00
Thomas Weißschuh
6409416869
libblkid: add bcachefs support
...
https://bcachefs.org/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-19 19:16:55 +00:00
Thomas Weißschuh
0d3bc6fdbd
waitpid: add support for already exited PIDs
2023-01-09 13:16:30 +00:00
Thomas Weißschuh
8528bd29aa
waitpid: add timeout support
2023-01-06 14:37:55 +00:00
Thomas Weißschuh
03a254f010
setarch: show current personality
2023-01-05 15:19:32 +00:00
Karel Zak
0e39aa22ba
Merge branch 'misc-utils-rename-symlink-paths' of https://github.com/ChickenProp/util-linux
...
* 'misc-utils-rename-symlink-paths' of https://github.com/ChickenProp/util-linux :
`rename -s` treats paths the same as without `-s`.
2023-01-05 13:03:46 +01:00
Karel Zak
449fa74ba6
Merge branch 'libblkid/cache' of https://github.com/t-8ch/util-linux
...
* 'libblkid/cache' of https://github.com/t-8ch/util-linux :
blkid: cache: add test
2023-01-05 12:09:37 +01:00
Karel Zak
c6e4a6e5d9
Merge branch 'waitpid' of https://github.com/t-8ch/util-linux
...
* 'waitpid' of https://github.com/t-8ch/util-linux :
waitpid: add new command
tests: add ts_skip_exitcode_not_supported
exitcodes: add EXIT_NOTSUPP
pidfd-utils: include wait.h for siginfo_t
2023-01-04 18:45:10 +01:00
Karel Zak
1958eb2530
tests: (column) add range and negative numbers column addresses
...
Addresses: https://github.com/util-linux/util-linux/issues/1700
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-04 14:08:46 +01:00
Thomas Weißschuh
550d32c49e
waitpid: add new command
...
This command implements waiting for the exit of multiple processes.
Especially it allows to wait for process that are not children of the
current process.
In contrast to wait(1P) it does not allow to retrieve the processes exit
codes.
2023-01-04 01:18:33 +00:00
Thomas Weißschuh
430be69412
blkid: cache: add test
2023-01-03 20:24:57 +00:00
Philip Hazelden
fa7abf332f
rename -s
treats paths the same as without -s
.
...
That is, it only updates the final path component, unless either the
expression or the replacement contains a '/'.
As discussed in #1962 .
2023-01-03 19:43:28 +00:00
Karel Zak
1411d65a88
tests: (libmount) update debug test
...
The debug mask is printed as 0x%06x number now.
References: 72e2f1ea8b7b90014118f4c9e55babb67528b986
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-03 12:58:42 +01:00
Karel Zak
0dfa892f02
tests: (libmount) remove unsupported test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-03 12:58:42 +01:00
Karel Zak
e71bd605c5
Merge branch 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linux
...
* 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linux :
libblkid: topology: probe diskseq
libblkid: topology: allow setting of 64bit values
lib/sysfs: allow parent redirect even for non-queue files
blockdev: add support for ioctl BLKGETDISKSEQ
libblkid: topology: add test
tests: functions: allow partitions on loopdevs
2023-01-02 13:32:58 +01:00
Thomas Weißschuh
0cb7e07830
libblkid: topology: probe diskseq
2022-12-28 12:34:20 +00:00
Thomas Weißschuh
be64edde48
libblkid: topology: add test
2022-12-28 04:34:50 +00:00
Thomas Weißschuh
4fa3633e87
tests: functions: allow partitions on loopdevs
...
This allow us the add partition to the test devices.
2022-12-28 04:34:50 +00:00
Thomas Weißschuh
4848c9c0ea
procfs: get_stat_nth: handle braces in process name
...
In procfs_process_get_stat_nth() we skip to the end of the process name
by looking for the ')' after it.
However if the process name itself contains a ')' then find that instead
of the correct one.
By searching the ')' from the end of the file we can make sure to always
find the correct one.
Link: https://www.openwall.com/lists/oss-security/2022/12/21/6
2022-12-24 17:32:06 +00:00
Thomas Weißschuh
e83ced9250
lib: procfs: add parsing cmd containing newline
2022-12-24 17:31:48 +00:00
Thomas Weißschuh
d34b0603e8
lib: procfs: add unittests
2022-12-24 17:31:28 +00:00
Karel Zak
6ccea16460
Merge branch 'fssize-swap' of https://github.com/t-8ch/util-linux
...
* 'fssize-swap' of https://github.com/t-8ch/util-linux :
blkid: swap: test big endian swapfile
libblkid: swap: report fssize
libblkid: swap: report fsblocksize
libblkid: swap: report endianess
2022-12-21 10:16:34 +01:00
Karel Zak
adcfe57a7e
Merge branch 'fssize' of https://github.com/t-8ch/util-linux
...
* 'fssize' of https://github.com/t-8ch/util-linux :
libblkid: iso9660: read block size from superblock
iso9660.h: avoid undefined signed integer shift
iso9660.h: use more correct function types
libblkid: ntfs: report fssize
libblkid: ubifs: report fssize
libblkid: f2fs: report fssize
libblkid: erofs: report fssize
libblkid: vfat: report fssize
2022-12-21 10:15:07 +01:00
Karel Zak
97be86cf2d
Merge branch 'proc/byteorder' of https://github.com/t-8ch/util-linux
...
* 'proc/byteorder' of https://github.com/t-8ch/util-linux :
lscpu: add testcase for Linux 6.2 x86_64
tests: make mk-input.sh scripts executable
tests: add ts_check_native_byteorder
lscpu: test endianess
sysfs: sysfs_get_byteorder: add context parameter
lsfd: use runtime byteorder
lscpu: use runtime byteorder
sysfs: read runtime byteorder
2022-12-21 10:06:46 +01:00
Thomas Weißschuh
b708155148
blkid: swap: test big endian swapfile
2022-12-15 12:18:20 +00:00
Thomas Weißschuh
b592266638
libblkid: iso9660: read block size from superblock
2022-12-15 02:22:09 +00:00
Thomas Weißschuh
b5f1612515
libblkid: swap: report fssize
2022-12-14 12:01:01 +00:00
Thomas Weißschuh
7bffba2b90
libblkid: swap: report fsblocksize
2022-12-14 12:01:01 +00:00
Thomas Weißschuh
1b883507b4
libblkid: swap: report endianess
2022-12-14 12:00:57 +00:00
Thomas Weißschuh
171700a2c9
libblkid: ntfs: report fssize
2022-12-13 18:35:18 +00:00
Thomas Weißschuh
bcfef878cc
libblkid: ubifs: report fssize
2022-12-13 18:35:18 +00:00
Thomas Weißschuh
d3b7b882ae
libblkid: f2fs: report fssize
2022-12-13 18:35:18 +00:00
Thomas Weißschuh
b0dd082a8a
libblkid: erofs: report fssize
2022-12-13 18:34:40 +00:00
Thomas Weißschuh
67dc634fe2
libblkid: vfat: report fssize
2022-12-13 18:34:40 +00:00
Milan Broz
773a1fe3f1
libblkid: Add detection of FileVault2 partitions
...
FileVault is full disk encryption format based on Apple
Core Storage, used in older macOS versions.
This patch allows automatic detection of Core Storage partition
to be later used with existing cryptsetup support for FileVault2.
Note that we intentionally ignore generic Core Storage; only
specific configuration is detected as cs_fvault2 type here.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
2022-12-12 19:08:44 +01:00
Karel Zak
25b98aedc3
tests: be explicit with ext2 block size
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-12-01 16:40:57 +01:00
Karel Zak
db0f70fd47
tests: add blkid --offset test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-12-01 15:08:19 +01:00
Thomas Weißschuh
d739298044
libblkid: squashfs: report filesystem size
2022-11-29 03:46:18 +01:00
Thomas Weißschuh
a746627309
libblkid: squashfs: report block sizes
2022-11-29 03:44:11 +01:00
Thomas Weißschuh
c47031ed47
lscpu: add testcase for Linux 6.2 x86_64
...
It contains the new file /sys/kernel/cpu_byteorder that lscpu will use
to read the actual byteorder.
2022-11-27 16:11:29 +01:00
Thomas Weißschuh
73a96af6ec
dmesg: allow specification of level range
2022-11-25 14:42:50 +01:00
Masatake YAMATO
c5eb81b39d
lsfd: show extra information returned from ioctl(..., NS_GET_NSTYPE)
...
lsfd uses the information to fill the newly added NS.TYPE and NS.NAME
columns:
# ./lsfd -oCOMMAND,PID,USER,ASSOC,SOURCE,MNTID,NS.TYPE,NS.NAME,NAME
-Q '(FD >= 0) and (SOURCE == "nsfs")'
COMMAND PID USER ASSOC SOURCE MNTID NS.TYPE NS.NAME NAME
NetworkManager 1114 root 8 nsfs 3 net net:[4026531840] net:[4026531840]
NetworkManager 1114 root 9 nsfs 3 mnt mnt:[4026532758] mnt:[4026532758]
lsfd 14379 root 3 nsfs 3 net net:[4026531840] net:[4026531840]
podman 1532759 root 7 nsfs 1546 net net:[4026533029] /run/netns/netns-4f5ecc46-d6a0-175c-46a8-2e4ba180b94a
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2022-11-23 20:05:05 +09:00
Thomas Weißschuh
60a5e8d8c2
libblkid: exfat: report filesystem size
2022-11-20 22:48:01 +01:00
Thomas Weißschuh
f74d384e24
rev: allow zero-byte as separator
...
Fixes #1868
2022-11-13 02:45:41 +01:00
Thomas Weißschuh
d2d36acee7
libblkid: ext4: add test
2022-11-05 02:21:17 +01:00
Karel Zak
e3e5ee98cd
Merge branch 'romfs/checksum' of https://github.com/t-8ch/util-linux
...
* 'romfs/checksum' of https://github.com/t-8ch/util-linux :
libblkid: romfs: report fssize
libblkid: romfs: add checksum support
2022-11-01 08:52:29 +01:00