Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix(mount): stop double-applying umask in Mkdir (#9063)

Chris Lu64af80c78d2d
diff --git a/test/pjdfstest/known_failures.txt b/test/pjdfstest/known_failures.txt
index 1476890b37..d08b5a26b2 100644
--- a/test/pjdfstest/known_failures.txt
+++ b/test/pjdfstest/known_failures.txt
@@ -6,8 +6,3 @@
# A failure in any test NOT listed here will cause the CI job to fail,
# catching regressions immediately.
-# ── Directory rename permission edge case ──────────────────────────────
-# Cross-directory rename of a subdirectory with restricted permissions
-# causes cascading test failures within the test file.
-tests/rename/21.t
-
diff --git a/weed/mount/weedfs_dir_mkrm.go b/weed/mount/weedfs_dir_mkrm.go
index f109281d7c..8352b72f64 100644
--- a/weed/mount/weedfs_dir_mkrm.go
+++ b/weed/mount/weedfs_dir_mkrm.go
@@ -38,7 +38,7 @@ func (wfs *WFS) Mkdir(cancel <-chan struct{}, in *fuse.MkdirIn, name string, out
Mtime: now,
Crtime: now,
Ctime: now,
- FileMode: uint32(os.ModeDir) | in.Mode&^uint32(wfs.option.Umask),
+ FileMode: uint32(os.ModeDir) | in.Mode,
Uid: in.Uid,
Gid: in.Gid,
},