diff mbox series

[09/11] vfs: Add DIR0 constant

Message ID 20230307114507.332309-10-rodrigo@sdfg.com.ar (mailing list archive)
State New, archived
Headers show
Series Tests for idmapped tmpfs | expand

Commit Message

Rodrigo Campos March 7, 2023, 11:45 a.m. UTC
This will be used by tests that call other tests within themselves.

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
---
 src/vfs/utils.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Christian Brauner March 7, 2023, 4:53 p.m. UTC | #1
On Tue, Mar 07, 2023 at 12:45:05PM +0100, Rodrigo Campos wrote:
> This will be used by tests that call other tests within themselves.
> 
> Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
> ---
>  src/vfs/utils.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git src/vfs/utils.h src/vfs/utils.h
> index 4c796559..c52a0738 100644
> --- src/vfs/utils.h
> +++ src/vfs/utils.h
> @@ -45,6 +45,8 @@
>  #define DIR2 "dir2"
>  #define DIR3 "dir3"
>  #define DIR1_RENAME "dir1_rename"
> +// This directory may be used by tests that call another test.
> +#define DIR0 "dir0"

I think you can fold that into whatever patch is using this, same for
the addition of t->in_user_ns thing...
Rodrigo Campos March 7, 2023, 5:33 p.m. UTC | #2
On 3/7/23 17:53, Christian Brauner wrote:
> On Tue, Mar 07, 2023 at 12:45:05PM +0100, Rodrigo Campos wrote:
>> This will be used by tests that call other tests within themselves.
>>
>> Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
>> ---
>>   src/vfs/utils.h | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git src/vfs/utils.h src/vfs/utils.h
>> index 4c796559..c52a0738 100644
>> --- src/vfs/utils.h
>> +++ src/vfs/utils.h
>> @@ -45,6 +45,8 @@
>>   #define DIR2 "dir2"
>>   #define DIR3 "dir3"
>>   #define DIR1_RENAME "dir1_rename"
>> +// This directory may be used by tests that call another test.
>> +#define DIR0 "dir0"
> 
> I think you can fold that into whatever patch is using this, same for
> the addition of t->in_user_ns thing...

Will do both, thanks!
diff mbox series

Patch

diff --git src/vfs/utils.h src/vfs/utils.h
index 4c796559..c52a0738 100644
--- src/vfs/utils.h
+++ src/vfs/utils.h
@@ -45,6 +45,8 @@ 
 #define DIR2 "dir2"
 #define DIR3 "dir3"
 #define DIR1_RENAME "dir1_rename"
+// This directory may be used by tests that call another test.
+#define DIR0 "dir0"
 #define HARDLINK1 "hardlink1"
 #define SYMLINK1 "symlink1"
 #define SYMLINK_USER1 "symlink_user1"