1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dev-type: update comment about swap info from blkid

This commit is contained in:
Peter Rajnoha 2024-10-25 12:47:26 +02:00
parent 40010e3eb8
commit aa0200c3ff
No known key found for this signature in database
GPG Key ID: E776664036DF84AB

View File

@ -1005,8 +1005,8 @@ int fs_get_blkid(const char *pathname, struct fs_info *fsi)
fsi->fs_last_byte = fssize;
/*
* For swap, there's no FSLASTBLOCK reported by blkid. We do have FSSIZE reported though.
* The last block is then calculated as:
* For swap, FSLASTBLOCK is reported by blkid since v2.41 so use that directly.
* Otherwise, we do have FSSIZE reported since v2.39. Then. then last block is calculated as:
* FSSIZE (== size of the usable swap area) + FSBLOCKSIZE (== size of the swap header)
*/
if (!strcmp(fsi->fstype, "swap"))