Networker

Re: [Networker] Question on save command with directive

2003-12-02 12:00:57
Subject: Re: [Networker] Question on save command with directive
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 2 Dec 2003 09:00:52 -0800
> man -s 5 nsr
> [snip]
>                                                            When a
>      directory is first visited, it is searched for a .nsr  file.
>      If  one  is  found, it is then read.  Each .nsr file is only
>      read once.  When starting a save at a directory below /, any
>      .nsr  files  on  the  normalized path of the current working
>      directory are read before any files are saved to catalog any
>      propagated directives.

Oops.  I meant to post the next paragraph also.  It's a bit more
explicit (and has fewer grammatical errors).

     The following algorithm  is  used  to  match  files  to  the
     appropriate  ASM  specification.  First the .nsr file in the
     current directory (if any) is scanned from top to bottom for
     an  ASM  specification  without  a leading "+" whose pattern
     matches the file name.  If no match is found, then the  .nsr
     in the current directory is re-scanned for an ASM specifica-
     tion with a leading "+" whose pattern matches the file  name
     (for  clarity,  we  recommend  placing all propagating ("+")
     directives after all the  non-propagating  directives  in  a
     .nsr  file).  If no match is found, then the .nsr file found
     in the ".." directory (if any) is scanned from top to bottom
     looking  for  a  match  with an ASM specification that has a
     leading +.  This process continues until the  .nsr  file  in
     the "/" directory (if any) is scanned.  If no match is found
     (or a match is found with an ASM specification whose name is
     the  same  as the currently running ASM), then the currently
     running ASM will handle the save of the file.

Notice that this means that .nsr files are valid all the way up the
directory tree of whereever it is currently mounted.

--
Darren Dunham                                           ddunham AT taos DOT com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=