Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 884274 Details for
Bug 922809
sys-boot/grub - grub-mkconfig stopped working after upgrading to kernel 6.7.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Working fix (https://github.com/kdave/btrfs-devel/commit/b80f3ec6592c69f88ebc74a4e16676af161e2759)
b80f3ec6592c69f88ebc74a4e16676af161e2759.patch (text/plain), 2.59 KB, created by
Bernd Feige
on 2024-02-05 13:14:02 UTC
(
hide
)
Description:
Working fix (https://github.com/kdave/btrfs-devel/commit/b80f3ec6592c69f88ebc74a4e16676af161e2759)
Filename:
MIME Type:
Creator:
Bernd Feige
Created:
2024-02-05 13:14:02 UTC
Size:
2.59 KB
patch
obsolete
>From b80f3ec6592c69f88ebc74a4e16676af161e2759 Mon Sep 17 00:00:00 2001 >From: David Sterba <dsterba@suse.com> >Date: Mon, 5 Feb 2024 11:29:13 +0100 >Subject: [PATCH] the fix > >Signed-off-by: David Sterba <dsterba@suse.com> >--- > fs/btrfs/volumes.c | 30 ++++++++++++++---------------- > 1 file changed, 14 insertions(+), 16 deletions(-) > >diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c >index f627674b37db50..6165735ab47602 100644 >--- a/fs/btrfs/volumes.c >+++ b/fs/btrfs/volumes.c >@@ -729,6 +729,7 @@ static noinline struct btrfs_device *device_list_add(const char *path, > bool same_fsid_diff_dev = false; > bool has_metadata_uuid = (btrfs_super_incompat_flags(disk_super) & > BTRFS_FEATURE_INCOMPAT_METADATA_UUID); >+ bool can_create_new = *new_device_added; > > if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_CHANGING_FSID_V2) { > btrfs_err(NULL, >@@ -744,6 +745,7 @@ static noinline struct btrfs_device *device_list_add(const char *path, > return ERR_PTR(error); > } > >+ *new_device_added = false; > fs_devices = find_fsid_by_device(disk_super, path_devt, &same_fsid_diff_dev); > > if (!fs_devices) { >@@ -795,6 +797,15 @@ static noinline struct btrfs_device *device_list_add(const char *path, > return ERR_PTR(-EBUSY); > } > >+ if (!can_create_new) { >+ pr_info( >+ "BTRFS: device fsid %pU devid %llu transid %llu %s skip registration scanned by %s (%d)\n", >+ disk_super->fsid, devid, found_transid, path, >+ current->comm, task_pid_nr(current)); >+ mutex_unlock(&fs_devices->device_list_mutex); >+ return NULL; >+ } >+ > nofs_flag = memalloc_nofs_save(); > device = btrfs_alloc_device(NULL, &devid, > disk_super->dev_item.uuid, path); >@@ -1346,27 +1357,14 @@ struct btrfs_device *btrfs_scan_one_device(const char *path, blk_mode_t flags, > goto error_bdev_put; > } > >- if (!mount_arg_dev && btrfs_super_num_devices(disk_super) == 1 && >- !(btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING)) { >- dev_t devt; >- >- ret = lookup_bdev(path, &devt); >- if (ret) >- btrfs_warn(NULL, "lookup bdev failed for path %s: %d", >- path, ret); >- else >- btrfs_free_stale_devices(devt, NULL); >- >- pr_debug("BTRFS: skip registering single non-seed device %s\n", path); >- device = NULL; >- goto free_disk_super; >- } >+ if (mount_arg_dev || btrfs_super_num_devices(disk_super) != 1 || >+ (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING)) >+ new_device_added = true; > > device = device_list_add(path, disk_super, &new_device_added); > if (!IS_ERR(device) && new_device_added) > btrfs_free_stale_devices(device->devt, device); > >-free_disk_super: > btrfs_release_disk_super(disk_super); > > error_bdev_put:
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 922809
:
883027
| 884274