Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 660438 Details for
Bug 742320
sys-kernel/gentoo-sources-5.8.8: fails recognizing software RAID and hangs on boot if the root partition is on a raid volume
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Purported Upstream fix
block-bdev_del_partition-fix.patch (text/plain), 1.07 KB, created by
Mike Pagano
on 2020-09-15 18:51:13 UTC
(
hide
)
Description:
Purported Upstream fix
Filename:
MIME Type:
Creator:
Mike Pagano
Created:
2020-09-15 18:51:13 UTC
Size:
1.07 KB
patch
obsolete
>From 88ce2a530cc9865a894454b2e40eba5957a60e1a Mon Sep 17 00:00:00 2001 >From: Christoph Hellwig <hch@lst.de> >Date: Tue, 8 Sep 2020 16:15:06 +0200 >Subject: block: restore a specific error code in bdev_del_partition > >mdadm relies on the fact that deleting an invalid partition returns >-ENXIO or -ENOTTY to detect if a block device is a partition or a >whole device. > >Fixes: 08fc1ab6d748 ("block: fix locking in bdev_del_partition") >Reported-by: kernel test robot <rong.a.chen@intel.com> >Signed-off-by: Christoph Hellwig <hch@lst.de> >Signed-off-by: Jens Axboe <axboe@kernel.dk> >--- > block/partitions/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/block/partitions/core.c b/block/partitions/core.c >index 5b4869c08fb38..722406b841dfc 100644 >--- a/block/partitions/core.c >+++ b/block/partitions/core.c >@@ -537,7 +537,7 @@ int bdev_del_partition(struct block_device *bdev, int partno) > > bdevp = bdget_disk(bdev->bd_disk, partno); > if (!bdevp) >- return -ENOMEM; >+ return -ENXIO; > > mutex_lock(&bdevp->bd_mutex); > mutex_lock_nested(&bdev->bd_mutex, 1); >-- >cgit 1.2.3-1.el7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 742320
: 660438