Skip to contentSkip to conversation

fanotify13.c/setxattr01.c: Remove requirement of needs_tmpdir

PATCH New Zhao Gongyi 2 participants 2 messages Feb 27, 2021 – Mar 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fanotify13.c/setxattr01.c: Remove requirement of needs_tmpdir

The testcases aim to run on all_filesystems, so we need remove the requirement of needs_tmpdir.

---
 testcases/kernel/syscalls/fanotify/fanotify13.c | 1 -
 testcases/kernel/syscalls/setxattr/setxattr01.c | 1 -
 2 files changed, 2 deletions(-)
testcases/kernel/syscalls/fanotify/fanotify13.c +0 -1
index 6d812cdd1..1fb12ae68 100644
@@ -289,7 +289,6 @@ static struct tst_test test = {
 	.setup = do_setup,
 	.cleanup = do_cleanup,
 	.needs_root = 1,
-	.needs_tmpdir = 1,
 	.mount_device = 1,
 	.mntpoint = MOUNT_PATH,
 	.all_filesystems = 1,
testcases/kernel/syscalls/setxattr/setxattr01.c +0 -1
index 8b84dfe0d..8cd2821d0 100644
@@ -210,7 +210,6 @@ static struct tst_test test = {
 	.mntpoint = MNTPOINT,
 	.mount_device = 1,
 	.all_filesystems = 1,
-	.needs_tmpdir = 1,
 	.needs_root = 1,
 };
 

--
2.17.1

#1 lore raw

PATCH 1/1 fanotify13.c/setxattr01.c: Remove requirement of needs_tmpdir

Hi gongyi

Quoted 3 lines

The testcases aim to run on all_filesystems, so we need remove the requirement of needs_tmpdir.

This commit message is confusing. See commit dae8427740f(" Remove duplicated ".needs_tmpdir=1" when using equivalent flags").

The needs_tmpdir flag is not needed to be set when use these flags:
'.all_filesystems', '.format_device', '.mntpoint', '.mount_device' '.needs_checkpoints', '.needs_device', '.resource_file'.
These flags imply creating temporary directory.

Does have other case still have this duplicated flag?

Quoted 34 lines
---
  testcases/kernel/syscalls/fanotify/fanotify13.c | 1 -
  testcases/kernel/syscalls/setxattr/setxattr01.c | 1 -
  2 files changed, 2 deletions(-)
testcases/kernel/syscalls/fanotify/fanotify13.c +0 -1
index 6d812cdd1..1fb12ae68 100644
@@ -289,7 +289,6 @@ static struct tst_test test = {
  	.setup = do_setup,
  	.cleanup = do_cleanup,
  	.needs_root = 1,
-	.needs_tmpdir = 1,
  	.mount_device = 1,
  	.mntpoint = MOUNT_PATH,
  	.all_filesystems = 1,
testcases/kernel/syscalls/setxattr/setxattr01.c +0 -2
index 8b84dfe0d..8cd2821d0 100644
@@ -210,7 +210,6 @@ static struct tst_test test = {
  	.mntpoint = MNTPOINT,
  	.mount_device = 1,
  	.all_filesystems = 1,
-	.needs_tmpdir = 1,
  	.needs_root = 1,
  };
 
--

2.17.1