patch-2.3.1 linux/fs/hfs/dir.c
Next file: linux/fs/hfs/dir_cap.c
Previous file: linux/fs/hfs/catalog.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue May 11 23:01:41 1999
- Orig file:
v2.3.0/linux/fs/hfs/dir.c
- Orig date:
Mon Apr 12 10:03:45 1999
diff -u --recursive --new-file v2.3.0/linux/fs/hfs/dir.c linux/fs/hfs/dir.c
@@ -255,31 +255,6 @@
}
/*
- * hfs_mknod()
- *
- * This is the mknod() entry in the inode_operations structure for
- * regular HFS directories. The purpose is to create a new entry
- * in a directory, given the inode for the parent directory and the
- * name (and its length) and the mode of the new entry (and the device
- * number if the entry is to be a device special file).
- *
- * HFS only supports regular files and directories and Linux disallows
- * using mknod() to create directories. Thus we just check the arguments
- * and call hfs_create().
- */
-int hfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev)
-{
- if (!dir)
- return -ENOENT;
-
- /* the only thing we currently do. */
- if (S_ISREG(mode))
- return hfs_create(dir, dentry, mode);
-
- return -EPERM;
-}
-
-/*
* hfs_unlink()
*
* This is the unlink() entry in the inode_operations structure for
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)