[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems coping a directory structure.
From: |
Mark . Burgess |
Subject: |
Re: Problems coping a directory structure. |
Date: |
Thu, 9 Dec 2004 20:12:26 +0100 (MET) |
It seems that this linktype reference is erroneous. Thanks for
your info. If you replace
if (TRAVLINKS || ip->linktype == 'n')
with
if (TRAVLINKS)
does it work as expected.
Mark
On 6 Dec, Russell.Conner@healthnet.com wrote:
>
>
>
>
> I found some of the problem.
>
> Kudos to Marc or whoever wrote the module image.c. I am barely C literate,
> but I understood what was going on immediately from the code. Very nice.
>
> Anyway, did a search in the code for the error message, found that
> linktype=none or copy will trigger this behavior of not traversing a
> directory:
>
> if (S_ISDIR(statbuf.st_mode))
> {
> if (TRAVLINKS || ip->linktype == 'n')
> {
> CfLog(cfverbose,"Traversing directory links during copy is too
> dangerou
> s, pruned","");
> continue;
> }
>
> Ok. But that is not what the documentation, "Cfengine reference" chatper 4,
> section 4.11, page 57. From the linktype keyword discription:
>
> "If this value is set to copy or none, symbolic links will be replaced by
> actual copies of the files they point to. Note that for directories, this
> option is ignored."
>
> Directories are effected by this switch. Either a clarification or a
> warning should be added that it is incompatable with the recurse switch.
>
> The problem with encrypt = true working vrs no encrypt keyword still evades
> me.
>
>
>
> Russell Conner
> Systems Engineer, VMS & Unix Systems
> Health Net, Inc.
> (916)935-3610
>
>
> |---------+---------------------------->
> | | Russell Conner |
> | | |
> | | 12/03/2004 04:16 |
> | | PM |
> | | |
> |---------+---------------------------->
>
> >------------------------------------------------------------------------------------------------------------------------------|
> |
> |
> | To: Russell Conner/SAC/COR/FHS@FHS
> |
> | cc: Brendan Strejcek <brendan@cs.uchicago.edu>,
> help-cfengine@gnu.org,
> Russell.Conner@healthnet.com |
> | Subject: Re: Problems coping a directory structure.(Document link:
> Russell Conner) |
>
> >------------------------------------------------------------------------------------------------------------------------------|
>
>
>
> An update:
>
> More strangeness, I set the encrypt=true switch and it started working for
> at least the base directory. As a wild ass guess, could this be a parallel
> process if not encrypted, but serial if it is encrypted? I am just
> guessing....
>
> Continued strangeness: even though I have recurse=inf, it refuses to do it,
> see this -v output:
>
>
> cfengine:web-prdnfs3: Traversing directory links during copy is too
> dangerous, pruned
>
>
> current format of the command:
>
> $(repo)/etc/conf dest=/hosts/repository/rimmer/etc recurse=inf
> server=rimmer
> linktype=copy backup=false encrypt=true
>
> My frustration mounts as I struggle to understand what I am doing wrong
> here. Either I am not understanding the copy class, or I am pounding nails
> with a wrench.
>
>
>
>
> Russell Conner
> Systems Engineer, VMS & Unix Systems
> Health Net, Inc.
> (916)935-3610
>
>
>
>
> This message,together with any attachments, is
> intended only for the use of the individual or entity
> to which it is addressed. It may contain information
> that is confidential and prohibited from disclosure.
> If you are not the intended recipient, you are hereby
> notified that any dissemination or copying of this
> message or any attachment is strictly prohibited. If
> you have received this message in error, please notify
> the original sender immediately by telephone or by
> return e-mail and delete this message, along with any
> attachments, from your computer. Thank you.
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~