Re: mkfifo in 2.0.36 NFS client

Trond Myklebust (trond.myklebust@fys.uio.no)
17 Mar 1999 12:11:58 +0100


Ion Badulescu <ionut@moisil.cs.columbia.edu> writes:

>
> BTW, unfsd should be fixed, not the kernel.. at least for 2.2.x.
>

knfsd also needs a tweak.

Cheers,
Trond

--- linux-2.2.3/fs/nfsd/nfsproc.c Fri Jan 29 20:09:56 1999
+++ linux/fs/nfsd/nfsproc.c Sat Mar 13 19:42:53 1999
@@ -270,7 +270,7 @@
rdev = (dev_t) size;
if (type != S_IFBLK && type != S_IFCHR) {
rdev = 0;
- } else if (type == S_IFCHR && size == ~(u32) 0) {
+ } else if (type == S_IFCHR && !(attr->ia_valid & ATTR_SIZE)) {
/* If you think you've seen the worst, grok this. */
attr->ia_mode = S_IFIFO | mode;
type = S_IFIFO;

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