patch-2.3.48 linux/fs/minix/dir.c
Next file: linux/fs/minix/file.c
Previous file: linux/fs/minix/bitmap.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Sat Feb 26 20:33:06 2000
- Orig file:
v2.3.47/linux/fs/minix/dir.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.47/linux/fs/minix/dir.c linux/fs/minix/dir.c
@@ -12,36 +12,12 @@
#include <linux/minix_fs.h>
#include <linux/stat.h>
-#include <asm/uaccess.h>
-
-static ssize_t minix_dir_read(struct file * filp, char * buf,
- size_t count, loff_t *ppos)
-{
- return -EISDIR;
-}
-
static int minix_readdir(struct file *, void *, filldir_t);
-static struct file_operations minix_dir_operations = {
- read: minix_dir_read,
+struct file_operations minix_dir_operations = {
+ read: generic_read_dir,
readdir: minix_readdir,
fsync: file_fsync,
-};
-
-/*
- * directories can handle most operations...
- */
-struct inode_operations minix_dir_inode_operations = {
- &minix_dir_operations, /* default directory file-ops */
- minix_create, /* create */
- minix_lookup, /* lookup */
- minix_link, /* link */
- minix_unlink, /* unlink */
- minix_symlink, /* symlink */
- minix_mkdir, /* mkdir */
- minix_rmdir, /* rmdir */
- minix_mknod, /* mknod */
- minix_rename, /* rename */
};
static int minix_readdir(struct file * filp,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)