Re: Monitor a filesystem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Ed Greshko wrote:
Cameron Simpson wrote:
On 04Jan2008 19:26, Jeffrey Ross <jeff@xxxxxxxxxx> wrote:
is it possible to monitor a file system to see what files have been open (and closed), and if so, how? The device in this case would be a USB CD-rom drive and the filesystem would be the disk in it.
The inotify system may do the trick for you. See "man 7 inotify" for details.
I expect there must be some handy utilities around that use it.

Would that really work?  I was under the impression that inotify was using
file system attributes and since a CD is read-only the attributes can't be
updated/modified.

Ed

knowing that it was only one process (and maybe its children) that would be accessing the drive I took a different tact, instead I use "strace -f -o /tmp/outfile -e trace=file <program name>"
that got me the output I was looking for.

Thanks!

Jeff

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux