summaryrefslogtreecommitdiff
path: root/libblkid/src
Commit message (Collapse)AuthorAgeFilesLines
* libblkid: xfs: clean up call to ul_crc32_exclude_offsetThomas Weißschuh2023-04-171-2/+2
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: erofs: calculate checksum with offsetThomas Weißschuh2023-04-171-2/+3
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: Compute CRC with sb_crc zeroedJeremy Linton2023-04-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel computes the sb_crc by crcing the superblock with the CRC field set to 0. The code is trying to avoid doing this in three separate CRC calls like the kernel performs by simply zeroing the field and making a single call. Except that the passed copy "ondisk" isn't the same as the returned copy "csummed" so the zeroing goes into the wrong buffer. Meaning that the CRC is computed incorrectly. This results in blkid returning: /dev/sda4: PARTUUID="2f162043-63c2-d145-869b-e53f9db57476" rather than: /dev/sda4: UUID="45b931b7-592a-46dc-9c33-d38d5901ec29" BLOCK_SIZE="4096" TYPE="xfs" PARTUUID="2f162043-63c2-d145-869b-e53f9db57476" Which can result in lots of failures including boot failures if XFS modules aren't placed into the initrd, or scripts/etc cannot determine the fs UUID. Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
* libblkid: copy BLKID_PARTS_FORCE_GPT to whole-disk proberKarel Zak2023-04-043-0/+14
| | | | | Addresses: https://github.com/util-linux/util-linux/discussions/2146 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix libblkid fuzz sample test if-endifKarel Zak2023-03-171-2/+1
| | | | | | | | All tests have to be covered by BUILD_LIBBLKID_TESTS otherwise proper CFLAGS ($blkid_tests_cflags) are undefined. Fixes: https://github.com/util-linux/util-linux/issues/2119 Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: nvidia_raid: validate full signatureThomas Weißschuh2023-03-021-1/+1
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: nvidia_raid: validate checksumThomas Weißschuh2023-03-021-1/+11
| | | | | | See #1843 Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: nvidia_raid: verify superblock sizeThomas Weißschuh2023-03-021-0/+4
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: try LUKS2 first when probingLuca Boccassi2023-02-221-1/+5
| | | | | | | | | If a device is locked with OPAL we'll get an I/O error when probing past the LUKS2 header. Try it first to avoid this issue. It is useful regardless, as when we find a LUKS superblock we stop there anyway, no need to check futher. Signed-off-by: Luca Boccassi <bluca@debian.org>
* libblkid: check if device is OPAL locked on I/O errorLuca Boccassi2023-02-222-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the appropriate ioctl, if available, to check if a device is locked when we get an I/O error. Save the information so that we don't have to repeat the ioctl. Before: LIBBLKID_DEBUG=all blkid -p /dev/sdd2 206326: libblkid: INIT: library debug mask: 0xffff 206326: libblkid: INIT: library version: 2.38.1 [04-Aug-2022] Available "LIBBLKID_DEBUG=<name>[,...]|<mask>" debug masks: all [0xffff] : info about all subsystems cache [0x0004] : blkid tags cache config [0x0008] : config file utils dev [0x0010] : device utils devname [0x0020] : /proc/partitions evaluation devno [0x0040] : conversions to device name evaluate [0x0080] : tags resolving help [0x0001] : this help lowprobe [0x0100] : superblock/raids/partitions probing buffer [0x2000] : low-probing buffers probe [0x0200] : devices verification read [0x0400] : cache parsing save [0x0800] : cache writing tag [0x1000] : tags utils 206326: libblkid: LOWPROBE: allocate a new probe 206326: libblkid: LOWPROBE: zeroize wiper 206326: libblkid: LOWPROBE: ready for low-probing, offset=0, size=234584276992, zonesize=0 206326: libblkid: LOWPROBE: whole-disk: NO, regfile: NO 206326: libblkid: LOWPROBE: start probe 206326: libblkid: LOWPROBE: zeroize wiper 206326: libblkid: LOWPROBE: chain safeprobe superblocks ENABLED 206326: libblkid: LOWPROBE: --> starting probing loop [SUBLKS idx=-1] 206326: libblkid: LOWPROBE: [0] linux_raid_member: 206326: libblkid: LOWPROBE: call probefunc() 206326: libblkid: LOWPROBE: read: off=234584211456 len=64 206326: libblkid: LOWPROBE: read failed: Input/output error 206326: libblkid: LOWPROBE: <-- leaving probing loop (failed=-5) [SUBLKS idx=0] 206326: libblkid: LOWPROBE: freeing values list 206326: libblkid: LOWPROBE: end probe 206326: libblkid: LOWPROBE: zeroize wiper 206326: libblkid: LOWPROBE: free probe After: LIBBLKID_DEBUG=all blkid -p /dev/sdd2 206221: libblkid: INIT: library debug mask: 0xffff 206221: libblkid: INIT: library version: 2.38.1119 [28-Mar-2022] Available "LIBBLKID_DEBUG=<name>[,...]|<mask>" debug masks: all [0x00ffff] : info about all subsystems cache [0x000004] : blkid tags cache config [0x000008] : config file utils dev [0x000010] : device utils devname [0x000020] : /proc/partitions evaluation devno [0x000040] : conversions to device name evaluate [0x000080] : tags resolving help [0x000001] : this help lowprobe [0x000100] : superblock/raids/partitions probing buffer [0x002000] : low-probing buffers probe [0x000200] : devices verification read [0x000400] : cache parsing save [0x000800] : cache writing tag [0x001000] : tags utils 206221: libblkid: LOWPROBE: allocate a new probe 206221: libblkid: LOWPROBE: zeroize wiper 206221: libblkid: LOWPROBE: ready for low-probing, offset=0, size=234584276992, zonesize=0 206221: libblkid: LOWPROBE: whole-disk: NO, regfile: NO 206221: libblkid: LOWPROBE: start probe 206221: libblkid: LOWPROBE: zeroize wiper 206221: libblkid: LOWPROBE: chain safeprobe superblocks ENABLED 206221: libblkid: LOWPROBE: --> starting probing loop [SUBLKS idx=-1] 206221: libblkid: LOWPROBE: [0] linux_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: read: off=234584211456 len=64 206221: libblkid: LOWPROBE: read failed: Input/output error 206221: libblkid: LOWPROBE: read: off=234584268800 len=256 206221: libblkid: LOWPROBE: read failed: Input/output error 206221: libblkid: LOWPROBE: read: off=0 len=256 206221: libblkid: LOWPROBE: read: off=4096 len=256 206221: libblkid: LOWPROBE: [1] ddf_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: read: off=234584276480 len=512 206221: libblkid: LOWPROBE: read failed: Input/output error 206221: libblkid: LOWPROBE: [2] isw_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [3] lsi_mega_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [4] via_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [5] silicon_medley_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [6] nvidia_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [7] promise_fasttrack_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [8] hpt45x_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [9] hpt37x_raid_member: 206221: libblkid: LOWPROBE: read: off=4096 len=1024 206221: libblkid: BUFFER: reuse: off=4096 len=1024 (for off=4096 len=1024) 206221: libblkid: LOWPROBE: [10] adaptec_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [11] jmicron_raid_member: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: [12] bcache: 206221: libblkid: BUFFER: reuse: off=4096 len=1024 (for off=4096 len=1024) 206221: libblkid: LOWPROBE: [13] bcachefs: 206221: libblkid: BUFFER: reuse: off=4096 len=1024 (for off=4096 len=1024) 206221: libblkid: BUFFER: reuse: off=4096 len=1024 (for off=4096 len=1024) 206221: libblkid: LOWPROBE: [14] ceph_bluestore: 206221: libblkid: LOWPROBE: read: off=0 len=1024 206221: libblkid: LOWPROBE: [15] drbd: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: LOWPROBE: read: off=234584272896 len=104 206221: libblkid: LOWPROBE: read failed: Input/output error 206221: libblkid: LOWPROBE: read: off=234584272896 len=1392 206221: libblkid: LOWPROBE: read failed: Input/output error 206221: libblkid: LOWPROBE: [16] drbdmanage_control_volume: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [17] drbdproxy_datalog: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [18] LVM2_member: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: read: off=1024 len=1024 206221: libblkid: BUFFER: reuse: off=1024 len=1024 (for off=1024 len=1024) 206221: libblkid: LOWPROBE: [19] LVM1_member: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [20] DM_snapshot_cow: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [21] DM_verity_hash: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [22] DM_integrity: 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: [23] crypto_LUKS: 206221: libblkid: LOWPROBE: call probefunc() 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=512) 206221: libblkid: LOWPROBE: assigning VERSION [superblocks] 206221: libblkid: LOWPROBE: assigning UUID [superblocks] 206221: libblkid: LOWPROBE: assigning LABEL [superblocks] 206221: libblkid: LOWPROBE: free value LABEL 206221: libblkid: LOWPROBE: assigning SUBSYSTEM [superblocks] 206221: libblkid: LOWPROBE: assigning TYPE [superblocks] 206221: libblkid: LOWPROBE: assigning USAGE [superblocks] 206221: libblkid: LOWPROBE: <-- leaving probing loop (type=crypto_LUKS) [SUBLKS idx=23] 206221: libblkid: LOWPROBE: freeing values list 206221: libblkid: LOWPROBE: chain safeprobe topology DISABLED 206221: libblkid: LOWPROBE: chain safeprobe partitions ENABLED 206221: libblkid: LOWPROBE: Resetting partitions values 206221: libblkid: LOWPROBE: --> starting probing loop [PARTS idx=-1] 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: gpt: ---> call probefunc() 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=512) 206221: libblkid: LOWPROBE: gpt: <--- (rc = 1) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: ultrix: ---> call probefunc() 206221: libblkid: LOWPROBE: read: off=15872 len=512 206221: libblkid: LOWPROBE: ultrix: <--- (rc = 1) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: read: off=28672 len=1024 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: atari: ---> call probefunc() 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=512) 206221: libblkid: LOWPROBE: atari: <--- (rc = 1) 206221: libblkid: LOWPROBE: <-- leaving probing loop (failed=1) [PARTS idx=12] 206221: libblkid: LOWPROBE: parts: start probing for partition entry 206221: libblkid: DEVNO: found devno 0x0830 as /dev/sdd 206221: libblkid: LOWPROBE: allocate a wholedisk probe 206221: libblkid: LOWPROBE: allocate a new probe 206221: libblkid: LOWPROBE: zeroize wiper 206221: libblkid: LOWPROBE: ready for low-probing, offset=0, size=256060514304, zonesize=0 206221: libblkid: LOWPROBE: whole-disk: YES, regfile: NO 206221: libblkid: LOWPROBE: partlist reset 206221: libblkid: LOWPROBE: parts: initialized partitions list (size=0) 206221: libblkid: LOWPROBE: --> starting probing loop [PARTS idx=-1] 206221: libblkid: LOWPROBE: read: off=0 len=1024 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=1024) 206221: libblkid: LOWPROBE: magic sboff=510, kboff=0 206221: libblkid: LOWPROBE: dos: ---> call probefunc() 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=512) 206221: libblkid: LOWPROBE: probably GPT -- ignore 206221: libblkid: LOWPROBE: dos: <--- (rc = 1) 206221: libblkid: LOWPROBE: gpt: ---> call probefunc() 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=0 len=512) 206221: libblkid: LOWPROBE: #1 valid PMBR partition 206221: libblkid: LOWPROBE: checking for GPT header at 1 206221: libblkid: BUFFER: reuse: off=0 len=1024 (for off=512 len=512) 206221: libblkid: LOWPROBE: read: off=1024 len=16384 206221: libblkid: LOWPROBE: parts: create a new partition table (type=gpt, offset=512) 206221: libblkid: LOWPROBE: parts: add partition (start=2048, size=41943040) 206221: libblkid: LOWPROBE: parts: add partition (start=41945088, size=458172416) 206221: libblkid: LOWPROBE: gpt: <--- (rc = 0) 206221: libblkid: LOWPROBE: <-- leaving probing loop (type=gpt) [PARTS idx=4] 206221: libblkid: LOWPROBE: partitions probe done [rc=0] 206221: libblkid: LOWPROBE: returning partitions binary data 206221: libblkid: LOWPROBE: trying to convert devno 0x832 to partition 206221: libblkid: LOWPROBE: searching by offset/size 206221: libblkid: LOWPROBE: assigning PART_ENTRY_SCHEME [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_UUID [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_TYPE [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_NUMBER [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_OFFSET [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_SIZE [partitions] 206221: libblkid: LOWPROBE: assigning PART_ENTRY_DISK [partitions] 206221: libblkid: LOWPROBE: parts: end probing for partition entry [success] 206221: libblkid: LOWPROBE: partitions probe done [rc=0] 206221: libblkid: LOWPROBE: end probe 206221: libblkid: LOWPROBE: zeroize wiper 206221: libblkid: LOWPROBE: returning VERSION value 206221: libblkid: LOWPROBE: returning UUID value 206221: libblkid: LOWPROBE: returning SUBSYSTEM value 206221: libblkid: LOWPROBE: returning TYPE value 206221: libblkid: LOWPROBE: returning USAGE value 206221: libblkid: LOWPROBE: returning PART_ENTRY_SCHEME value 206221: libblkid: LOWPROBE: returning PART_ENTRY_UUID value 206221: libblkid: LOWPROBE: returning PART_ENTRY_TYPE value 206221: libblkid: LOWPROBE: returning PART_ENTRY_NUMBER value 206221: libblkid: LOWPROBE: returning PART_ENTRY_OFFSET value 206221: libblkid: LOWPROBE: returning PART_ENTRY_SIZE value 206221: libblkid: LOWPROBE: returning PART_ENTRY_DISK value /dev/sdd2: VERSION="2" UUID="a918f1d0-f1de-44f5-9d93-ce9dc15cc2c7" SUBSYSTEM="HW-OPAL" TYPE="crypto_LUKS" USAGE="crypto" PART_ENTRY_SCHEME="gpt" PART_ENTRY_UUID="39ed5135-46e4-ca44-837e-da3c0781367b" PART_ENTRY_TYPE="0fc63daf-8483-4772-8e79-3d69d8477de4" PART_ENTRY_NUMBER="2" PART_ENTRY_OFFSET="41945088" PART_ENTRY_SIZE="458172416" PART_ENTRY_DISK="8:48" 206221: libblkid: BUFFER: Resetting probing buffers 206221: libblkid: BUFFER: remove buffer: [off=0, len=256] 206221: libblkid: BUFFER: remove buffer: [off=4096, len=256] 206221: libblkid: BUFFER: remove buffer: [off=4096, len=1024] 206221: libblkid: BUFFER: remove buffer: [off=0, len=1024] 206221: libblkid: BUFFER: remove buffer: [off=1024, len=1024] 206221: libblkid: BUFFER: remove buffer: [off=15872, len=512] 206221: libblkid: BUFFER: remove buffer: [off=28672, len=1024] 206221: libblkid: LOWPROBE: buffers summary: 5120 bytes by 7 read() calls 206221: libblkid: LOWPROBE: resetting results 206221: libblkid: LOWPROBE: free value VERSION 206221: libblkid: LOWPROBE: free value UUID 206221: libblkid: LOWPROBE: free value SUBSYSTEM 206221: libblkid: LOWPROBE: free value TYPE 206221: libblkid: LOWPROBE: free value USAGE 206221: libblkid: LOWPROBE: free value PART_ENTRY_SCHEME 206221: libblkid: LOWPROBE: free value PART_ENTRY_UUID 206221: libblkid: LOWPROBE: free value PART_ENTRY_TYPE 206221: libblkid: LOWPROBE: free value PART_ENTRY_NUMBER 206221: libblkid: LOWPROBE: free value PART_ENTRY_OFFSET 206221: libblkid: LOWPROBE: free value PART_ENTRY_SIZE 206221: libblkid: LOWPROBE: free value PART_ENTRY_DISK 206221: libblkid: BUFFER: Resetting probing buffers 206221: libblkid: BUFFER: remove buffer: [off=0, len=1024] 206221: libblkid: BUFFER: remove buffer: [off=1024, len=16384] 206221: libblkid: LOWPROBE: buffers summary: 17408 bytes by 2 read() calls 206221: libblkid: LOWPROBE: free probe 206221: libblkid: LOWPROBE: free probe Signed-off-by: Luca Boccassi <bluca@debian.org>
* documentation: link to HTML versions of kernel docs on docs.kernel.orgnl67202023-02-151-1/+1
|
* libblkid: bcachefs: fix new magic detectionThomas Weißschuh2023-02-101-1/+1
| | | | | | | The new bcache-specific magic value was wrong and the new testcase didn't actually use this magic. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: add test_blkid_fuzz_sampleThomas Weißschuh2023-01-252-11/+40
| | | | | | This can be used to easily reproduce crashes produced by the fuzzers. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: avoid overflow in address comparisionsThomas Weißschuh2023-01-251-2/+13
| | | | | | | | Adding the offset to the address may overflow and break the comparision, use substraction instead. Addresses: #2030 Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: simplify member field size validationThomas Weißschuh2023-01-251-11/+3
| | | | | | We can avoid messing with pointers by just directly checking the size. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: remove superfluous validationsThomas Weißschuh2023-01-251-6/+0
| | | | | | | | | | These checks are redundant as we already validated * `dev_idx < bcs->nr_devices` in `probe_bcachefs()` * `field + BYTES(field) < sb_end` in `probe_bcachefs_sb_fields()` * `member_field_end(members, bcs->nr_devices - 1) == field + BYTES(field)` right above. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: use uint64_t for structure lengthThomas Weißschuh2023-01-251-3/+2
| | | | | | | The value of "u64s" can overflow when multiplied by 8. Use a larger type to avoid this. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: align nilfs superblock [OSS-Fuzz 55382]Karel Zak2023-01-251-1/+1
| | | | | Addresses: https://github.com/util-linux/util-linux/issues/2043 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'fix-befs' of https://github.com/mbroz/util-linuxKarel Zak2023-01-231-0/+3
|\ | | | | | | | | * 'fix-befs' of https://github.com/mbroz/util-linux: libblkid: befs - avoid undefined shift
| * libblkid: befs - avoid undefined shiftMilan Broz2023-01-231-0/+3
| | | | | | | | | | | | | | | | | | | | BEFS does not check maximal value for ag_shift leading to undefined behavior. Avoid this by limiting shift size. Reproducer found with OSS-Fuzz (issue 55285) running over cryptsetup project (blkid is used in header init). Signed-off-by: Milan Broz <gmazyland@gmail.com>
* | libblkid: bcachefs: limit maximum size of read superblockThomas Weißschuh2023-01-231-0/+5
| |
* | libblkid: iso9660: don't warn on isonum mismatchThomas Weißschuh2023-01-231-2/+2
| | | | | | | | we are not doing anything about it anyways
* | libblkid: bcachefs: fix member_field_endThomas Weißschuh2023-01-231-2/+2
| | | | | | | | | | The end of this member is the start of the next one, not the start of the current one.
* | libblkid: bcachefs: validate size of member fieldThomas Weißschuh2023-01-231-2/+6
| |
* | libblkid: bcachefs: fix field typeThomas Weißschuh2023-01-231-1/+1
| |
* | libblkid: bcachefs: fix endless loopThomas Weißschuh2023-01-231-1/+10
| | | | | | | | | | | | When a field has size 0 it will loop forever. See #2031
* | libblkid: iso9660: use sizeof_memberThomas Weißschuh2023-01-231-1/+1
| |
* | remove no longer needed bracesCristian Rodríguez2023-01-231-6/+3
| |
* | replace open-coded instances of mempcpyCristian Rodríguez2023-01-231-6/+4
|/
* libblkid: (bcachefs) verify checksum before set probing resultKarel Zak2023-01-201-27/+25
| | | | | | | | | | * merge probe_bcachefs_full_sb() in to probe_bcachefs() * define variables at the beginning of the code block * cosmetic code cleanup Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: bcachefs: add xxhash checksum supportThomas Weißschuh2023-01-191-0/+7
|
* libblkid: bcachefs: add crc64 checksum supportThomas Weißschuh2023-01-191-0/+6
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: add crc32 checksum supportThomas Weißschuh2023-01-191-14/+54
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: validate device fieldsThomas Weißschuh2023-01-191-7/+35
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: bcachefs: probe UUID_SUBThomas Weißschuh2023-01-191-0/+74
| | | | Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: add bcachefs supportThomas Weißschuh2023-01-193-0/+63
| | | | | | https://bcachefs.org/ Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* libblkid: topology/sysfs: fix uint64_t handling on 32bit systemsThomas Weißschuh2023-01-081-1/+8
|
* libblkid: topology/ioctl: fix uint64_t handling on 32bit systemsThomas Weißschuh2023-01-081-2/+7
|
* libblkid: topolicy/ioctl: use union for multiple data typesThomas Weißschuh2023-01-081-3/+6
|
* Merge branch 'libblkid-debug' of https://github.com/t-8ch/util-linuxKarel Zak2023-01-034-8/+5
|\ | | | | | | | | | | * 'libblkid-debug' of https://github.com/t-8ch/util-linux: libblkid: remove strewn around calls to blkid_init_debug() libblkid: always initialize debugging
| * libblkid: remove strewn around calls to blkid_init_debug()Thomas Weißschuh2022-12-213-8/+0
| | | | | | | | | | Now that we always initialize libblkid debugging when loading we don't need them anymore.
| * libblkid: always initialize debuggingThomas Weißschuh2022-12-211-0/+5
| | | | | | | | | | | | | | | | | | Previously the debugging logic relied on random parts of libblkid having called blkid_init_debug(). If this didn't happen, as for example for lsblk(8), debugging wouldn't work. Make sure that debugging is always enabled.
* | Merge branch 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linuxKarel Zak2023-01-026-3/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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
| * | libblkid: topology: probe diskseqThomas Weißschuh2022-12-286-1/+32
| | |
| * | libblkid: topology: allow setting of 64bit valuesThomas Weißschuh2022-12-281-2/+2
| |/
* | Merge branch 'cleanups' of https://github.com/t-8ch/util-linuxKarel Zak2023-01-025-15/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'cleanups' of https://github.com/t-8ch/util-linux: fadvise: fix parsing of option -V libblkid: zfs: remove unnecessary newline from debug messages libblkid: topology: constify some structures lib: sysfs: fix typo
| * | libblkid: zfs: remove unnecessary newline from debug messagesThomas Weißschuh2022-12-281-9/+9
| | |
| * | libblkid: topology: constify some structuresThomas Weißschuh2022-12-284-6/+6
| |/
* | Merge branch 'part-csum' of https://github.com/t-8ch/util-linuxKarel Zak2023-01-024-3/+20
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'part-csum' of https://github.com/t-8ch/util-linux: libblkid: bsd: add checksum support libblkid: sun: use generic checksum handling libblkid: sgi: use generic checksum handling libblkid: gpt: use generic checksum handling
| * | libblkid: bsd: add checksum supportThomas Weißschuh2022-12-261-0/+17
| | |