Skip to contentSkip to conversation

De-duplication: Remove requirement of needs_tmpdir

PATCH New Zhao Gongyi 2 participants 2 messages Mar 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 De-duplication: Remove requirement of needs_tmpdir

The 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.

For those:

	fanotify13.c
	setxattr01.c
	fanotify16.c
	close_range01.c
	clone301.c
	fanotify09.c
---
 testcases/kernel/syscalls/clone3/clone301.c           | 1 -
 testcases/kernel/syscalls/close_range/close_range01.c | 1 -
 testcases/kernel/syscalls/fanotify/fanotify09.c       | 1 -
 testcases/kernel/syscalls/fanotify/fanotify13.c       | 1 -
 testcases/kernel/syscalls/fanotify/fanotify16.c       | 1 -
 testcases/kernel/syscalls/setxattr/setxattr01.c       | 1 -
 6 files changed, 6 deletions(-)
testcases/kernel/syscalls/clone3/clone301.c +0 -1
index bf009e940..11787fc7e 100644
@@ -172,7 +172,6 @@ static struct tst_test test = {
 	.test = run,
 	.setup = setup,
 	.needs_root = 1,
-	.needs_tmpdir = 1,
 	.needs_checkpoints = 1,
 	.bufs = (struct tst_buffers []) {
 		{&args, .size = sizeof(*args)},
testcases/kernel/syscalls/close_range/close_range01.c +0 -1
index 56def2426..6ecd4576e 100644
@@ -190,7 +190,6 @@ static void run(unsigned int n)
 
 static struct tst_test test = {
 	.tcnt = 4,
-	.needs_tmpdir = 1,
 	.forks_child = 1,
 	.mount_device = 1,
 	.mntpoint = "mnt",
testcases/kernel/syscalls/fanotify/fanotify09.c +0 -1
index 918e40274..089655d29 100644
@@ -365,7 +365,6 @@ static struct tst_test test = {
 	.cleanup = cleanup,
 	.mount_device = 1,
 	.mntpoint = MOUNT_PATH,
-	.needs_tmpdir = 1,
 	.needs_root = 1,
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "54a307ba8d3c"},
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/fanotify/fanotify16.c +0 -1
index c4b8a5abc..801d05cc2 100644
@@ -562,7 +562,6 @@ static struct tst_test test = {
 	.mount_device = 1,
 	.mntpoint = MOUNT_PATH,
 	.all_filesystems = 1,
-	.needs_tmpdir = 1,
 	.needs_root = 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

Applied
#1 lore raw

PATCH 1/1 De-duplication: Remove requirement of needs_tmpdir

Hi Gongyi

Quoted 4 lines

The 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.

Merged, thanks!