]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 27 Jun 2017 13:16:33 +0000 (10:16 -0300)
commit66ecba5ad4a2b9e5b7b4f419be1ce79b527c5364
treef5872b84fe85d749035636c8ca5fea70a3b2a66a
parentf57b6da64a7dbb7b6f9e5bbc6df53b5530b7ee8c
partitions/msdos: FreeBSD UFS2 file systems are not recognized

BugLink: http://bugs.launchpad.net/bugs/1698817
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
block/partitions/msdos.c