diff options
Diffstat (limited to 'fs/nfs.c')
-rw-r--r-- | fs/nfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -928,7 +928,7 @@ static void nfs_handler(void *ctx, char *packet, unsigned len) nfs_len = len; } -static int nfs_truncate(struct device_d *dev, FILE *f, ulong size) +static int nfs_truncate(struct device_d *dev, FILE *f, loff_t size) { return -ENOSYS; } @@ -1060,14 +1060,13 @@ static int nfs_read(struct device_d *dev, FILE *file, void *buf, size_t insize) return kfifo_get(priv->fifo, buf, insize); } -static loff_t nfs_lseek(struct device_d *dev, FILE *file, loff_t pos) +static int nfs_lseek(struct device_d *dev, FILE *file, loff_t pos) { struct file_priv *priv = file->priv; - file->pos = pos; kfifo_reset(priv->fifo); - return file->pos; + return 0; } static int nfs_iterate(struct file *file, struct dir_context *ctx) |