[gpfsug-discuss] Policy scan of symbolic links with contents?
Stephen Ulmer
ulmer at ulmer.org
Mon Mar 8 22:33:38 GMT 2021
Does that check the target of the symlink, or the path to the link itself? I think the OP was checking the target (or I misunderstood).
--
Stephen Ulmer
Sent from a mobile device; please excuse auto-correct silliness.
> On Mar 8, 2021, at 3:34 PM, Jonathan Buzzard <jonathan.buzzard at strath.ac.uk> wrote:
>
> On 08/03/2021 20:45, Jonathan Buzzard wrote:
>
> [SNIP]
>
>> So noting that you can write very SQL like statements something like the
>> following should in theory do it
>> RULE finddangling LIST dangle WHERE MISC_ATTRIBUTES='L' AND
>> SUBSTR(PATH_NAME,0,4)='/fs1/'
>> Note the above is not checked in any way shape or form for working. Even
>> if you do have bind mounts of other GPFS file systems you just need a
>> more complicated WHERE statement.
>
> Duh, of course as soon as I sent it, I realized there is a missing SHOW
>
> RULE finddangling LIST dangle SHOW(PATH_NAME) WHERE MISC_ATTRIBUTES='L' AND SUBSTR(PATH_NAME,0,4)='/fs1/'
>
> You could replace the SUBSTR with a REGEX if you prefer
>
>
> JAB.
>
> --
> Jonathan A. Buzzard Tel: +44141-5483420
> HPC System Administrator, ARCHIE-WeSt.
> University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at spectrumscale.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
More information about the gpfsug-discuss
mailing list