Skip to contentSkip to conversation

Set exfat file system to skip symlink

PATCH New zhanglianjie 2 participants 2 messages Apr 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Set exfat file system to skip symlink

If the kernel configuration CONF_EXFAT_FS=m, then the exfat test result is TCONF. If the kernel is not configured with CONF_EXFAT_FS=m, then the exfat test result will be TBROK (TBROK makes subsequent tests impossible). Because the exfat file system does not support symlink, the test should skip calling symlink.

---
 testcases/kernel/syscalls/chdir/chdir01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/chdir/chdir01.c +1 -1
index 23cd455d6..aa25adf6a 100644
@@ -69,7 +69,7 @@ static void setup(void)
 
 	if (!TST_RET)
 		SAFE_SYMLINK(LINK_NAME2, LINK_NAME1);
-	else if (TST_RET == -1 && TST_ERR == EPERM)
+	else if (TST_RET == -1 && (TST_ERR == EPERM || TST_ERR == ENOSYS))
 		skip_symlinks = 1;
 	else
 		tst_brk(TBROK | TTERRNO, "Cannot create symlinks");

--
2.20.1

#1 lore raw

PATCH 1/1 Set exfat file system to skip symlink

Hi,

good catch!

Quoted 1 line

If the kernel configuration CONF_EXFAT_FS=m, then the exfat test

you mean CONFIG_EXFAT_FS.

Quoted 4 lines

result is TCONF. If the kernel is not configured with CONF_EXFAT_FS=m, then the exfat test result will be TBROK (TBROK makes subsequent tests impossible). Because the exfat file system does not support symlink, the test should skip calling symlink.

I reword the commit message and merged.
Thanks!

Kind regards,
Petr