patch-2.3.48 linux/fs/adfs/dir.c
Next file: linux/fs/adfs/file.c
Previous file: linux/fs/adfs/adfs.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Feb 26 20:33:42 2000
- Orig file:
v2.3.47/linux/fs/adfs/dir.c
- Orig date:
Thu Feb 10 17:11:16 2000
diff -u --recursive --new-file v2.3.47/linux/fs/adfs/dir.c linux/fs/adfs/dir.c
@@ -188,14 +188,8 @@
return ret;
}
-static ssize_t
-adfs_dir_no_read(struct file *filp, char *buf, size_t siz, loff_t *ppos)
-{
- return -EISDIR;
-}
-
-static struct file_operations adfs_dir_operations = {
- read: adfs_dir_no_read,
+struct file_operations adfs_dir_operations = {
+ read: generic_read_dir,
readdir: adfs_readdir,
fsync: file_fsync,
};
@@ -296,7 +290,6 @@
* directories can handle most operations...
*/
struct inode_operations adfs_dir_inode_operations = {
- &adfs_dir_operations, /* default directory file-ops */
- NULL, /* create */
- adfs_lookup, /* lookup */
+ lookup: adfs_lookup,
+ setattr: adfs_notify_change,
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)