New knob for ignoring readonly fss in 340.noid and 310.locate?

Jason Hellenthal jhell at DataIX.net
Mon May 2 08:30:46 UTC 2011


Andre,

Give this a shot.

http://patches.jhell.googlecode.com/hg/340.noid.patch

Apply with ( patch -p1 -E < /path/to/340.noid.patch )

Then either copy the resulting script to where it needs to go and remove
the old 340.noid or run one of mergemaster or etcupdate.

This effectively pushes it to periodic/security/310.chknoid which makes
a lot more sense than beeing in weekly as a non-security measure.

Introduces:
daily_status_security_chknoid_enable="YES"
daily_status_security_chknoid_dirs=""

By default it populates its directory list with zfs,ufs mountpoints and
will not cross mountpoints as per '-x' options to find(1).

On Mon, May 02, 2011 at 07:27:39AM +0200, Andre Albsmeier wrote:
>On Mon, 02-May-2011 at 04:59:42 +0200, Jason Hellenthal wrote:
>> 
>> Andre,
>> 
>> 
>> On Sun, May 01, 2011 at 10:19:30AM +0200, Andre Albsmeier wrote:
>> >On Sat, 30-Apr-2011 at 23:31:57 +0200, Jason Hellenthal wrote:
>> >> 
>> >> By default snapshots directories are hidden and treated as a virtual
>> >
>> >Is it possible to hide snapshots directories in UFS?
>> >
>> 
>> Snapshot directories on UFS are treated differently than they are in
>> ZFS. UFS snapshot directories live as the base of the filesystem and are
>> not auto-mounted perse when you cd(1) into them so therefore there isn't a
>> need to hide them because they cannot be traversed.
>
>They are mounted and they have to be mounted (at least here). If
>they weren't mounted, people couldn't access them. That's why
>they are also being traversed by 310.locate and 340.noid. To
>summarise:
>
>- I use UFS.
>- My snapshots must be mounted.
>- They are being traversed by 310.locate and 340.noid.
>- I don't want the latter.
>
>To accomplish this, I can play around with (directory name dependent)
>exclusion lists for 310.locate and 340.noid. I could also implement
>a rdonly knob.
>
>	-Andre

-- 

 Regards, (jhell)
 Jason Hellenthal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 522 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20110502/287c8c07/attachment.pgp


More information about the freebsd-rc mailing list