]> sourceware.org Git - lvm2.git/commit
dev-type: get swap device size from blkid using FSSIZE
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 19 Sep 2024 10:39:46 +0000 (12:39 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 2 Oct 2024 11:31:54 +0000 (13:31 +0200)
commite009becd73b1898e67e147f2b24cad8415379b6c
tree1a29c531a8286f54a486d4af12cad8007b473951
parent4524778b2324dd7975879e0efd15dcf39df325af
dev-type: get swap device size from blkid using FSSIZE

blkid does not report FSLASTBLOCK for a swap device. However, blkid
does report FSSIZE for swap devices, so use this field (and including
the header size which is of FSBLOCKSIZE for the swap) instead to
set the "filesystem last block" which is used subsequently for
further calculations and conditions.
lib/device/dev-type.c
This page took 0.034773 seconds and 5 git commands to generate.