Torvalds拒绝接受ZFS 文件系统的示例分析
Linus Torvalds, the creator of the Linux kernel, has always been very outspoken about the features he wants in the kernel and the features he doesn't want. In a recent post on the Linux Kernel Mailing List (LKML), Torvalds made it clear that he is not interested in adding the ZFS file system to the kernel.
The ZFS file system is a popular file system for many reasons. It is scalable, supports data integrity, and is easy to administer. However, it is not without its drawbacks. One of the biggest drawbacks is that it is not open source.
While the ZFS file system is available under a free license, the source code is not available. This means that anyone who wants to use ZFS would have to trust that Oracle, the company that owns the ZFS file system, is not going to do anything malicious with the code. For many people, this is a deal breaker.
Torvalds has been very clear in the past that he is not interested in adding non-open source code to the kernel. In his post on the LKML, he reaffirmed this position. He said that he would not be interested in adding ZFS to the kernel even if it was open source.
This is a very interesting position for Torvalds to take. The Linux kernel is already full of non-open source code. For example, the kernel includes code from proprietary drivers. Torvalds has always been okay with this because he feels that it is necessary in order to make Linux a viable option for users.
The ZFS file system is not a driver. It is a file system. Torvalds' position is that a file system is not something that should be included in the kernel. He has said in the past that he believes that file systems should be user space applications.
This is a valid position. File systems are complex and adding a new file system to the kernel can introduce stability issues. It is also worth noting that there are already several open source file systems available for Linux.
However, it is also worth noting that the ZFS file system has been ported to Linux. There is a version of ZFS that runs in user space. This version is not as stable as the version that runs in the kernel, but it is still usable.
The fact that there is a version of ZFS that runs in user space means that Torvalds' position is not as clear cut as it might seem. If the ZFS file system is good enough to be used in user space, why wouldn't it be good enough to be included in the kernel?
There are a few possible explanations. One is that Torvalds simply doesn't like the ZFS file system. This is a possibility, but it seems unlikely. Torvalds is usually very careful about the things he says. If he didn't like the ZFS file system, he would probably just stay quiet about it.
Another possibility is that Torvalds is concerned about the stability of the kernel. As mentioned earlier, adding a new file system can introduce stability issues. This is especially true if the file system is not as well tested as it should be.
The ZFS file system is not as well tested as it should be. This is because it is not open source. The only people who have access to the ZFS code are the developers at Oracle. This means that there are very few people who are able to test the file system and report bugs.
The lack of testing is a valid concern. However, it is worth noting that the ZFS file system has been in development for many years. It has been used by millions of people. If there were major stability issues, they would have been found by now.
Another possibility is that Torvalds is concerned about the licensing of the ZFS file system. The ZFS file system is licensed under the Common Development and Distribution License (CDDL). This is a copyleft license.
This means that anyone who wants to use the ZFS file system would have to release their own code under the CDDL. This would be a problem for many companies. They would not want to release their code under a copyleft license.
It is also worth noting that the CDDL is incompatible with the GPL. This means that the ZFS file system could not be included in the kernel unless the kernel itself was released under the CDDL. This is something that Torvalds is not willing to do.
The final possibility is that Torvalds is concerned about the security of the ZFS file system. The ZFS file system is developed by Oracle. Oracle is a company with a long history of security vulnerabilities.
Adding the ZFS file system to the kernel would give Oracle a way to introduce security vulnerabilities into the kernel. This is something that Torvalds is not willing to risk.
It is clear that Torvalds has some valid concerns about the ZFS file system. However, it is also clear that his concerns are not enough to justify keeping the file system out of the kernel. The ZFS file system is a well-tested, stable, and secure file system. It would be a valuable addition to the kernel.
相关文章