Re: [PATCH] minix: avoid mistakenly probing ext2 filesystems

2021-03-22 Thread Daniel Kiper
On Fri, Mar 12, 2021 at 12:05:08PM -0600, Derek Foreman wrote: > From: Daniel Drake > > ext2 (and ext3, ext4) filesystems write the number of free inodes to > location 0x410. > > On a minix filesystem, that same location is used for the minix superblock > magic number. > > If the number of free in

[PATCH] minix: avoid mistakenly probing ext2 filesystems

2021-03-12 Thread Derek Foreman
From: Daniel Drake ext2 (and ext3, ext4) filesystems write the number of free inodes to location 0x410. On a minix filesystem, that same location is used for the minix superblock magic number. If the number of free inodes on an ext2 filesystem is equal to any of the four minix superblock magic

[PATCH] minix: avoid mistakenly probing ext2 filesystems

2020-05-26 Thread Daniel Drake
ext2 (and ext3, ext4) filesystems write the number of free inodes to location 0x410. On a minix filesystem, that same location is used for the minix superblock magic number. If the number of free inodes on an ext2 filesystem is equal to any of the four minix superblock magic values plus any multi