Skip to contentSkip to conversation

rwtest: Remove df symlink check

PATCH Applied Mengchi Cheng via ltp 2 participants 2 messages Dec 2, 2023 – Dec 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rwtest: Remove df symlink check

busybox has -P option since 2008. df symlink works fine with directory options in later versions. The check is not necessary.

---
 testcases/kernel/fs/doio/rwtest | 6 ------
 1 file changed, 6 deletions(-)
testcases/kernel/fs/doio/rwtest +0 -6
index 6725e1426..f15ce17e6 100644
@@ -327,12 +327,6 @@ do
 		then
 			blks=${szblks[$n]}
 		else
-			# If df is a symlink (to busybox) then do not pass the $dir and $dfOpts
-			# parameters because they don't work as expected
-                        if test -h $(which df)
-                           then
-                               dir=""; dfOpts="";
-                        fi
 
 			blks=$(df $dfOpts $dir |
 			(while read fs blks used avail cap mountpoint
Signature · 5 lines
2.25.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Applied
#1 lore raw

Hi Mengchi,

merged, thanks!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp