Possible to keep one file cached in memory?


Recommended Posts

I'm using the great cache_dirs script to keep folders and files listings in memory. I have a situation where I need to keep one file and its contents always in memory for a particular NFS share:

\\TOWER\Videos\settings.txt

The file itself is under 60 bytes. I have a media player that will attempt to read this file whenever the "Videos" share is accessed and I don't want it to end up spinning up the drive that contains the file just so that 60 bytes of material need be read.

 

Thanks.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.