Transparently cache files from a network drive in Linux
        Posted  
        
            by 
                Vadim
            
        on Super User
        
        See other posts from Super User
        
            or by Vadim
        
        
        
        Published on 2012-07-09T13:36:13Z
        Indexed on 
            2012/07/09
            15:18 UTC
        
        
        Read the original article
        Hit count: 343
        
We have a Linux server that reads files from a network drive and processes them. In a common scenario, a user will log in and access the same files over and over again. The size of the files varies but the larger ones can be around 50+ Mb. The files seldom change.
I was wondering if it's somehow possible to transparently cache the files. I don't want (or can) change the program the reads the files, nor do I control the protocol by which the files are accessed. I just want something to detect that I access a certain path, copy the file locally (if needed) and then read the file from the local drive.
I've read about Bcache but can't figure out if it's what I need.
Do you have any suggestions?
Thanks, Vadim.
© Super User or respective owner