1
0
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:
Zdenek Kabelac 2008-12-10 16:15:41 +00:00
parent c7e363f98a
commit 66a706be6a
2 changed files with 6 additions and 3 deletions

View File

@ -185,6 +185,4 @@ init_root_dir_()
EOF EOF
} }
if test $(this_test_) != 000-basic; then init_root_dir_
init_root_dir_
fi

View File

@ -23,3 +23,8 @@ diff -u actual expected
# Need mdadm for some pvcreate tests # Need mdadm for some pvcreate tests
# verify mdadm is installed and in path (needed for pvcreate tests) ... is it? # verify mdadm is installed and in path (needed for pvcreate tests) ... is it?
which mdadm 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)"