Message ID | 20250320074924.8080-3-jgross@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | 9pfs: add some file operation hooks | expand |
On 2025-03-20 03:49, Juergen Gross wrote: > Add a file operations lseek hook to the 9pfs frontend. Just use the > lseek_default() implementation. > > Signed-off-by: Juergen Gross <jgross@suse.com> lseek_default adjusts file->offset, and read_9pfs()/write_9pfs() are already using that. Reviewed-by: Jason Andryuk <jason.andryuk@amd.com> Regards, Jason
diff --git a/9pfront.c b/9pfront.c index a65fe26d..837e404b 100644 --- a/9pfront.c +++ b/9pfront.c @@ -1325,6 +1325,7 @@ static const struct file_ops ops_9pfs = { .write = write_9pfs, .close = close_9pfs, .fstat = fstat_9pfs, + .lseek = lseek_default, }; __attribute__((constructor))
Add a file operations lseek hook to the 9pfs frontend. Just use the lseek_default() implementation. Signed-off-by: Juergen Gross <jgross@suse.com> --- 9pfront.c | 1 + 1 file changed, 1 insertion(+)