Re: [PATCH 11/11] vfs: Use tabs to indent, not spaces

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Tue, Mar 07, 2023 at 05:55:08PM +0100, Christian Brauner wrote:
> On Tue, Mar 07, 2023 at 12:45:07PM +0100, Rodrigo Campos wrote:
> > Signed-off-by: Rodrigo Campos <rodrigo@xxxxxxxxxxx>
> > ---
> 
> I think I explicitly used spaces but I don't know why anymore tbh. So
> I'll live that to Zorro whether he wants to take this patch or not. I
> have no strong opinion. :)

Thanks Christian, I prefer 8 character tabs generally, I recommend that
but it's not mandatory.

If I have to say a restriction, "please use/keep using same indentation
format in a same sub-case or sub-project (e.g. src/vfs/*, ltp/fsstress.c)"

Anyway, I don't think we need to use a single patch to change code indentation
only (except it's a big mess:). Better to pay attention to it in regular case
writting and reviewing.

Thanks,
Zorro

> 
> >  src/vfs/vfstest.c | 30 +++++++++++++++---------------
> >  1 file changed, 15 insertions(+), 15 deletions(-)
> > 
> > diff --git src/vfs/vfstest.c src/vfs/vfstest.c
> > index 3d75b1e3..dea344cc 100644
> > --- src/vfs/vfstest.c
> > +++ src/vfs/vfstest.c
> > @@ -107,7 +107,7 @@ static int hardlink_crossing_mounts(const struct vfstest_info *info)
> >  	int fret = -1;
> >  	int file1_fd = -EBADF, open_tree_fd = -EBADF;
> >  
> > -        if (chown_r(info->t_mnt_fd, T_DIR1, 10000, 10000)) {
> > +	if (chown_r(info->t_mnt_fd, T_DIR1, 10000, 10000)) {
> >  		log_stderr("failure: chown_r");
> >  		goto out;
> >  	}
> > @@ -2307,22 +2307,22 @@ static void usage(void)
> >  	fprintf(stderr, "    Run idmapped mount tests\n\n");
> >  
> >  	fprintf(stderr, "Arguments:\n");
> > -	fprintf(stderr, "--device                            Device used in the tests\n");
> > -	fprintf(stderr, "--fstype                            Filesystem type used in the tests\n");
> > -	fprintf(stderr, "--help                              Print help\n");
> > -	fprintf(stderr, "--mountpoint                        Mountpoint of device\n");
> > -	fprintf(stderr, "--idmapped-mounts-supported         Test whether idmapped mounts are supported on this filesystem\n");
> > -	fprintf(stderr, "--scratch-mountpoint                Mountpoint of scratch device used in the tests\n");
> > -	fprintf(stderr, "--scratch-device                    Scratch device used in the tests\n");
> > -	fprintf(stderr, "--test-core                         Run core idmapped mount testsuite\n");
> > -	fprintf(stderr, "--test-fscaps-regression            Run fscap regression tests\n");
> > -	fprintf(stderr, "--test-nested-userns                Run nested userns idmapped mount testsuite\n");
> > -	fprintf(stderr, "--test-btrfs                        Run btrfs specific idmapped mount testsuite\n");
> > -	fprintf(stderr, "--test-tmpfs                        Run tmpfs specific idmapped mount testsuite\n");
> > +	fprintf(stderr, "--device			     Device used in the tests\n");
> > +	fprintf(stderr, "--fstype			     Filesystem type used in the tests\n");
> > +	fprintf(stderr, "--help				     Print help\n");
> > +	fprintf(stderr, "--mountpoint			     Mountpoint of device\n");
> > +	fprintf(stderr, "--idmapped-mounts-supported	     Test whether idmapped mounts are supported on this filesystem\n");
> > +	fprintf(stderr, "--scratch-mountpoint		     Mountpoint of scratch device used in the tests\n");
> > +	fprintf(stderr, "--scratch-device		     Scratch device used in the tests\n");
> > +	fprintf(stderr, "--test-core			     Run core idmapped mount testsuite\n");
> > +	fprintf(stderr, "--test-fscaps-regression	     Run fscap regression tests\n");
> > +	fprintf(stderr, "--test-nested-userns		     Run nested userns idmapped mount testsuite\n");
> > +	fprintf(stderr, "--test-btrfs			     Run btrfs specific idmapped mount testsuite\n");
> > +	fprintf(stderr, "--test-tmpfs			     Run tmpfs specific idmapped mount testsuite\n");
> >  	fprintf(stderr, "--test-setattr-fix-968219708108     Run setattr regression tests\n");
> >  	fprintf(stderr, "--test-setxattr-fix-705191b03d50    Run setxattr regression tests\n");
> > -	fprintf(stderr, "--test-setgid-create-umask          Run setgid with umask tests\n");
> > -	fprintf(stderr, "--test-setgid-create-acl            Run setgid with acl tests\n");
> > +	fprintf(stderr, "--test-setgid-create-umask	     Run setgid with umask tests\n");
> > +	fprintf(stderr, "--test-setgid-create-acl	     Run setgid with acl tests\n");
> >  
> >  	_exit(EXIT_SUCCESS);
> >  }
> > -- 
> > 2.39.2
> > 
> 




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux