]> xenbits.xensource.com Git - mini-os.git/commitdiff
9pfs: add lseek file operation hook master
authorJuergen Gross <jgross@suse.com>
Tue, 25 Mar 2025 14:42:27 +0000 (15:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Mar 2025 14:42:27 +0000 (15:42 +0100)
Add a file operations lseek hook to the 9pfs frontend. Just use the
lseek_default() implementation.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
9pfront.c

index e676da35c07a17dd8cc12619a04f3da21c9bfd61..895426d18794631d81ff147d241cc75f42b58081 100644 (file)
--- a/9pfront.c
+++ b/9pfront.c
@@ -1326,6 +1326,7 @@ static const struct file_ops ops_9pfs = {
     .write = write_9pfs,
     .close = close_9pfs,
     .fstat = fstat_9pfs,
+    .lseek = lseek_default,
 };
 
 __attribute__((constructor))