Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Discover which programs prevent disk image ejection' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Discover which programs prevent disk image ejection
Authored by: PatrickS on Jun 16, '08 11:28:22AM
From lsof(1):
lsof may process this option slowly and require a large amount of dynamic memory to do it. This is because it must descend the entire directory tree, rooted at D, calling stat(2) for each file and directory, building a list of all the files it finds, and searching that list for a match with every open file. When directory D is large, these steps can take a long time, so use this option prudently.
So using grep may be the faster way after all.


[ Reply to This | # ]