mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +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;
|
fsi->fs_last_byte = fssize;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For swap, there's no FSLASTBLOCK reported by blkid. We do have FSSIZE reported though.
|
* For swap, FSLASTBLOCK is reported by blkid since v2.41 so use that directly.
|
||||||
* The last block is then calculated as:
|
* 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)
|
* FSSIZE (== size of the usable swap area) + FSBLOCKSIZE (== size of the swap header)
|
||||||
*/
|
*/
|
||||||
if (!strcmp(fsi->fstype, "swap"))
|
if (!strcmp(fsi->fstype, "swap"))
|
||||||
|
Loading…
Reference in New Issue
Block a user