Using direct IO with ecryptfs and similar stackable file systems

712 Views Asked by At

Does "ecryptfs" support direct I/O? In general, how can a "stackable" file system, that modifies buffer provided by user support direct I/O?

2

There are 2 best solutions below

1
On BEST ANSWER

ecryptfs does not support direct I/O.

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

0
On

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.