Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#37946 - Git doesn't work correctly on samba share after upgrading kernel to 3.12
Attached to Project:
Arch Linux
Opened by Maciej (niski) - Friday, 29 November 2013, 07:17 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 15 January 2014, 14:13 GMT
Opened by Maciej (niski) - Friday, 29 November 2013, 07:17 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 15 January 2014, 14:13 GMT
|
DetailsDescription:
After upgrading kernel to 3.12 I cannot use 'git add' nor 'git commit' as regular user on samba share. They do work with sudo. Additional info: I'm using git 1.8.4.2, samba 4.1.1 on 64-bit Archlinux. I haven't been changing anything in git nor fstab configuration since ages. The problem seems not to be Share is mounted using systemd automount in /etc/fstab: //SERVER/DATA /media/smb cifs user,noauto,credentials=/etc/samba/creds,\ workgroup=PRV,uid=1000,gid=users,_netdev,comment=systemd.automount 0 0 mount appears as: //SERVER/DATA on /media/smb type cifs (rw,nosuid,nodev,noexec,relatime,vers=1.0,\ cache=strict,domain=PRV,uid=1000,forceuid,gid=100,forcegid,addr=10.1.1.5,\ file_mode=0755,dir_mode=0755,nounix,serverino,rsize=61440,wsize=65536,actimeo=1) 'git init && touch test && strace git add test' on empty directory inside the share returns: open(".git/objects/info/alternates", O_RDONLY|O_NOATIME) = -1 ENOENT (No such file or directory) access(".git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391", F_OK) = -1 ENOENT (No such file or directory) open(".git/objects/e6/tmp_obj_GvIyn7", O_RDWR|O_CREAT|O_EXCL, 0444) = -1 EACCES (Permission denied) write(2, "error: insufficient permission f"..., 88error: insufficient permission for adding an object to repository database .git/objects ) = 88 close(4) = 0 write(2, "error: test: failed to insert in"..., 44error: test: failed to insert into database ) = 44 write(2, "error: unable to index file test"..., 33error: unable to index file test ) = 33 Steps to reproduce: 1. cd into already mounted share 2. mkdir test && cd test 3. git init 4. touch test 5. git add test |
This task depends upon
thanks for your bug report.
I've got exactly the same issue since a few days. I first thought the reason is the following update:
[2013-11-25 10:00] [PACMAN] upgraded smbclient (4.1.1-1 -> 4.1.2-1)
[2013-11-25 10:00] [PACMAN] upgraded samba (4.1.1-1 -> 4.1.2-1)
But after reading your message I noticed that I did a kernel update from 3.11 to 3.12 with the same update.
So the kernel update may have introduced this bug as well.
There's a patch appended which seems to fix the issue. Of course it would be better if it got included in the tree.