[PATCH 2/2 V2] fstests: add _require_mknod

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Add a _require_mknod test so that filesystems with no ->mknod
operation will _notrun instead of fail.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

V2 trim the long line, sorry.

diff --git a/common/rc b/common/rc
index 2734dbf6..b50a4294 100644
--- a/common/rc
+++ b/common/rc
@@ -4214,6 +4215,13 @@ _require_sysctl()
 	sysctl $name &>/dev/null || _notrun "$name sysctl unavailable"
 }
 
+_require_mknod()
+{
+	mknod $TEST_DIR/$tmp.null c 1 3 \
+		|| _notrun "$FSTYP does not support mknod/mkfifo"
+	rm -f $TEST_DIR/$tmp.null
+}
+
 init_rc
 
 ################################################################################





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux