lkml.org 
[lkml]   [1998]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectsysv fs patches for 2.1.78
Date
From
The following patch collection should fix the minor sysv fs damage I
found after applying the 2.1.78 patch.

--
Bob Tracy | If you have any trouble sounding condescending,
Firewall Security Corp. | find a Unix user to show you how it's done.
rct@frus.com | -- Scott Adams: DNRC Newsletter 3.0

====--CUT HERE--====
--- linux/include/linux/sysv_fs.h.orig Tue Jan 6 07:39:00 1998
+++ linux/include/linux/sysv_fs.h Tue Jan 6 07:38:08 1998
@@ -367,7 +367,7 @@
extern int sysv_rmdir(struct inode * dir, struct dentry * dentry);
extern int sysv_unlink(struct inode * dir, struct dentry * dentry);
extern int sysv_symlink(struct inode * inode, struct dentry * dentry, const char * symname);
-extern int sysv_link(struct inode * oldinode, struct inode * dir, struct dentry * dentry);
+extern int sysv_link(struct dentry * old_dentry, struct inode * dir, struct dentry * dentry);
extern int sysv_mknod(struct inode * dir, struct dentry * dentry, int mode, int rdev);
extern int sysv_rename(struct inode * old_dir, struct dentry * old_dentry,
struct inode * new_dir, struct dentry * new_dentry);
@@ -390,7 +390,7 @@
extern int init_sysv_fs(void);
extern void sysv_write_super(struct super_block *);
extern void sysv_read_inode(struct inode *);
-extern int sysv_notify_change(struct inode *, struct iattr *);
+extern int sysv_notify_change(struct dentry *, struct iattr *);
extern void sysv_write_inode(struct inode *);
extern void sysv_put_inode(struct inode *);
extern int sysv_statfs(struct super_block *, struct statfs *, int);
--- linux/fs/sysv/inode.c.orig Tue Jan 6 06:33:37 1998
+++ linux/fs/sysv/inode.c Tue Jan 6 07:25:30 1998
@@ -873,7 +873,7 @@
}

/* To avoid inconsistencies between inodes in memory and inodes on disk. */
-extern int sysv_notify_change(struct dentry *dentry, struct iattr *attr)
+int sysv_notify_change(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;
--- linux/fs/sysv/namei.c.orig Mon Dec 22 11:26:30 1997
+++ linux/fs/sysv/namei.c Tue Jan 6 07:37:00 1998
@@ -571,9 +571,10 @@
return 0;
}

-int sysv_link(struct inode * oldinode, struct inode * dir,
+int sysv_link(struct dentry * old_dentry, struct inode * dir,
struct dentry * dentry)
{
+ struct inode *oldinode = old_dentry->d_inode;
int error;
struct sysv_dir_entry * de;
struct buffer_head * bh;
====--TUC EREH--====
\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.026 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site