lkml.org 
[lkml]   [1999]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: mkfifo in 2.0.36 NFS client
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.120 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site