Karel Zak
2ea3972396
Merge branch 'fix-befs' of https://github.com/mbroz/util-linux
...
* 'fix-befs' of https://github.com/mbroz/util-linux :
libblkid: befs - avoid undefined shift
2023-01-23 14:11:56 +01:00
Thomas Weißschuh
eef4dbe0cb
libblkid: bcachefs: limit maximum size of read superblock
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
e2283b6899
libblkid: iso9660: don't warn on isonum mismatch
...
we are not doing anything about it anyways
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
de437be6f9
libblkid: bcachefs: fix member_field_end
...
The end of this member is the start of the next one, not the start of
the current one.
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
d9c72ffc4c
libblkid: bcachefs: validate size of member field
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
dcf4b1b2b2
libblkid: bcachefs: fix field type
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
64bfbdb470
libblkid: bcachefs: fix endless loop
...
When a field has size 0 it will loop forever.
See #2031
2023-01-23 13:52:00 +01:00
Thomas Weißschuh
25489f1bc4
libblkid: iso9660: use sizeof_member
2023-01-23 13:52:00 +01:00
Cristian Rodríguez
7165c9bb1e
remove no longer needed braces
2023-01-23 13:52:00 +01:00
Cristian Rodríguez
cba3345215
replace open-coded instances of mempcpy
2023-01-23 13:52:00 +01:00
Milan Broz
0ec43c07e0
libblkid: befs - avoid undefined shift
...
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>
2023-01-23 13:51:43 +01:00
Karel Zak
77da12e7b4
libblkid: (bcachefs) verify checksum before set probing result
...
* 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>
2023-01-20 12:45:10 +01:00
Thomas Weißschuh
f5c84384b5
libblkid: bcachefs: add xxhash checksum support
2023-01-19 19:17:25 +00:00
Thomas Weißschuh
4a57b0b401
libblkid: bcachefs: add crc64 checksum support
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-19 19:17:25 +00:00
Thomas Weißschuh
e9e51878e7
libblkid: bcachefs: add crc32 checksum support
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-01-19 19:17:25 +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
Samanta Navarro
4195cb01fb
Fix typo
...
Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
2023-01-10 12:00:56 +00:00
Thomas Weißschuh
65e5339021
libblkid: topology/sysfs: fix uint64_t handling on 32bit systems
2023-01-08 16:28:48 +00:00
Thomas Weißschuh
305cb55ba4
libblkid: topology/ioctl: fix uint64_t handling on 32bit systems
2023-01-08 16:28:48 +00:00
Thomas Weißschuh
5d71d711d0
libblkid: topolicy/ioctl: use union for multiple data types
2023-01-08 16:28:48 +00:00
Karel Zak
df7bffb4e8
Merge branch 'libblkid-debug' of https://github.com/t-8ch/util-linux
...
* 'libblkid-debug' of https://github.com/t-8ch/util-linux :
libblkid: remove strewn around calls to blkid_init_debug()
libblkid: always initialize debugging
2023-01-03 15:07:06 +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
Karel Zak
e6c3efa3fd
Merge branch 'cleanups' of https://github.com/t-8ch/util-linux
...
* '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
2023-01-02 13:24:23 +01:00
Karel Zak
55c04dd23b
Merge branch 'part-csum' of https://github.com/t-8ch/util-linux
...
* '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
2023-01-02 13:06:41 +01:00
Thomas Weißschuh
0cb7e07830
libblkid: topology: probe diskseq
2022-12-28 12:34:20 +00:00
Thomas Weißschuh
3ab9e699a8
libblkid: topology: allow setting of 64bit values
2022-12-28 12:34:20 +00:00
Thomas Weißschuh
12af79b94c
libblkid: zfs: remove unnecessary newline from debug messages
2022-12-28 04:06:43 +00:00
Thomas Weißschuh
c74a0d9ca3
libblkid: topology: constify some structures
2022-12-28 01:49:03 +00:00
Thomas Weißschuh
c8cc506472
libblkid: bsd: add checksum support
2022-12-26 23:57:48 +00:00
Thomas Weißschuh
b810439594
libblkid: sun: use generic checksum handling
2022-12-26 23:57:48 +00:00
Thomas Weißschuh
3957a745e7
libblkid: sgi: use generic checksum handling
2022-12-26 23:57:48 +00:00
Thomas Weißschuh
b8c35b4aea
libblkid: gpt: use generic checksum handling
2022-12-26 23:57:48 +00:00
Milan Broz
67b8731fa6
Update email.
...
This email no longer works.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
2022-12-23 11:48:17 +01:00
Thomas Weißschuh
801b0a6251
libblkid: remove strewn around calls to blkid_init_debug()
...
Now that we always initialize libblkid debugging when loading we don't
need them anymore.
2022-12-21 19:08:44 +00:00
Thomas Weißschuh
aca796c524
libblkid: always initialize debugging
...
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.
2022-12-21 19:08:43 +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
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
fa98613e4e
libblkid: add BLKID_SUBLKS_FSINFO to docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-12-05 12:03:19 +01:00
Karel Zak
69b73820d4
libblkid: cleanup definitions and add docs for return values
...
* make it possible to use #ifdef for the return values
* add docs for the return values
Addresses: https://github.com/util-linux/util-linux/issues/1939
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-12-05 12:02:14 +01:00