mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
add simple test for dev node usability (detect devices mounted with nodev)
This commit is contained in:
parent
c7e363f98a
commit
66a706be6a
@ -185,6 +185,4 @@ init_root_dir_()
|
||||
EOF
|
||||
}
|
||||
|
||||
if test $(this_test_) != 000-basic; then
|
||||
init_root_dir_
|
||||
fi
|
||||
init_root_dir_
|
||||
|
@ -23,3 +23,8 @@ diff -u actual expected
|
||||
# Need mdadm for some pvcreate tests
|
||||
# verify mdadm is installed and in path (needed for pvcreate tests) ... is it?
|
||||
which mdadm
|
||||
|
||||
mknod $G_root_/dev/null c 1 3 ||
|
||||
error "Can't create nodes on filesystem"
|
||||
echo >$G_root_/dev/null ||
|
||||
error "Filesystem for tests does not allow using device nodes (check nodev)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user