Skip to contentSkip to conversation

generic/401: Test mountpoint not subdir for filetype support

PATCH In review Eric Sandeen 4 participants 4 messages Jun 23, 2017 – Jun 26, 2017

lore
Share & tools
lore
#0 lore raw

With pending changes for xfs_info/xfs_growfs, the tool now requires an actual mount point to work properly.

Change this test to test $SCRATCH_MNT not the subdir beneath it.

---

tests/generic/401 +1 -1
index 04bd1a5..74f2bea 100755
@@ -79,7 +79,7 @@ mknod $testdir/p p
 src/t_dir_type $testdir d | grep -F '.' | sort
 
 # Test that either all file types are unknown or all are correct
-if _supports_filetype $testdir; then
+if _supports_filetype $SCRATCH_MNT; then
 	# print real file types
 	src/t_dir_type $testdir | grep -vF '.' | sort
 else
#1 lore raw

PATCH 1/1 generic/401: Test mountpoint not subdir for filetype support

With pending changes for xfs_info/xfs_growfs, the tool now requires an actual mount point to work properly.

Change this test to test $SCRATCH_MNT not the subdir beneath it.

---

Sorry, forgot [PATCH], adding to make sure Eryu sees it.

tests/generic/401 +1 -1
index 04bd1a5..74f2bea 100755
@@ -79,7 +79,7 @@ mknod $testdir/p p
 src/t_dir_type $testdir d | grep -F '.' | sort
 
 # Test that either all file types are unknown or all are correct
-if _supports_filetype $testdir; then
+if _supports_filetype $SCRATCH_MNT; then
 	# print real file types
 	src/t_dir_type $testdir | grep -vF '.' | sort
 else
Reviewed-by on v1 1/1
#2 lore raw
Quoted 7 lines · Eric Sandeen

With pending changes for xfs_info/xfs_growfs, the tool now requires an actual mount point to work properly.

Change this test to test $SCRATCH_MNT not the subdir beneath it.

Quoted 22 lines

---

Sorry, forgot [PATCH], adding to make sure Eryu sees it.

tests/generic/401 +1 -2
index 04bd1a5..74f2bea 100755
@@ -79,7 +79,7 @@ mknod $testdir/p p
 src/t_dir_type $testdir d | grep -F '.' | sort
 
 # Test that either all file types are unknown or all are correct
-if _supports_filetype $testdir; then
+if _supports_filetype $SCRATCH_MNT; then
 	# print real file types
 	src/t_dir_type $testdir | grep -vF '.' | sort
 else
 
--

To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Eric Sandeen
Quoted 10 lines · Eric Sandeen

With pending changes for xfs_info/xfs_growfs, the tool now requires an actual mount point to work properly.

Change this test to test $SCRATCH_MNT not the subdir beneath it.

---

Sorry, forgot [PATCH], adding to make sure Eryu sees it.

Thanks! Saw it :)

Eryu

Quoted 19 lines
tests/generic/401 +1 -2
index 04bd1a5..74f2bea 100755
@@ -79,7 +79,7 @@ mknod $testdir/p p
 src/t_dir_type $testdir d | grep -F '.' | sort
 
 # Test that either all file types are unknown or all are correct
-if _supports_filetype $testdir; then
+if _supports_filetype $SCRATCH_MNT; then
 	# print real file types
 	src/t_dir_type $testdir | grep -vF '.' | sort
 else
 
--

To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html