[PATCH] Re: 2.3.20 ncpfs compile glawk

Alexander Viro (viro@math.psu.edu)
Mon, 11 Oct 1999 17:27:34 -0400 (EDT)


On Mon, 11 Oct 1999, Shawn Leas wrote:

> Apparently someone half patched something somewhere?

Yes.
diff -urN linux-2.3.20/fs/ncpfs/dir.c linux-bird.fixed/fs/ncpfs/dir.c
--- linux-2.3.20/fs/ncpfs/dir.c Sat Oct 9 16:10:12 1999
+++ linux-bird.fixed/fs/ncpfs/dir.c Mon Oct 11 17:20:10 1999
@@ -433,7 +433,7 @@
ino = find_inode_number(dentry, &qname);

if (!ino)
- ino = iunique(2);
+ ino = iunique(dentry->d_inode->i_sb,2);

result = filldir(dirent, name, len, filp->f_pos, ino);
if (!result)
@@ -478,7 +478,7 @@

if (!newdent->d_inode) {
entry->opened = 0;
- entry->ino = iunique(2);
+ entry->ino = iunique(inode->i_sb,2);
newino = ncp_iget(inode->i_sb, entry);
if (newino) {
newdent->d_op = &ncp_dentry_operations;
@@ -501,7 +501,7 @@
ino = find_inode_number(dentry, &qname);

if (!ino)
- ino = iunique(2);
+ ino = iunique(dentry->d_inode->i_sb,2);

result = filldir(dirent, entry->i.entryName, entry->i.nameLen,
filp->f_pos, ino);
@@ -794,7 +794,7 @@
* Create an inode for the entry.
*/
finfo.opened = 0;
- finfo.ino = iunique(2);
+ finfo.ino = iunique(dir->i_sb,2);
error = -EACCES;
inode = ncp_iget(dir->i_sb, &finfo);

@@ -822,7 +822,7 @@
struct inode *inode;
int error = -EINVAL;

- finfo->ino = iunique(2);
+ finfo->ino = iunique(dir->i_sb,2);
inode = ncp_iget(dir->i_sb, finfo);
if (!inode)
goto out_close;
Crawling under the rock,
Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/