开发者

Using direct IO with ecryptfs and similar stackable file systems

开发者 https://www.devze.com 2023-04-01 09:24 出处:网络
Does \"ecryptfs\" supp开发者_高级运维ort direct I/O? In general, how can a \"stackable\" file system, that modifies buffer provided by user support direct I/O?ecryptfs does not support direct I/O.

Does "ecryptfs" supp开发者_高级运维ort direct I/O? In general, how can a "stackable" file system, that modifies buffer provided by user support direct I/O?


ecryptfs does not support direct I/O.

There is no implementation of direct_IO() callback in ecryptfs address_space_operations.


I haven't looked into this much, but I would personally use a decorator pattern for the file system drivers, so that ecryptfs sits on top of any of the actual device drivers. Then when calls are made, they go into ecryptfs code, then ecryptfs calls the device drivers and does the writing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号