|
Here's the code I use: At init time I call: # Set the caching mode of the owfs filesystem Owfs.set_caching("0","300","300","300","300","300") In a lib: # Set the appropriate chahing modes of the owfs def Owfs.set_caching(volatile,stable,serial,presence,directory,server) $debuglevel > 1 and puts "Setting owfs caching mode" volatile_file = File.new("/mnt/1wire/settings/timeout/volatile","w") volatile_file.write(volatile) volatile_file.close() stable_file = File.new("/mnt/1wire/settings/timeout/stable","w") stable_file.write(stable) stable_file.close() serial_file = File.new("/mnt/1wire/settings/timeout/serial","w") serial_file.write(serial) serial_file.close() presence_file = File.new("/mnt/1wire/settings/timeout/presence","w") presence_file.write(presence) presence_file.close() directory_file = File.new("/mnt/1wire/settings/timeout/directory","w") directory_file.write(directory) directory_file.close() server_file = File.new("/mnt/1wire/settings/timeout/server","w") server_file.write(server) server_file.close() end Domokos Molnár On 09/24/2010 09:29 PM, Paul Alfille wrote: When you say "zero caching" -- how do you accomplish that? (It would help with debugging). |
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
