patch-2.3.43 linux/fs/smbfs/inode.c
Next file: linux/fs/stat.c
Previous file: linux/fs/smbfs/file.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Feb 10 12:16:59 2000
- Orig file:
v2.3.42/linux/fs/smbfs/inode.c
- Orig date:
Fri Oct 15 15:25:14 1999
diff -u --recursive --new-file v2.3.42/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -82,9 +82,10 @@
result->i_ino = fattr->f_ino;
memset(&(result->u.smbfs_i), 0, sizeof(result->u.smbfs_i));
smb_set_inode_attr(result, fattr);
- if (S_ISREG(result->i_mode))
+ if (S_ISREG(result->i_mode)) {
result->i_op = &smb_file_inode_operations;
- else if (S_ISDIR(result->i_mode))
+ result->i_data.a_ops = &smb_file_aops;
+ } else if (S_ISDIR(result->i_mode))
result->i_op = &smb_dir_inode_operations;
else
result->i_op = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)