From: David S. <ds...@ja...> - 2004-10-19 21:38:36
|
I have a problem with the flush call - it seems there just isn't enough information to use it properly. For example, I have the same file open three times: OPEN /file1 flags: O_RDONLY OPEN /file1 flags: O_WRONLY OPEN /file1 flags: O_RDWR Now the program using my filesystem calls close(), so my filesystem gets a flush. However, which open does this correspond to? Release gives this information (the file flags), but flush doesn't. Inside the kernel, there is all sorts of information given as part of the file struct, but unfortunately this isn't currently propagated to the userland side of the filesystem. I would find f_count and f_flags particularly useful. I'm not necessarily asking for two new arguments to the flush call. A general interface to get data from the file struct would be great. David |