• Nate Clark's avatar
    libblkid/minix: Sanity check superblock s_state for v 1 and 2 · 59810c31
    Nate Clark authored
    Swap devices with specific values in the uuid can look like minix
    devices to blkid. Add an extra check to make sure the state of the
    filesystem has valid state flags.
    
    A couple of offending swap uuids include:
    35f1f264-137f-471a-bc85-acc9f4bc04a3
    35f1f264-7f13-471a-bc85-acc9f4bc04a3
    35f1f264-138f-471a-bc85-acc9f4bc04a3
    35f1f264-8f13-471a-bc85-acc9f4bc04a3
    
    Without this change a swap device with any of those uuids would be
    detected as minix and swap by blkid.
    Signed-off-by: 's avatarNate Clark <nate@neworld.us>
    59810c31
minix.c 4.71 KB