cfengine-develop
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cfengine-develop] Need you to help me


From: Mark . Burgess
Subject: Re: [Cfengine-develop] Need you to help me
Date: Thu, 5 Jun 2003 18:19:43 +0200 (MEST)

I am going to have to do it myself, since no one else has replied
It is needed quickly

M


On  5 Jun, Andrew Stribblehill wrote:
> Quoting Mark Burgess <address@hidden> (2003-06-04 12:35:10 BST):
>> 
>> I have an easy job that I would like someone to help me with.
>> I need a patch to the latest cfengine that improves the
>> detection of foreign fileystems/partitions. We need an option
>> on every recursive search that is like -xdev in find
>> and prevents descent into foreign filesystems.
>> 
>> One now has fsstat() to do this kind of thing, but I don't know
>> how find or other tools do it.
> 
> GNU find does this:
> 
>   if (stay_on_filesystem)
>     {
>       if (curdepth == 0)
>         root_dev = stat_buf.st_dev;
>       else if (stat_buf.st_dev != root_dev)
>         stop_at_current_level = true;
>     }
> 
> stat_buf is a struct stat, and is populated by an lstat() call.
> 
> I'm afraid I have no time right now to deal with it either but I
> guess you're talking about mount.c and RecursiveCheck() in filedir.c.
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]