patch-2.3.48 linux/fs/hfs/dir_nat.c
Next file: linux/fs/hfs/file.c
Previous file: linux/fs/hfs/dir_dbl.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Sat Feb 26 20:33:42 2000
- Orig file:
v2.3.47/linux/fs/hfs/dir_nat.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.47/linux/fs/hfs/dir_nat.c linux/fs/hfs/dir_nat.c
@@ -62,36 +62,28 @@
#define DOT_PARENT (&hfs_nat_reserved1[3])
#define ROOTINFO (&hfs_nat_reserved2[0])
-static struct file_operations hfs_nat_dir_operations = {
- read: hfs_dir_read,
+struct file_operations hfs_nat_dir_operations = {
+ read: generic_read_dir,
readdir: nat_readdir,
fsync: file_fsync,
};
struct inode_operations hfs_nat_ndir_inode_operations = {
- &hfs_nat_dir_operations,/* default directory file-ops */
- hfs_create, /* create */
- nat_lookup, /* lookup */
- NULL, /* link */
- hfs_unlink, /* unlink */
- NULL, /* symlink */
- hfs_mkdir, /* mkdir */
- nat_rmdir, /* rmdir */
- NULL, /* mknod */
- hfs_rename, /* rename */
+ create: hfs_create,
+ lookup: nat_lookup,
+ unlink: hfs_unlink,
+ mkdir: hfs_mkdir,
+ rmdir: nat_rmdir,
+ rename: hfs_rename,
+ setattr: hfs_notify_change,
};
struct inode_operations hfs_nat_hdir_inode_operations = {
- &hfs_nat_dir_operations,/* default directory file-ops */
- hfs_create, /* create */
- nat_lookup, /* lookup */
- NULL, /* link */
- nat_hdr_unlink, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- nat_hdr_rename, /* rename */
+ create: hfs_create,
+ lookup: nat_lookup,
+ unlink: nat_hdr_unlink,
+ rename: nat_hdr_rename,
+ setattr: hfs_notify_change,
};
/*================ File-local functions ================*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)