[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-devel
Subject:    Re: Advice on Compact Flash Operation required
From:       Jamie Cameron <jcameron () webmin ! com>
Date:       2003-04-08 22:47:43
[Download RAW message or body]

On Tue, 2003-04-08 at 21:04, Thomas P. Jones wrote:
> Hi folks,
> 
> I'm currently setting up a linux unit to boot and operate 
> from a compact flash disk (SanDisk).
> I'd like to use webmin to configure/monitor this unit.
> 
> The main goal is to reduce any writes caused by 
> webmin to the compact flash disk -  since it has a
> limited life time regarding writes to it. So any temporary
> files created during the operation of webmin I'd like
> to reduce or eliminate.
> 
> I'll be putting /tmp and /var to a RAM Filesystem so
> that will help there for any writes webmin makes
> to those dirs.
> 
> The other main thing I can think of regarding webmin
> is the creation/deletion of lock files by the lock_file and
> unlock_file functions. My idea here is to modify these
> functions to create/delete this lock file from under the 
> /tmp/.webmin dir (ie the pathname of the file with the
> .lock extension could be created with the root dir
> being /tmp/.webmin instead of /. 
> eg /tmp/.webmin/etc/resolv.conf.lock instead of
> /etc/resolv.conf.lock)
> 
> Is there any other element of webmin that I have
> overlooked that should need changing as well ?
> 
> I'd be interested in any advice you may have on 
> this matter. Thanks a lot.

Sounds like quite an interesting project .. Anyway, the most commonly
written-to files by webmin are :

- Temp files in /tmp/.webmin
- Lock files just about anywhere, like /etc/passwd.lock
- Logs and the PID file in /var/webmin
- Some files in /etc/webmin, such as the per-module config files.
However, these are nowhere near as frequently modified as the first
three ..
- The webmin root directory /usr/libexec/webmin. This is never changed
unless a clone of a module is created..

So it looks like you have the important ones covered.

 - Jamie




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
-
Forwarded by the Webmin development list at webmin-devel@webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic