chmod failure on GVFS mounted CIFS share

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

 



Dear git developers

Below my bug report:

What did you do before the bug happened? (Steps to reproduce your issue)

I do a `git init .` on a directory which is CIFS mounted via gio mount (FUSE).
On RHEL8 this needs gvfs-smb and gvfs-fuse installed.
Mount command: gio mount smb://fs01.psi.ch/my_user_name$

What did you expect to happen? (Expected behavior)

It initializes the git repo.

What happened instead? (Actual behavior)

$ git init .
error: chmod on /run/user/44951/gvfs/smb-share:server=fs01.psi.ch,share=my_user_name$/git/foo/.git/config.lock failed: Operation not supported
fatal: could not set 'core.filemode' to 'false'
$

What's different between what you expected and what actually happened?

I expect that it fully initializes the repository:

[buchel_k@lxdev07 foo]$ git status
fatal: not a git repository (or any parent up to mount point /run/user/44951)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
$ find .
.
./.git
./.git/branches
./.git/hooks
./.git/hooks/applypatch-msg.sample
./.git/hooks/commit-msg.sample
./.git/hooks/post-update.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/pre-commit.sample
./.git/hooks/pre-merge-commit.sample
./.git/hooks/pre-push.sample
./.git/hooks/pre-receive.sample
./.git/hooks/push-to-checkout.sample
./.git/hooks/sendemail-validate.sample
./.git/hooks/update.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/prepare-commit-msg.sample
./.git/info
./.git/info/exclude
./.git/description
./.git/refs
./.git/refs/heads
./.git/refs/tags
./.git/HEAD
./.git/config
./git-bugreport-2024-12-12-0951.txt
$


Anything else you want to add:

I guess the failure happens at config.c:3339 (https://github.com/git/git/blob/master/config.c#L3339).
What would it mean if the chmod there ignores "Operation not supported"?

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.43.5
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Fri Nov 15 03:46:25 EST 2024 x86_64
compiler info: gnuc: 8.5
libc info: glibc: 2.28
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]
not run from a git repository - no hooks to show


Thank you very much for your good work.

Kind regards

Konrad

--
Paul Scherrer Institut
Konrad Bucheli
Linux Systems Engineer
Core Linux Research Services
Science IT Infrastructure and Services department (AWI)
OBBA/230
Forschungstrasse 111
5232 Villigen PSI
Switzerland

Phone: +41 56 310 27 24
konrad.bucheli@xxxxxx
www.psi.ch





[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