[CentOS] Modifying files of NFS

Thu Apr 16 00:12:50 UTC 2015
Steven Tardy <sjt5atra at gmail.com>

> I have an NFS storage system and want to run jpegoptim on several GB's
> of jpeg images and I'm wondering what the best approach is.
> Is it ok to run this operation on the Server itself while the clients
> have it mounted or will this lead to problems like e.g. the dreaded
> "stale filehandle"?

Stale file handles won't happen if the file modified time stamp is updated. Add a simple 'touch $file' after updating each file.