Linux NFS development
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@redhat.com>
To: nfs@lists.sourceforge.net
Subject: Re: how to execute a script from NFS mount (which disconnected)?
Date: Tue, 22 May 2007 08:25:54 -0400	[thread overview]
Message-ID: <20070522082554.b7e112d7.jlayton@redhat.com> (raw)
In-Reply-To: <4652DF6D.8020209@wpkg.org>

On Tue, 22 May 2007 14:17:49 +0200
Tomasz Chmielewski <mangoo@wpkg.org> wrote:

> Trond Myklebust schrieb:
> > On Tue, 2007-05-22 at 12:37 +0200, Tomasz Chmielewski wrote:
> >> How can I execute a script from NSF mount - a script which reconfigures 
> >> a network interface, and there is a period of network disconnection?
> > 
> > Copy it to a RAMFS partition and execute it there.
> 
> No, that's not a good solution. Or a solution I would want to use.
> 
> I use the same script on systems having rootfs on iSCSI. And they also 
> disconnect for a brief period of time.
> There, everything works properly if I just "preload"/cache the 
> script/programs with something like:
> 
> 	cat script &>/dev/null
> 	program --help &>/dev/null
> 
> Then, I can disconnect the station for several minutes, but the system 
> will have the programs/scripts cached, and will be able to use them.
> 
> 
> I would like to do something similar with NFS. Isn't there a 
> "disconnected" mode for NSF (or "cached", etc.)?
> 

Nope. NFS will (likely) want to check the attributes on the file to make sure
it's not changed before executing it. Copying it to a secondary location is
what you'll want to do.

<idle speculation>
I wonder if you could do something like this on NFSv4 with delegations?
</idle speculation>

> 
> -- 
> Tomasz Chmielewski
> http://wpkg.org
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> 


-- 
Jeff Layton <jlayton@redhat.com>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2007-05-22 12:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 10:37 how to execute a script from NFS mount (which disconnected)? Tomasz Chmielewski
2007-05-22 12:10 ` Trond Myklebust
2007-05-22 12:17   ` Tomasz Chmielewski
2007-05-22 12:25     ` Jeff Layton [this message]
2007-05-22 12:29       ` Jeff Layton
2007-05-22 12:41     ` Trond Myklebust
2007-05-22 12:42 ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070522082554.b7e112d7.jlayton@redhat.com \
    --to=jlayton@redhat.com \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox