From: Klaus Weidner <klaus@atsec.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: russell@coker.com.au, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: SMP enabled restorecon
Date: Wed, 2 Aug 2006 15:25:57 -0500 [thread overview]
Message-ID: <20060802202557.GC5967@w-m-p.com> (raw)
In-Reply-To: <44D10261.4020005@redhat.com>
On Wed, Aug 02, 2006 at 03:52:01PM -0400, Daniel J Walsh wrote:
> You might want to look at what find is doing also, since it seems more
> efficient that restorecon
>
> time restorecon -R /etc
> real 0m5.729s
>
> time find /etc/ | restorecon -f -
> real 0m5.153s
This might be the leaf optimization (see find(1), -noleaf), "find" uses
the directory hard link count to avoid stat()ing files when it knows that
they cannot be directories.
-Klaus
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2006-08-02 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-29 15:17 SMP enabled restorecon Russell Coker
2006-07-29 15:20 ` Russell Coker
2006-07-30 13:13 ` Russell Coker
2006-07-30 14:12 ` Russell Coker
2006-08-02 19:52 ` Daniel J Walsh
2006-08-02 20:25 ` Klaus Weidner [this message]
2006-08-02 20:38 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060802202557.GC5967@w-m-p.com \
--to=klaus@atsec.com \
--cc=dwalsh@redhat.com \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.