swap partition recognized as XFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



blkid recognizes my swap partition as XFS:

# swapon -s
Filename				Type		Size	Used	Priority
/dev/sda8                               partition	4883720	0	-1

# blkid /dev/sda8
/dev/sda8: UUID="a3480339-b89c-4a01-ac2a-e3fe3347b99b" TYPE="xfs"

strace shows:
open("/dev/sda8", O_RDONLY)             = 3
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 8), ...}) = 0
uname({sys="Linux", node="Anastacia", ...}) = 0
ioctl(3, BLKGETSIZE64, 0x126e400)       = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\n\202\210\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\0"..., 69632) = 69632

Now It's very likely that this partition was orginally an XFS partition,
which I reformatted later on with mkswap.

IIRC XFS uses the first sector differently than other file systems
(installing a boot loader in the first sector of an XFS partition will
destroy the file system, unlike with other file systems).

Could it be that mkswap does not overwrite the first sector, and then
blkid fails to take into account that the first sector might still have
a reference to XFS, while the partition is actually used for something
else now?

I'm using util-linux-ng 2.16 on Mandriva 2010.0 Cooker x86_64

-- 
Frederik Himpe <fhimpe@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux