OCFS2 文件系统不尊重 Umask

OCFS2 文件系统不尊重 Umask

我在使用复制块设备(通过 DRBD)和 OCFS2 来允许在多台机器上并发安装的机器上遇到了一些奇怪的行为。简而言之,问题是在此文件系统中创建的新文件和目录不遵循umask.

请考虑以下事项:

$> cd /mountpoint
$> umask
0002

$> mkdir testdir
$> touch test.txt
$> su
#> umask
0022

#> mkdir testdir2
#> touch test2.txt
#> ls -l
-rw-rw-rw- (...) test2.txt
drwxrwxrwx (...) testdir
drwxrwxrwx (...) testdir2
-rw-rw-rw- (...) test.txt

#> getfacl .
# file: .
# owner: me
# group: me
user::rwx
group::r-x
other::r-x

#> cat /etc/mtab
(...)
/dev/drbd0 /mountpoint ocfs2 rw,_netdev,heartbeat=local 0 0

希望以上内容足以了解没有 ACL 发挥作用。对于特权用户和非特权用户都会发生这种情况,并且才不是发生在 OCFS2 文件系统之外。

到目前为止,我对该主题的研究尚未发现 OCFS2(或 DRBD)存在任何已知问题。我可以运行其他测试来缩小问题范围吗?有谁知道为什么会发生这种情况?感谢您的时间。

[我本来会标记为ocfs2,但该标记尚不存在。]

答案1

看来这并不是 ocfs2 第一次出现这样的错误。 http://comments.gmane.org/gmane.comp.file-systems.ocfs2.user/3439。那是 2009 年,所以它最终肯定得到了修复,而你的可能是具有相同症状的不同错误。

我会将其报告给 ocfs2 的错误跟踪器,该跟踪器似乎位于https://oss.oracle.com/bugzilla/buglist.cgi?product=OCFS2

相关内容