Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2001 21:27:29 +0200
From:      Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
To:        freebsd-questions@FreeBSD.ORG
Subject:   List of changed files
Message-ID:  <76379504027.20010328212729@buz.ch>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

Hello,
I'm currently working on some sort of filesystem replication for our
webservers but got the following problem: scanning (i.e. recursively
going through the whole filesystem and see what files have a new
modtime) the whole filesystem for files with changed modtime just
isn't fast enough.
Given some hundred thousand files on one partition, this takes way too
long as the system seems to be reading all the data from the disk
and there appears to be no real caching that would speed up subsequent
scans (which makes some sense, as the cache would have to be HUGE).

So there has to be another possibility to get to the data I
need (i.e. what files did change and when). Since the kernel is
responsible for FS, it would make sense to have him log all writes to
every file on a given filesystem so one could simply parse the logfile
and act accordingly without having the need to scan the entire
filesystem. Is there any facility for this sort of info (I thought
spy:
http://people.freebsd.org/~abial/spy/ might be an option as I could
log all calls to open but couldn't get it to compile on 4.3 RC1)?





Best regards,
 Gabriel

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2i

iQEVAwUBOsItEsZa2WpymlDxAQFbSwf+MWiY/4a2Roh/0n00WORCYXm4jxrnjwqp
aplIWTCnojEzy4Hz4+ItbpPHe/8m+KtBLrwW7W9dR/3Zt9BQU2d/UEwV/Mc+PhM4
gPE756PhpjiDMnDTFiVoKFOypnYtr4seqqpa5IIPD0phTwve0qwRSej4450YFB0W
BV8OBZu06ZoQJedx++nDnt56uyJk8TUBfYwEV1lr4Uo8jtR213ePO9pYX1T1aC26
LI2ISoy4WuNqH6/MQGRv3WpVweQSo469+239q9He3S8ra/2hf1u0yEFljWYXimCz
Qq5s4w7GOtFsO8y4ba4imgbS3GcQ+G/2YgplpFWAfgUTNBJutcasUw==
=Y5DI
-----END PGP SIGNATURE-----



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76379504027.20010328212729>