patch-2.3.43 linux/fs/hpfs/dir.c
Next file: linux/fs/hpfs/file.c
Previous file: linux/fs/hfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 10 12:16:58 2000
- Orig file:
v2.3.42/linux/fs/hpfs/dir.c
- Orig date:
Fri Oct 22 13:21:52 1999
diff -u --recursive --new-file v2.3.42/linux/fs/hpfs/dir.c linux/fs/hpfs/dir.c
@@ -8,7 +8,7 @@
#include "hpfs_fn.h"
-int hpfs_dir_read(struct file *filp, char *name, size_t len, loff_t *loff)
+ssize_t hpfs_dir_read(struct file *filp, char *name, size_t len, loff_t *loff)
{
return -EISDIR;
}
@@ -242,6 +242,8 @@
if (!de->directory) {
if (result->i_size == -1) {
result->i_size = de->file_size;
+ result->i_data.a_ops = &hpfs_aops;
+ result->u.hpfs_i.mmu_private = result->i_size;
/*
* i_blocks should count the fnode and any anodes.
* We count 1 for the fnode and don't bother about
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)