From: Hasanat K. <has...@gm...> - 2013-04-11 23:53:29
|
Hello, I am developing a filesystem where user can pass few flags using IOCTL. On one of such flags, I change content in the file hence sometimes increasing the size of file. If size of file changes, I update t_size in sfbuf using getattr function. When I increase size of file, and try to read file using standard read function, it doesn't read whole buffer. I have confirmed that bytes are copied from fuse's read. My guess is that as we haven't altered size of file using standard IO functions so kernel couldn't track that size of file has changed. Is it so? Then how can we notify kernel that buffer has increased without using low level API? PS: I am new to FUSE, please bear with me. Hasanat Kazmi |