[英]what is posix compliance for filesystem?
Posix compliance is a standard that is been followed by many a companies. Posix 合规性是许多公司遵循的标准。 I have few question around this area, 1. does all the file systems need to be posix compliant?
我在这方面几乎没有问题,1. 是否所有文件系统都需要符合 posix 标准? 2. are applications also required to be posix compliant?
2. 应用程序是否也需要符合 posix 标准? 3. are there any non posix filesystems?
3. 是否有任何非 posix 文件系统?
In the area of "requires POSIX filesystem semantics" what is typically meant is:在“需要 POSIX 文件系统语义”方面,通常的意思是:
Sometimes it also means symlink/hardlink support as well as file names and 32bit file pointers (minimum).有时它也意味着符号链接/硬链接支持以及文件名和 32 位文件指针(最小)。 In some cases it is also used to refer specific API features like
fcntl()
locking, mmap()
or truncate()
or AIO.在某些情况下,它还用于指代特定的 API 功能,例如
fcntl()
锁定、 mmap()
或truncate()
或 AIO。
When I think about POSIX compliance for distributed file systems, I use the general standard that a distributed file system is POSIX compliant if multiple processes running on different nodes see the same behavior as if they were running on the same node using a local file system.当我考虑分布式文件系统的 POSIX 合规性时,我使用的通用标准是分布式文件系统是 POSIX 兼容的,如果在不同节点上运行的多个进程看到的行为与它们在使用本地文件系统的同一节点上运行时的行为相同。 This basically has two implications:
这基本上有两个含义:
Although my examples were reads/writes to a single file, correct behavior also includes write/writes to a single file as well as read/writes and write/writes to the hierarchical namespace via calls such as stat/readdir/mkdir/unlink/etc.尽管我的示例是对单个文件的读/写,但正确的行为还包括对单个文件的写/写以及通过诸如 stat/readdir/mkdir/unlink/etc 之类的调用对分层命名空间进行读/写和写/写.
Answering your questions in a very objective way:以非常客观的方式回答您的问题:
1. does all the file systems need to be posix compliant? 1. 是否所有文件系统都需要符合 posix? Actually not.
其实并不是。 In fact POSIX defines some standards for operational systems in general.
事实上,POSIX 定义了一些通用的操作系统标准。 Good to have, but no really required.
很好,但不是真正必需的。
2. are applications also required to be posix compliant? 2. 应用程序是否也需要符合 posix 标准? No.
不。
3. are there any non posix filesystems? 3. 是否有任何非 posix 文件系统? HDFS (hadoop file system)
HDFS(Hadoop文件系统)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.