Linux : Will stat access Hard Disk for its operation

We need check whether stat() call will access Hard disk during its operation?

i coulnt find answer for above question.

can anyone help me on this?


Since stat(2) identifies the file with a pathname, the system has no option but to query the filesystem for the information.

I suppose the information could happen to be in a cache, so actually hitting the disk might not happen for a particular call, but generally the system will need to perform I/O.

Need Your Help

PyMongo - Clone Collection from another server

python mongodb pymongo

I'm attempting to clone a collection on a remote server to my localhost with indexs using Python (as I'll have to be automating multiple tasks with this function using Python later on). From what I...