Re: NFS oddity?

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Mon Jun 19 2000 - 06:57:55 EST


>>>>> " " == Rogier Wolff <R.E.Wolff@BitWizard.nl> writes:

> Hi,

> I know we're a few versions further along the line, but
> upgrading every day is not an option for us.

> When i try to make a device, it gets made, but with teh wrong
> major/minor numbers.

Hi,

  It turned out to be YAT (yet another typo) in the NFSv2 mknod
routine. The following patch should apply both to the 2.4.0-test
series and the 2.2.x NFSv3 patches.

Cheers,
  Trond

--- fs/nfs/proc.c.orig Sat May 20 19:27:56 2000
+++ fs/nfs/proc.c Mon Jun 19 13:51:26 2000
@@ -203,7 +203,7 @@
         if (S_ISFIFO(mode)) {
                 sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR;
                 sattr->ia_valid &= ~ATTR_SIZE;
- } else if (S_ISCHR(rdev) || S_ISBLK(rdev)) {
+ } else if (S_ISCHR(mode) || S_ISBLK(mode)) {
                 sattr->ia_valid |= ATTR_SIZE;
                 sattr->ia_size = rdev; /* get out your barf bag */
         }

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:16 EST