I've been working on a patch for the userspace portion of autofs to
change the way that replicated mounts are handled. This patch changes
mount_nfs.c such that it parses all of the mounts in the list, sorts
them, and then tries to mount each in turn. The existing code breaks
(fails to mount) if it
$
/* --- *
*
* mount_nfs.c - Module for Linux automountd to mount an NFS filesystem,
@@ -6,6 +6,7 @@
*
* Copyright 1997 Transmeta Corporation - All Rights Reserved
* Copyright 1999-2000 Jeremy Fitzhardinge [EMAIL PROTECTED]
+ * Copyright 2005 Jeff Layton/Red
- Module for Linux automountd to mount an NFS filesystem,
@@ -6,6 +6,7 @@
*
* Copyright 1997 Transmeta Corporation - All Rights Reserved
* Copyright 1999-2000 Jeremy Fitzhardinge [EMAIL PROTECTED]
+ * Copyright 2005 Jeff Layton/Red Hat [EMAIL PROTECTED]
*
* This program is free software
On Wed, 2005-04-20 at 09:25 +0800, Ian Kent wrote:
But, I've had complaints about it in the past.
Call it an added feature.
If we choose to not require it we will need to be clear about it in the
doco.
Personally, I like to be able to add a space after each comma for
readability.
and simple and
simply make the addr= option be respected, but I'd certainly consider
redoing it to add the stuff you mention above at a later time.
My suggestion would be to consider this in conjunction with autofs v5
(or a later v4 version) so we don't end up duplicating so much
functionality.
--
Jeff
@@ -6,6 +6,7 @@
*
* Copyright 1997 Transmeta Corporation - All Rights Reserved
* Copyright 1999-2000 Jeremy Fitzhardinge [EMAIL PROTECTED]
+ * Copyright 2005 Jeff Layton/Red Hat [EMAIL PROTECTED]
*
* This program is free software; you can redistribute it and/or modify
* it under
Hi Adrian,
Since the util-linux mailing list seems to be dead, I wasn't sure where
to send this.
I've been working on an overhaul of the mount_nfs code for autofs. While
working on this, I've fixed the code that makes autofs prefer to mount
via addresses that are on the same subnet as the client
Here's my first stab at a patch for mount to make it treat the addr=
option as a hint. I've done some very basic testing and it seems to do
the right thing, but I need to dredge up a multi-homed NFS server here
soon to verify that all is working. If anyone has one and wants to test
this out for
:00:53.0 -0400
+++ autofs/modules/mount_nfs.c 2005-08-01 11:00:08.0 -0400
@@ -6,6 +6,7 @@
*
* Copyright 1997 Transmeta Corporation - All Rights Reserved
* Copyright 1999-2000 Jeremy Fitzhardinge [EMAIL PROTECTED]
+ * Copyright 2005 Jeff Layton/Red Hat [EMAIL PROTECTED
\ as a delimiter.
Since you have that in quotes already, you shouldn't need to escape the
trailing $. So I think this would be more likely to work:
://xp0/C$
Cheers,
--
Jeff Layton [EMAIL PROTECTED]
___
autofs mailing list
autofs@linux.kernel.org
http
these characters before it calls mount. I don't
think mount does any variable interpolation, and I know mount.cifs
doesn't so there shouldn't be any need for escape chars before '$'
signs, assuming you're not handing these off to a shell of some sort.
--
Jeff Layton jlay...@redhat.com
On Wed, 25 May 2011 16:08:15 -0400
Jeff Layton jlay...@redhat.com wrote:
On Wed, 27 Apr 2011 16:23:07 -0700
Mark Moseley moseleym...@gmail.com wrote:
I posted this to bugzilla a while back but I figured I'd paste it here too
On Thu, 26 May 2011 23:02:32 +0800
Ian Kent ra...@themaw.net wrote:
On Thu, 2011-05-26 at 09:49 -0400, Jeff Layton wrote:
On Wed, 25 May 2011 16:08:15 -0400
Jeff Layton jlay...@redhat.com wrote:
On Wed, 27 Apr 2011 16:23:07 -0700
Mark Moseley moseleym...@gmail.com wrote
13 matches
Mail list logo