Skip to content

Commit

Permalink
always add nonamedattr option to fuse-t mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Sep 18, 2024
1 parent 8287243 commit 137e46c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class FuseTMountProvider implements MountService {

private static final String DYLIB_PATH = "/usr/local/lib/libfuse-t.dylib";
private static final Path USER_HOME = Paths.get(System.getProperty("user.home"));
private static final String MOUNT_OPTION_NOXATTR = "-ononamedattr";

@Override
public String displayName() {
Expand Down Expand Up @@ -70,7 +71,7 @@ public int getDefaultLoopbackPort() {
public String getDefaultMountFlags() {
// see: https://github.com/macos-fuse-t/fuse-t/wiki#supported-mount-options
try {
return "-o nonamedattr"//
return MOUNT_OPTION_NOXATTR //
+ " -orwsize=262144" //
+ " -ouid=" + Files.getAttribute(USER_HOME, "unix:uid") //
+ " -ogid=" + Files.getAttribute(USER_HOME, "unix:gid");
Expand Down Expand Up @@ -110,6 +111,7 @@ protected Set<String> combinedMountFlags() {
// if (port != 0) {
// combined.add("-l 0:" + port);
// }
combined.add(MOUNT_OPTION_NOXATTR); //required due to https://github.com/cryptomator/cryptomator/issues/3538
return combined;
}

Expand Down

0 comments on commit 137e46c

Please sign in to comment.