Bug 19171 - mounts USB memory with shortname=lower and this makes case-sensitive programs not work
Summary: mounts USB memory with shortname=lower and this makes case-sensitive programs...
Status: CLOSED NOTABUG
Alias: None
Product: Branch 4.1
Classification: Distributions
Component: hal (show other bugs)
Version: unspecified
Hardware: all Linux
: P2 normal
Assignee: Valery Inozemtsev
QA Contact: qa-4.1@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-13 15:19 MSK by Ivan Zakharyaschev
Modified: 2009-03-15 14:50 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2009-03-13 15:19:25 MSK
hal-0.5.11-alt14.M41.1 in Desktop 4.1

I inserted a USB flash memeory, and mounted it through the KDE menu. It has been mounted like this:

/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,noatime,flush,uid=500,utf8,shortname=lower,fmask=117,quiet)

and this makes git-1.5.5.5-alt1 fail because it is sensitive to the case of .git/HEAD:

$ strace -fF git status
...
getcwd("/media/disk/my/mordvin/compilations"..., 4096) = 36
access(".git/objects", X_OK)            = 0
access(".git/refs", X_OK)               = 0
lstat64(".git/HEAD", 0xbfa25644)        = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/objects", X_OK)            = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/objects", X_OK)            = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/objects", X_OK)            = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/objects", X_OK)            = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/objects", X_OK)            = -1 ENOENT (No such file or directory)
access("./objects", X_OK)               = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
write(2, "fatal: Not a git repository\n"..., 28fatal: Not a git repository
) = 28
exit_group(128)                         = ?
Process 12165 detached
$ 

Suggestion: shortname=winnt seems to be the most sensible option.
Comment 1 Ivan Zakharyaschev 2009-03-13 15:24:28 MSK
Workaround: add to /etc/fstab:

/dev/sdb1 /mnt/usbmem1 vfat user,rw,nosuid,nodev,noatime,flush,uid=500,utf8,shortname=winnt,fmask=117,quiet 0 0

and use it.
Comment 2 Ivan Zakharyaschev 2009-03-13 15:31:46 MSK
This isn't so on Lite 4.0.3: there, I was able to mount the USB memory through XFCE, and then use git on it.
Comment 3 Valery Inozemtsev 2009-03-15 14:49:52 MSK
hal не занимается монтированием, он предоставляет только интерфейс для этого. опции монтирования определяет то что пользуется этим интерфейсом