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:
parent
40010e3eb8
commit
aa0200c3ff
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user