From: Fareha S. <fa...@ee...> - 2007-03-21 13:35:04
|
Miklos Szeredi wrote: >>I was playing around with fusexmp.c and whenever I try to read a /proc >>file (such as doing cat /proc/[pid]/stat) it returns nothing. The read >>doesn't fail with any errors, but nothing is output to the terminal either. >>Is this a known problem? >> >> > >If you look /proc/PID/stat has a zero size. If you tell the kernel >that the file has a zero size, then it will not return any data when >reading the file. > >If you use the direct_io option, the kernel doesn't need the file size >information and so this will work. > >Thanks, >Miklos > > Thanks Miklos...I figured that much out a few days ago, but I still can't read all the files. For example, reading /proc/[pid]/maps gives an Illegal seek error if I try it while running fusexmp, but otherwise it works fine. I haven't been able to figure this problem out yet. Thanks, Fareha |