sgan81 / apfs-fuse

FUSE driver for APFS (Apple File System)
GNU General Public License v2.0
1.78k stars 164 forks source link

Case-sensitivity when accessing files #146

Open citruz opened 3 years ago

citruz commented 3 years ago

Hi,

I am mounting a case-insensitive APFS drive, but the OS still seems to handle it in a case-sensitive matter. For example, I can ls /Applications but not ls /applications. This is different when e.g. mounting a HFS drive. Am I doing something wrong or is this a limitation of (apfs-)fuse?

apfsutil:

./apfsutil /dev/nbd0
Found partitions:
C12A7328-F81F-11D2-4BBA-00A0C93EC93B 33395894-2205-43BB-28A3-B6AC9BFAED90 0000000000000028 0000000000064027 0000000000000000 EFI System Partition
7C3457EF-0000-11AA-11AA-00306543ECAC C88342FD-1743-44BD-9281-F9934E33C4AF 0000000000064028 00000000201FFFD7 0000000000000000
First APFS partition is 1

Volume 0 519EEE7D-264E-4186-8825-216D0D8AC17E
---------------------------------------------
Role:               No specific role
Name:               Macintosh HD (Case-insensitive)
Capacity Consumed:  13586386944 Bytes
FileVault:          No
Snapshots:
$ ls
Applications  bin  cores  dev  etc  home  installer.failurerequests  Library  net  Network  private  sbin  System  tmp  Users  usr  var  vm  Volumes
$ ls applications
ls: cannot access 'applications': No such file or directory

Example HFS:

$ ls
Applications  bin  cores  dev  etc  home  installer.failurerequests  Library  net  Network  private  sbin  System  tmp  Users  usr  var  vm  Volumes
$ ls applications
'App Store.app'   Calendar.app   Dashboard.app     FaceTime.app    'Image Capture.app'   Mail.app      'Mission Control.app' ...

Thanks!