Whamcloud - gitweb
LU-16335 mdt: skip target check for rm_entry
[fs/lustre-release.git] / lustre / tests / test-framework.sh
index 478b6c5..75ce9f4 100755 (executable)
@@ -10817,6 +10817,13 @@ statx_supported() {
        return $?
 }
 
+# lfs rm_entry is disabled on native client
+is_rmentry_supported() {
+       $LFS rm_entry $DIR/dir/not/exists > /dev/null
+       # is return code ENOENT?
+       (( $? == 2 ))
+}
+
 #
 # wrappers for createmany and unlinkmany
 # to set debug=0 if number of creates is high enough