nfs
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 118
Linux NFS Utilities 1.1.0
Linux NFS Utilities is NFS utilities for Linux NFS clients and servers. more>>
Linux NFS Utilities are NFS utilities for Linux NFS clients and servers.
Main features:
- NFS Versions 2, 3, and 4 are supported on 2.6 and later kernels.
- NFS over UDP and TCP on IPv4 are supported on the latest 2.4 and 2.6 kernels.
- Linux NFS clients and servers have been tested against many non-Linux implementations.
- Since version 1.0.1 of the NFS utilities tarball has changed the server export default to "sync", then, if no behavior is specified in the export list (thus assuming the default behavior), a warning will be generated at export time.
- If you plan to deploy NFS extensively, consider subscribing to one of these mailing lists: NFS Mailing List, or the AutoFS Mailing List. Before reporting problems, you should search for similar issues in the searchable mail archive. Another searchable archive for NFS, supported by Google, is here. The searchable mail archive for AutoFS is here.
- A useful set of generic NFS references includes the following:
- - "NFS Illustrated," by Brent Callaghan; Addison-Wesley, 2000.
- - "Managing NFS and NIS, 2nd edition," by Hal Stern, Mike Eisler, Ricardo Labiaga; OReilly, 2001.
- - "Linux NFS and Automounter Administration," by Erez Zadok; Sybex, 2001.
- - "Using the Linux NFS Client with Network Appliance Filers," by Charles Lever; Netapp TR-3183, 2004.
- - "Mike Eislers NFS blog."
- - "Eric Kustarzs blog."
- - "NFS version 4 home page."
- - Finally, the "linux.org online library" has many references.
Quick setup client guide
1. Acquire and install a recent distribution of Linux.
2. Set up your /etc/exports file (man exports for details).
3. Consult your distributions documentation to determine which /etc/init.d start-up script is used to start your server. Start NFS services by invoking this script as root, using the "start" parameter. Consider adding this script to the list of scripts that are automatically run at system start-up. (Red Hat uses the chkconfig command for this purpose).
4. Read the NFS How-To for advice on tuning and securing your server.
Quick Client Setup Guide
1. Acquire and install a recent distribution of Linux. To enable NLM lock recovery, ensure your clients host name, as returned by uname -n, matches the host name returned by DNS.
2. The NLM protocol is handled by an in-kernel service in modern kernels, but the user-level rpc.statd program must be running to enable NLM lock recovery. Consult your distributions documentation to determine which /etc/init.d start-up script is used to start it. Start the NSM daemon by invoking this script as root, using the "start" parameter. Consider adding this script to the list of scripts that are automatically run at system start-up. (Red Hat uses the chkconfig command for this purpose).
3. Create the directories on your client where you will mount the NFS shares.
4. Add entries in /etc/fstab corresponding to your mount points (man nfs for details).
5. Use mount -a -t nfs to mount the NFS shares.
6. During system boot-up, most distributions automatically mount NFS shares that are listed in /etc/fstab. If yours doesnt, check your distributions documentation for instructions on how to configure your client to do this.
Enhancements:
- The "mount.nfs" command was added, since the nfs mount functionality is being migrated from util-linux to nfs-utils.
- Substantial changes to were made statd. Various pieces of old code were removed.
- Lots of bugfixes and improvements were made.
<<lessMain features:
- NFS Versions 2, 3, and 4 are supported on 2.6 and later kernels.
- NFS over UDP and TCP on IPv4 are supported on the latest 2.4 and 2.6 kernels.
- Linux NFS clients and servers have been tested against many non-Linux implementations.
- Since version 1.0.1 of the NFS utilities tarball has changed the server export default to "sync", then, if no behavior is specified in the export list (thus assuming the default behavior), a warning will be generated at export time.
- If you plan to deploy NFS extensively, consider subscribing to one of these mailing lists: NFS Mailing List, or the AutoFS Mailing List. Before reporting problems, you should search for similar issues in the searchable mail archive. Another searchable archive for NFS, supported by Google, is here. The searchable mail archive for AutoFS is here.
- A useful set of generic NFS references includes the following:
- - "NFS Illustrated," by Brent Callaghan; Addison-Wesley, 2000.
- - "Managing NFS and NIS, 2nd edition," by Hal Stern, Mike Eisler, Ricardo Labiaga; OReilly, 2001.
- - "Linux NFS and Automounter Administration," by Erez Zadok; Sybex, 2001.
- - "Using the Linux NFS Client with Network Appliance Filers," by Charles Lever; Netapp TR-3183, 2004.
- - "Mike Eislers NFS blog."
- - "Eric Kustarzs blog."
- - "NFS version 4 home page."
- - Finally, the "linux.org online library" has many references.
Quick setup client guide
1. Acquire and install a recent distribution of Linux.
2. Set up your /etc/exports file (man exports for details).
3. Consult your distributions documentation to determine which /etc/init.d start-up script is used to start your server. Start NFS services by invoking this script as root, using the "start" parameter. Consider adding this script to the list of scripts that are automatically run at system start-up. (Red Hat uses the chkconfig command for this purpose).
4. Read the NFS How-To for advice on tuning and securing your server.
Quick Client Setup Guide
1. Acquire and install a recent distribution of Linux. To enable NLM lock recovery, ensure your clients host name, as returned by uname -n, matches the host name returned by DNS.
2. The NLM protocol is handled by an in-kernel service in modern kernels, but the user-level rpc.statd program must be running to enable NLM lock recovery. Consult your distributions documentation to determine which /etc/init.d start-up script is used to start it. Start the NSM daemon by invoking this script as root, using the "start" parameter. Consider adding this script to the list of scripts that are automatically run at system start-up. (Red Hat uses the chkconfig command for this purpose).
3. Create the directories on your client where you will mount the NFS shares.
4. Add entries in /etc/fstab corresponding to your mount points (man nfs for details).
5. Use mount -a -t nfs to mount the NFS shares.
6. During system boot-up, most distributions automatically mount NFS shares that are listed in /etc/fstab. If yours doesnt, check your distributions documentation for instructions on how to configure your client to do this.
Enhancements:
- The "mount.nfs" command was added, since the nfs mount functionality is being migrated from util-linux to nfs-utils.
- Substantial changes to were made statd. Various pieces of old code were removed.
- Lots of bugfixes and improvements were made.
Download (0.77MB)
Added: 2007-05-11 License: GPL (GNU General Public License) Price:
910 downloads
NFS Backup System 0.0.1
NFS Backup System is a Perl script that backup system for NFS. more>>
NFS Backup System is a Perl script that backup system for NFS. The basic function nfsbu is an automated perl-script backup system between an NFS server and an NFS client.
Either by crontab or manual execution, directories listed in the configuration file can be backed up to a directory mounted on the NFS server. In turn, the NFS server uses the client-side script of nsbu (nfsbuc.pl) to move the data from the temporary NFS mount directory to their final places (also specified in the configuration file).
I created this script having been learning Perl for maybe 2 weeks and progressing not much further than page 12 of Programming Perl by Larry Wall and Randal L. Shwartz. Hence you may consider the code badly written, but a quote from the book Id like to include is "a Perl script is correct if its halfway readable and gets the job done before your boss fires you". So I take no blame for the code, Ive commented my code and it worked for me and I make no promises it will work for you.
With regards to licencing, I guess its not really worthy of the full 9 yards, but lets have the happy code hacker ethic of open source development. I.e. something of somewhat basic GPL licence terms and conditions. You may feel inclined to modify the code, in such case if you do, please e-mail me the changes and include the modified code. If youd like to redistribute it with your modifications, please include my name and the original code.
Main features:
- multiple directory backup, with alternative destination directories
- directories are simply listed in a file with their respective destinations
- thorough error checking, if any errors occur e-mail will be sent to the administrator
- checks the status of the NFS server and mountd to prevent any hang-ups from a dead NFS server which is common
<<lessEither by crontab or manual execution, directories listed in the configuration file can be backed up to a directory mounted on the NFS server. In turn, the NFS server uses the client-side script of nsbu (nfsbuc.pl) to move the data from the temporary NFS mount directory to their final places (also specified in the configuration file).
I created this script having been learning Perl for maybe 2 weeks and progressing not much further than page 12 of Programming Perl by Larry Wall and Randal L. Shwartz. Hence you may consider the code badly written, but a quote from the book Id like to include is "a Perl script is correct if its halfway readable and gets the job done before your boss fires you". So I take no blame for the code, Ive commented my code and it worked for me and I make no promises it will work for you.
With regards to licencing, I guess its not really worthy of the full 9 yards, but lets have the happy code hacker ethic of open source development. I.e. something of somewhat basic GPL licence terms and conditions. You may feel inclined to modify the code, in such case if you do, please e-mail me the changes and include the modified code. If youd like to redistribute it with your modifications, please include my name and the original code.
Main features:
- multiple directory backup, with alternative destination directories
- directories are simply listed in a file with their respective destinations
- thorough error checking, if any errors occur e-mail will be sent to the administrator
- checks the status of the NFS server and mountd to prevent any hang-ups from a dead NFS server which is common
Download (0.005MB)
Added: 2007-03-27 License: GPL (GNU General Public License) Price:
943 downloads
FreeNAS 0.685 Beta 2
FreeNAS is a free implementation of a minimal FreeBSD distribution. more>>
FreeNAS is a free implementation of a minimal FreeBSD distribution(for run it on a Compact Flash, CD-ROM or USB key) that provide NAS (Network-Attached Storage) services, supporting: CIFS, FTP, NFS protocols, with a Full WEB configuration interface.
The minimal FreeBSD distribution, Web interface,PHP scripts and documentations are based on M0n0wall.
<<lessThe minimal FreeBSD distribution, Web interface,PHP scripts and documentations are based on M0n0wall.
Download (38.1MB)
Added: 2007-08-06 License: BSD License Price:
499 downloads
Other version of FreeNAS
License:Freeware
sarPplot 1.0.3
sarPplot is a simple application which takes output of atsar application and put it into Gnuplot config files. more>>
sarPplot project is a simple application which takes output of atsar application and put it into Gnuplot config files, kind of useful on server boxes for performance analyze, which is availabel on:
- cpu
- processload
- disk
- disk-partition
- memory&swap
- paging&swapping
- interrupts
- kernel-resources
- ttyactivity
- net-interf(general)
- net-interf(errors)
- ipv4(general)
- ipv4(errors)
- tcpv4(general)
- tcpv4(errors)
- udpv4
- icmpv4(general)
- icmpv4(pertype)
- nfs(general)
- nfs(errors)
- nfs(server)
- nfs-rpc(calls)
Enhancements:
- A grid feature was added along with httprequests and httpdpid targets.
- A bug in the interr function was fixed.
<<less- cpu
- processload
- disk
- disk-partition
- memory&swap
- paging&swapping
- interrupts
- kernel-resources
- ttyactivity
- net-interf(general)
- net-interf(errors)
- ipv4(general)
- ipv4(errors)
- tcpv4(general)
- tcpv4(errors)
- udpv4
- icmpv4(general)
- icmpv4(pertype)
- nfs(general)
- nfs(errors)
- nfs(server)
- nfs-rpc(calls)
Enhancements:
- A grid feature was added along with httprequests and httpdpid targets.
- A bug in the interr function was fixed.
Download (0.011MB)
Added: 2006-09-03 License: GPL (GNU General Public License) Price:
1148 downloads
File::NFSLock 1.20
File::NFSLock is a Perl module to do NFS (or not) locking. more>>
File::NFSLock is a Perl module to do NFS (or not) locking.
SYNOPSIS
use File::NFSLock qw(uncache);
use Fcntl qw(LOCK_EX LOCK_NB);
my $file = "somefile";
### set up a lock - lasts until object looses scope
if (my $lock = new File::NFSLock {
file => $file,
lock_type => LOCK_EX|LOCK_NB,
blocking_timeout => 10, # 10 sec
stale_lock_timeout => 30 * 60, # 30 min
}) {
### OR
### my $lock = File::NFSLock->new($file,LOCK_EX|LOCK_NB,10,30*60);
### do write protected stuff on $file
### at this point $file is uncached from NFS (most recent)
open(FILE, "+<<less
SYNOPSIS
use File::NFSLock qw(uncache);
use Fcntl qw(LOCK_EX LOCK_NB);
my $file = "somefile";
### set up a lock - lasts until object looses scope
if (my $lock = new File::NFSLock {
file => $file,
lock_type => LOCK_EX|LOCK_NB,
blocking_timeout => 10, # 10 sec
stale_lock_timeout => 30 * 60, # 30 min
}) {
### OR
### my $lock = File::NFSLock->new($file,LOCK_EX|LOCK_NB,10,30*60);
### do write protected stuff on $file
### at this point $file is uncached from NFS (most recent)
open(FILE, "+<<less
Download (0.018MB)
Added: 2007-04-27 License: Perl Artistic License Price:
912 downloads
Crucible 1.7.1
Crucible provides a powerful, flexible backend for building automated testing systems. more>>
Crucible provides a powerful, flexible backend for building automated testing systems. Crucible allows for conducting tests on multiple machines (via NFS), including patching, rebuilding, and booting new kernels, libraries, and services.
Configuration and customization can be done through simple config files and bash scripts. It is suitable for performing tests of GUI applications, services, libraries, and kernel patches.
<<lessConfiguration and customization can be done through simple config files and bash scripts. It is suitable for performing tests of GUI applications, services, libraries, and kernel patches.
Download (0.078MB)
Added: 2006-11-11 License: GPL (GNU General Public License) Price:
1078 downloads
nfswatch 4.99.9
nfswatch monitors all incoming network traffic on an NFS file server and divides it into several categories. more>>
nfswatch monitors all incoming network traffic to an NFS file server and divides it into several categories.
The number and percentage of packets received in each category is displayed on the screen in a continuously updated display. The screen is updated every ten seconds by default.
Enhancements:
- This release improves file handle decoding on Linux.
- In particular, filesystems exported through a specified filesystem ID (the fsid= export option) should now be properly handled.
- Some more runtime analysis and tweaks were performed, and nfswatch should no longer clutter the display with debug info.
<<lessThe number and percentage of packets received in each category is displayed on the screen in a continuously updated display. The screen is updated every ten seconds by default.
Enhancements:
- This release improves file handle decoding on Linux.
- In particular, filesystems exported through a specified filesystem ID (the fsid= export option) should now be properly handled.
- Some more runtime analysis and tweaks were performed, and nfswatch should no longer clutter the display with debug info.
Download (0.050MB)
Added: 2007-05-30 License: BSD License Price:
879 downloads
StoreBackup 1.19
StoreBackup is a backup utility that stores files on other disks. more>>
StoreBackup is a backup utility that stores files on other disks.
It includes several optimizations that reduce the disk space needed and improve performance, and unifies the advantages of traditional full and incremental backups.
Depending on its contents, every file is stored only once on disk. It includes tools for analyzing backup data and restoring. Once archived, files are accessible by mounting filesystems (locally, or via Samba or NFS). It is easy to install and configure.
<<lessIt includes several optimizations that reduce the disk space needed and improve performance, and unifies the advantages of traditional full and incremental backups.
Depending on its contents, every file is stored only once on disk. It includes tools for analyzing backup data and restoring. Once archived, files are accessible by mounting filesystems (locally, or via Samba or NFS). It is easy to install and configure.
Download (0.096MB)
Added: 2005-09-26 License: GPL (GNU General Public License) Price:
1488 downloads
Mulimidix 0.7
Mulimidix is a mini Linux multimedia/VDR distribution. more>>
Mulimidix is a small Linux distribution for building a PC-based set-top box and multimedia player system to use on tv. Currently it supports:
- Digital TV
- Digital TV
- Video and Audio Playback
- Videotext
- DVD Playback and Navigation (Non CSS)
- Audio-CDs
- Network Support (NFS / Samba)
- Image Viewer
- LCD Frontpanel Support
- Remote Control Support
- and many, many more features
<<less- Digital TV
- Digital TV
- Video and Audio Playback
- Videotext
- DVD Playback and Navigation (Non CSS)
- Audio-CDs
- Network Support (NFS / Samba)
- Image Viewer
- LCD Frontpanel Support
- Remote Control Support
- and many, many more features
Download (348MB)
Added: 2005-04-05 License: GPL (GNU General Public License) Price:
1667 downloads
wminet 3.0.0
wminet is a very useful dock app for monitoring internet connections to and from your computer. more>>
wminet is a very useful dock app for monitoring internet connections to and from your computer.
The number of connections can be filtered based on local and remote addresses and ports, on either tcp or udp. It can also display hostname and number of processes.
This new version uses a lot less CPU and allows greater configuration. The original program can be found here. However, I have removed the ability to monitor httpd and ftpd processes, nfs mounts and lpd queues.
<<lessThe number of connections can be filtered based on local and remote addresses and ports, on either tcp or udp. It can also display hostname and number of processes.
This new version uses a lot less CPU and allows greater configuration. The original program can be found here. However, I have removed the ability to monitor httpd and ftpd processes, nfs mounts and lpd queues.
Download (0.046MB)
Added: 2006-10-26 License: GPL (GNU General Public License) Price:
1093 downloads
CryptoBox 0.3.4.4 (CryptoBox-Server)
CryptoBox project wants to bring data encryption to the masses. more>>
CryptoBox project wants to bring data encryption to the masses. CryptoBox project provides two packages: CryptoBox-Server and CryptoBox-CD.
The CryptoBox-Server package adds hard disk encryption to a file server (running Samba, NFS, DAV, etc.) without annoying its users.
The CryptoBox-CD is targeted at users who want to set up an encrypting file server without bothering about complicated administration issues.
Enhancements:
- A Spanish translation was added.
- A Debian package is now also available for the ARM architecture.
<<lessThe CryptoBox-Server package adds hard disk encryption to a file server (running Samba, NFS, DAV, etc.) without annoying its users.
The CryptoBox-CD is targeted at users who want to set up an encrypting file server without bothering about complicated administration issues.
Enhancements:
- A Spanish translation was added.
- A Debian package is now also available for the ARM architecture.
Download (1.1MB)
Added: 2007-05-23 License: GPL (GNU General Public License) Price:
897 downloads
JamDB 0.9.9
JamDB (Just another music DB) is a fast PHP-based music database. more>>
JamDB (Just another music DB) is a fast PHP-based music database that can be used with many different databases. (JamDB is well tested with MySQL and PostgreSQL). All MP3s can easily be searched for artists, albums, and songs.
A user can choose to download a song or add a single song, an album, all songs of an artist, or his search result directly to the playlist of XMMS/Winamp/etc. This can be done via the Web, NFS, Samba, or any other possibilty to access the MP3 files. JamDB has a simple session-based user management and other neat features.
<<lessA user can choose to download a song or add a single song, an album, all songs of an artist, or his search result directly to the playlist of XMMS/Winamp/etc. This can be done via the Web, NFS, Samba, or any other possibilty to access the MP3 files. JamDB has a simple session-based user management and other neat features.
Download (0.097MB)
Added: 2006-05-12 License: GPL (GNU General Public License) Price:
1264 downloads
OpenVZ kernel 2.6.18-028stab039.1
OpenVZ is a modified Linux kernel with additional support for OpenVZ Virtual Private servers (VPS). more>>
OpenVZ is a modified Linux kernel with additional support for OpenVZ Virtual Private servers (VPS).
VPSs are isolated, secure environments on a single physical server, enabling better server utilization and ensuring that applications do not conflict.
Each VPS performs and executes exactly like a stand-alone server; VPSs can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries, and configuration files. OpenVZ is a subset of Virtuozzo.
Whats New in 2.6.18-028stab039.1 Stable Release:
- A critical fix in CPT. Minor fixes for bridge, XEN x8664, CPT, 4GB split, NFS, VPIDs, etc.
- Fixes for swsusp on SLES, CBQ fairness on low rates, and an NFS startup deadlock.
Whats New in 2.6.18-028test027.1 Development Release:
- Fixes/improvements in checkpointing, NFS in VE, IOPRIO, and the CPU fair scheduler.
- A few fixes have been ported from the mainstream branch.
- The NMI watchdog is now disabled by default.
- DRBD has been updated to 8.0.
<<lessVPSs are isolated, secure environments on a single physical server, enabling better server utilization and ensuring that applications do not conflict.
Each VPS performs and executes exactly like a stand-alone server; VPSs can be rebooted independently and have root access, users, IP addresses, memory, processes, files, applications, system libraries, and configuration files. OpenVZ is a subset of Virtuozzo.
Whats New in 2.6.18-028stab039.1 Stable Release:
- A critical fix in CPT. Minor fixes for bridge, XEN x8664, CPT, 4GB split, NFS, VPIDs, etc.
- Fixes for swsusp on SLES, CBQ fairness on low rates, and an NFS startup deadlock.
Whats New in 2.6.18-028test027.1 Development Release:
- Fixes/improvements in checkpointing, NFS in VE, IOPRIO, and the CPU fair scheduler.
- A few fixes have been ported from the mainstream branch.
- The NMI watchdog is now disabled by default.
- DRBD has been updated to 8.0.
Download (11MB)
Added: 2007-07-31 License: GPL (GNU General Public License) Price:
815 downloads
Volume Sharing Manager 1.35
Volume Sharing Manager (Vsman) is a utility that has been designed for volume (directory) sharing management on the server side. more>>
Volume Sharing Manager (Vsman) is a utility that has been designed for volume (directory) sharing management on the server side. So far, it manages NFS v3 and V4, but can be extended to others volume sharing systems.
You can select a NFS v4 server interface in the preferences dialog box. Otherwise, invoke vsman with the flag -4 in order to display the NFS v4 specific mounting options when needed.
Vsman must be run as root. It displays on the left a tree view of known directories with their possible accesses, i.e. client hosts that can mount directories from the server where vsman is running.
Each directory is displayed with a green, yellow or red spot.
Green if the directory is exported but not mounted.
Yellow when exported and mounted.
Red when unexported.
When you double-click on an access, the left side shows its mounting options.
You can obviously declare a new volume. Vsman just asks you the name of the corresponding directory. You can of course create or delete accesses for the current volume. When you create one, a dialog box appears, that asks you the suitable host name, network
name or address, or netgroup name.
If the host filed is empty, the networks field is then tested, and if empty again, the netgroup is selected.
If you select "NIS" instead of "Files" in the preferences dialog box, the hosts, networks, users and groups will be fetched from the given NIS domain name. For more info about NIS, read the corresponding HOWTO documentation.
Selecting the Reexport menu will reexport all and synchronize vsman with the exported volumes declared in /etc/exports.
Double-click on a mounting host and select Unexport Host in the Action menu, and the current volume will be unexported from the corresponding volume.
Unexport whole volume will do the same thing, but for all the mounting hosts.
The Start / Stop menu will stop or restart the NFS server.
The Save menu will write the NFS /etc/exports file and reexport all volumes.
This tool has been written in Ada 95, using gtkada 2.4 as the toolkit. Dont forget to install gnat 4.1.x or later. Gnat is now a component of the gcc suite.
Enhancements:
- A few important bugs were fixed.
- Hostname lookup was added.
- The compilation and installation process was improved.
<<lessYou can select a NFS v4 server interface in the preferences dialog box. Otherwise, invoke vsman with the flag -4 in order to display the NFS v4 specific mounting options when needed.
Vsman must be run as root. It displays on the left a tree view of known directories with their possible accesses, i.e. client hosts that can mount directories from the server where vsman is running.
Each directory is displayed with a green, yellow or red spot.
Green if the directory is exported but not mounted.
Yellow when exported and mounted.
Red when unexported.
When you double-click on an access, the left side shows its mounting options.
You can obviously declare a new volume. Vsman just asks you the name of the corresponding directory. You can of course create or delete accesses for the current volume. When you create one, a dialog box appears, that asks you the suitable host name, network
name or address, or netgroup name.
If the host filed is empty, the networks field is then tested, and if empty again, the netgroup is selected.
If you select "NIS" instead of "Files" in the preferences dialog box, the hosts, networks, users and groups will be fetched from the given NIS domain name. For more info about NIS, read the corresponding HOWTO documentation.
Selecting the Reexport menu will reexport all and synchronize vsman with the exported volumes declared in /etc/exports.
Double-click on a mounting host and select Unexport Host in the Action menu, and the current volume will be unexported from the corresponding volume.
Unexport whole volume will do the same thing, but for all the mounting hosts.
The Start / Stop menu will stop or restart the NFS server.
The Save menu will write the NFS /etc/exports file and reexport all volumes.
This tool has been written in Ada 95, using gtkada 2.4 as the toolkit. Dont forget to install gnat 4.1.x or later. Gnat is now a component of the gcc suite.
Enhancements:
- A few important bugs were fixed.
- Hostname lookup was added.
- The compilation and installation process was improved.
Download (0.25MB)
Added: 2006-12-03 License: GPL (GNU General Public License) Price:
1057 downloads
LockFile::Simple 0.2.5
LockFile::Simple is a simple file locking scheme. more>>
LockFile::Simple is a simple file locking scheme.
SYNOPSIS
use LockFile::Simple qw(lock trylock unlock);
# Simple locking using default settings
lock("/some/file") || die "cant lock /some/filen";
warn "already lockedn" unless trylock("/some/file");
unlock("/some/file");
# Build customized locking manager object
$lockmgr = LockFile::Simple->make(-format => %f.lck,
-max => 20, -delay => 1, -nfs => 1);
$lockmgr->lock("/some/file") || die "cant lock /some/filen";
$lockmgr->trylock("/some/file");
$lockmgr->unlock("/some/file");
$lockmgr->configure(-nfs => 0);
# Using lock handles
my $lock = $lockmgr->lock("/some/file");
$lock->release;
This simple locking scheme is not based on any file locking system calls such as flock() or lockf() but rather relies on basic file system primitives and properties, such as the atomicity of the write() system call. It is not meant to be exempt from all race conditions, especially over NFS. The algorithm used is described below in the ALGORITHM section.
It is possible to customize the locking operations to attempt locking once every 5 seconds for 30 times, or delete stale locks (files that are deemed too ancient) before attempting the locking.
<<lessSYNOPSIS
use LockFile::Simple qw(lock trylock unlock);
# Simple locking using default settings
lock("/some/file") || die "cant lock /some/filen";
warn "already lockedn" unless trylock("/some/file");
unlock("/some/file");
# Build customized locking manager object
$lockmgr = LockFile::Simple->make(-format => %f.lck,
-max => 20, -delay => 1, -nfs => 1);
$lockmgr->lock("/some/file") || die "cant lock /some/filen";
$lockmgr->trylock("/some/file");
$lockmgr->unlock("/some/file");
$lockmgr->configure(-nfs => 0);
# Using lock handles
my $lock = $lockmgr->lock("/some/file");
$lock->release;
This simple locking scheme is not based on any file locking system calls such as flock() or lockf() but rather relies on basic file system primitives and properties, such as the atomicity of the write() system call. It is not meant to be exempt from all race conditions, especially over NFS. The algorithm used is described below in the ALGORITHM section.
It is possible to customize the locking operations to attempt locking once every 5 seconds for 30 times, or delete stale locks (files that are deemed too ancient) before attempting the locking.
Download (0.012MB)
Added: 2007-04-25 License: Perl Artistic License Price:
914 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above nfs search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed