]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Jun 2017 05:10:48 +0000 (07:10 +0200)
commitb1584cecdfaba6d097889c53f180b6532902310f
tree65c93bd30fdd79a4946acf900a81e25f33311b59
parent8135cc86cec82572591f6bfe75a7e8aafec10a1b
partitions/msdos: FreeBSD UFS2 file systems are not recognized

commit 223220356d5ebc05ead9a8d697abb0c0a906fc81 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/partitions/msdos.c