checkarray --all only processes one array if scheduling class not specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Debian) |
New
|
Unknown
|
|||
mdadm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If --all given but no scheduling class specified only one array is checked. This appears to be because at lines 194-200 the variable ionice is checked. If no class is given then this is blank and the script exits.
Either a default should be used or validation included to check a class has been given.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: mdadm 3.3-2ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-22-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
Date: Sat Jul 11 14:57:58 2015
InstallationDate: Installed on 2015-06-12 (29 days ago)
InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MDadmExamine.
/dev/sda:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
MDadmExamine.
/dev/sdb:
MBR Magic : aa55
Partition[0] : 2930277167 sectors at 1 (type ee)
MDadmExamine.
MDadmExamine.
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: mdadm
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/31/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F2
dmi.board.
dmi.board.name: F2A85X-UP4
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'
Changed in mdadm (Debian): | |
status: | Unknown → New |
Reviewing the documentation, not specifying the scheduling class seems valid. In that case I thing the correction is to change 'break' on line 199 to 'continue'