patch-2.3.48 linux/fs/ext2/dir.c
Next file: linux/fs/ext2/file.c
Previous file: linux/fs/exec.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Sat Feb 26 20:33:05 2000
- Orig file:
v2.3.47/linux/fs/ext2/dir.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.47/linux/fs/ext2/dir.c linux/fs/ext2/dir.c
@@ -20,37 +20,13 @@
#include <linux/fs.h>
-
-
-static ssize_t ext2_dir_read (struct file * filp, char * buf,
- size_t count, loff_t *ppos)
-{
- return -EISDIR;
-}
-
static int ext2_readdir(struct file *, void *, filldir_t);
-static struct file_operations ext2_dir_operations = {
- read: ext2_dir_read,
+struct file_operations ext2_dir_operations = {
+ read: generic_read_dir,
readdir: ext2_readdir,
ioctl: ext2_ioctl,
fsync: ext2_sync_file,
-};
-
-/*
- * directories can handle most operations...
- */
-struct inode_operations ext2_dir_inode_operations = {
- &ext2_dir_operations, /* default directory file-ops */
- ext2_create, /* create */
- ext2_lookup, /* lookup */
- ext2_link, /* link */
- ext2_unlink, /* unlink */
- ext2_symlink, /* symlink */
- ext2_mkdir, /* mkdir */
- ext2_rmdir, /* rmdir */
- ext2_mknod, /* mknod */
- ext2_rename, /* rename */
};
int ext2_check_dir_entry (const char * function, struct inode * dir,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)