Aw: Re: linux git init/clone on Netapp NTFS security style volumes

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

 



> Gesendet: Sonntag, 07. Juli 2024 um 21:54 Uhr
> Von: "brian m. carlson" <sandals@xxxxxxxxxxxxxxxxxxxx>
> An: github@xxxxxxxxx
> Cc: git@xxxxxxxxxxxxxxx
> Betreff: Re: linux git init/clone on Netapp NTFS security style volumes
>
> On 2024-07-06 at 19:35:30, github@xxxxxxxxx wrote:
> > Hello,
> >  
> > I'm trying to execute git init and git clone operations on a linux
> > client that mounts a Netapp volume with NTFS Security Style. Meaning
> > the client is Linux based but the filesystem is managed from Windows
> > side - especially linux chmod operations are not permitted.
> >  
> > Maybe a new CLI option might be helpful to skip those chmod operations.
> 
> I'm not surprised by this, because Windows volumes under WSL also have
> the same problem.  However, I don't see the behaviour you describe when
> creating a new file system with NTFS on Linux and using ntfs-3g to
> mount with default options.  In my case, everything works just fine.
> 
> Note that I didn't try using the old non-FUSE driver because that's
> deprecated and I don't believe it's available anymore in Debian sid.
> 
> What OS (including version) are you using and how are you mounting the
> file system?
> -- 
> brian m. carlson (they/them or he/him)
> Toronto, Ontario, CA
> 

The feature is very specific to Netapp. The (Netapp) volume is mounted using NFSv4, but chmod operations are not allowed as permissions have to be managed using Windows.
Currently, OS is ubuntu 22.04. I'm confident that the distribution does not make a difference.

Following section of the code should be skipped for given case.
https://github.com/git/git/blob/master/config.c#L3434-L3438

		if (chmod(get_lock_file_path(&lock), st.st_mode & 07777) < 0) {
			error_errno(_("chmod on %s failed"), get_lock_file_path(&lock));
			ret = CONFIG_NO_WRITE;
			goto out_free;
		}

I'm looking for some advice how to best skip or catch this section.

In addition, I came across this Netapp setting which might just ignore the chmod operations without Client side failure. I haven't tested it yet.
https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/Can_I_set_UNIX_style_permissions_from_an_NFS_mount_on_an_NTFS_qtree


Thank You

Josef







[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux