]> git.baikalelectronics.ru Git - kernel.git/commit
partitions/msdos: FreeBSD UFS2 file systems are not recognized
authorRichard <richard@aaazen.com>
Sun, 21 May 2017 19:27:00 +0000 (12:27 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 23 May 2017 15:16:07 +0000 (09:16 -0600)
commit66fc230c4189f4039616cb74266fe1053aeeb900
treed1425ac58a36cdb4d8ac1046719b4eda4f6748d3
parentfd5cdf554ecdef469a737100a6f943b713b06e8e
partitions/msdos: FreeBSD UFS2 file systems are not recognized

The code in block/partitions/msdos.c recognizes FreeBSD, OpenBSD
and NetBSD partitions and does a reasonable job picking out OpenBSD
and NetBSD UFS subpartitions.

But for FreeBSD the subpartitions are always "bad".

    Kernel: <bsd:bad subpartition - ignored

Though all 3 of these BSD systems use UFS as a file system, only
FreeBSD uses relative start addresses in the subpartition
declarations.

The following patch fixes this for FreeBSD partitions and leaves
the code for OpenBSD and NetBSD intact:

Signed-off-by: Richard Narron <comet.berkeley@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/partitions/msdos.c