[#5657] [ltp] ltp test case mount03/umount03 fail with error of "No such device"
Submitted By: Vivi Li
Open Date
2009-11-04 04:03:28 Close Date
2009-11-12 05:02:30
Priority:
Medium Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
Tests Board:
N/A
Processor:
BF548 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1-rc9
App binary format:
N/A
Summary: [ltp] ltp test case mount03/umount03 fail with error of "No such device"
Details:
ltp test case mount03/umount03 fail with error of "No such device".
This is not a regression result. These case are not test before.
Bellow is the log on bf548-ezkit, and /dev/sdb1 is a ext2 fs on usb.
--
root:/> mount03 -D /dev/sdb1
mount03 1 FAIL : mount(2) failed errno = 19 : No such device
mount03 2 FAIL : mount(2) failed errno = 19 : No such device
mount03 3 FAIL : mount(2) failed errno = 19 : No such device
mount03 4 FAIL : mount(2) failed errno = 19 : No such device
mount03 5 FAIL : mount(2) failed errno = 19 : No such device
mount03 6 FAIL : mount(2) failed errno = 19 : No such device
root:/>
root:/>
root:/> umount03 -D /dev/sdb1
umount03 1 BROK : mount(2) failed to mount device /dev/sdb1 errno = 19 : No such device
root:/>
--
Follow-ups
--- Graf Yang 2009-11-11 04:31:00
Patch the attached patch fiel for mount03.c/umount03.c, the test pass,
root:/ltp> ./mount03 -D /dev/sda1
mount03 1 PASS : mount(2) Passed for rwflag MS_RDONLY - mount read-only
mount03 2 PASS : mount(2) Passed for rwflag MS_NODEV - disallow access
to device special files
mount03 3 PASS : mount(2) Passed for rwflag MS_NOEXEC - disallow program
execution
mount03 4 PASS : mount(2) Passed for rwflag MS_SYNCHRONOUS - writes are
synced at once
mount03 5 PASS : mount(2) Passed for rwflag MS_REMOUNT - alter flags of
a mounted FS
mount03 6 PASS : mount(2) Passed for rwflag MS_NOSUID - ignore suid and
sgid bits
root:/ltp> ./umount03 -D /dev/sda1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
umount03 1 PASS : umount(2) expected failure Got errno - EPERM : User not
Super User/root
--- Graf Yang 2009-11-11 04:40:35
I test ltp on /dev/sda1 which fs type default is set to ext2.
--- Vivi Li 2009-11-12 05:02:30
OK now.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
umount03.patch application/octet-stream 875 Graf Yang
mount03.patch application/octet-stream 1513 Graf Yang