lkml.org 
[lkml]   [1999]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: NFS corruption revisited
From
Date
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> > Umm... Would it be out of the question to add a "nopad" option to nfs
> > mounts in /etc/fstab?
>
> If you want to contribute the code to rewrite that part of the RPC layer
> sure
>

It's not really that difficult to code. It could be done with a simple
mount flag exactly like we do for 'nolock'.

The recipe is as follows:
- Define another flag in nfs_mount.h (NFS_MOUNT_NOPAD) which is
passed via the nfs_mount_data into the server->flags.
- Define some simple way of passing it through 'struct
nfs_writeargs', from nfs_proc_write() and create_write_request()
to nfs_xdr_writeargs().
- replace the #ifdef in nfs_xdr_writeargs().

You'll then have to convince Andries to accept another mount flag in
the nfs_mount.c parser, and finally convince Linus to accept a patch
for a bug that isn't in our kernel.

Guess which is the difficult bit ;-)...

Cheers,
Trond

-
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:54    [W:0.052 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site