commit | 6360d129d003f25942f62fab2cdc5e1d97cc88a6 | [log] [tgz] |
---|---|---|
author | Eric Sandeen <sandeen@redhat.com> | Fri Apr 18 10:28:44 2008 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Apr 18 14:31:27 2008 -0400 |
tree | d7ea2911cdc379671673ccaa61f7c748da288f06 | |
parent | a4396e9d5d1351c53212bf7ff10f97edeb576438 [diff] |
blkid: more sanity checks for swap v1 mkswap followed by pvcreate on a block device will still turn up as "swap" in blkid, because pvcreate isn't particularly careful about zeroing old signatures. (neither is mkswap, for that matter). Testing for appropriate version and page counts gives us a bit more confidence that we have a real swap (v1) partition. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>