5fbc7c59fd22c5a6531b40b0759624b680a95e52 in btrfs_kernel_fixes failed on B
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Medium
|
Po-Hsu Lin |
Bug Description
Test failed with mount operation:
mount: /tmp/mnt-
This patch could be found in Bionic tree:
https:/
Invoking test 5fbc7c59fd22c5a
fix 5fbc7c59fd22c5a
Btrfs: fix unfinished readahead thread for raid5/6 degraded mounting
Steps to reproduce:
# mkfs.btrfs -f /dev/sd[b-f] -m raid5 -d raid5
# mkfs.ext4 /dev/sdc --->corrupt one of btrfs device
# mount /dev/sdb /mnt -o degraded
# btrfs scrub start -BRd /mnt
This is because readahead would skip missing device, this is not true
for RAID5/6, because REQ_GET_
mapping. If expected data locates in missing device, readahead thread
would not call __readahead_hook() which makes event @rc->elems=0
wait forever.
Fix this problem by checking return value of btrfs_map_
can only skip missing device safely if there are several mirrors.
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: 4096/524288*
Creating filesystem with 524288 4k blocks and 131072 inodes
Filesystem UUID: c4b9a22f-
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: 0/16***** *****done
Writing inode tables: 0/16***** *****done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: 0/16***** *****done
mount: /tmp/mnt-
ERROR: not a btrfs filesystem: /tmp/mnt-
btrfs scrub start on /tmp/mnt-
umount: /tmp/mnt-
FAIL: 5fbc7c59fd22c5a
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-43-generic x86_64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Dec 31 02:11 seq
crw-rw---- 1 root audio 116, 33 Dec 31 02:11 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Thu Jan 3 07:37:01 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
PciMultimedia:
ProcFB: 0 cirrusdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.173.2
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: Ubuntu-
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
no longer affects: | linux (Ubuntu) |
This change was made by a bot.