Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551020

Summary: sys-fs/e2fsprogs whole device check is inconsistent
Product: Gentoo Linux Reporter: Richard Yao (RETIRED) <ryao>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Removal of whole device check

Description Richard Yao (RETIRED) gentoo-dev 2015-06-02 17:04:42 UTC
Created attachment 404470 [details, diff]
Removal of whole device check

Making a filesystem with a raw block device will semi-randomly prompt asking if we are sure. This is because `check_plausibility()` assumes that the Linux device numbering code assumes that raw block devices are assigned minor versions that are 0 modulo 64, when modern Linux systems are 0 modulo 16.

A patch was submitted to upstream yesterday. It has signed-off from myself and  reviewed-by from Andreas Dilger:

http://article.gmane.org/gmane.comp.file-systems.ext4/48840

HEAD moved the code that needs to be patched from misc/util.c to misc/plausibility.c, so the upstream patch does not apply to distribution packaging. I have taken the liberty of attaching a backported version of the patch.

I realize that upstream has not had time to process this yet, but my collegues insisted that I file issues with major distributions to request this patch be backported anyway. If I should have waited for a solution to be merged upstream, please let me know so that I can pass that information on to my collegues.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2015-06-15 13:41:03 UTC
This patch has been accepted by upstream:

http://article.gmane.org/gmane.comp.file-systems.ext4/48993
Comment 2 SpanKY gentoo-dev 2015-07-09 10:25:30 UTC
unless it's a critical issue, or there's another revbump coming up (i don't think there is?), then i'd just wait for the next release