On 02/ 9/11 11:50 PM, Zoltan Gyula Beck wrote:
   Yes, I know that way with ls, but how can I check all the infected
files on a dataset which is used by a file server with millions of
files?! I mean there is no official way to check infections, but I
have to use some customs scripts? (find, ls, grep)

The quarantine bit is just an attribute of the file. ZFS is not a database so you can't do

        select name from files where files.quarantine = true;

There is no way go to this other than getting the system attributes from each file directly. The only way to do that from shell script is find/ls/grep. You could write a C program that uses the same method that ls does to get the attributes but you will still have to visit every file in the file system.

--
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to