[Lustre-discuss] Problem with flock and perl on Lustre FS

2010-03-05 Thread Jagga Soorma
Hi Guys,

How does lustre handle locking?  One of our users is complaining that a perl
module (Sotrable) has trouble with its lock_nstore method when it tries to
use flock.  The following is a hwo they are reporducing this issue:

--
 perl -d -e ''

Loading DB routines from perl5db.pl version 1.3
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

Debugged program terminated.  Use q to quit or R to restart,
 use o inhibit_exit to avoid stopping after program termination,
 h q, h R or h o to get additional info.
 DB1 use Fcntl ':flock'

 DB2 open(FOO, /tmp/gh) or die darn

 DB3 flock(FOO, LOCK_EX) || die SHIE: $!

 DB4 close FOO

 DB5 open(FOO, gh) or die darn

 DB6 flock(FOO, LOCK_EX) || die SHIE: $!
SHIE: Function not implemented at (eval
10)[/usr/lib/perl5/5.10.0/perl5db.pl:638] line 2.

 DB7
--

Thanks in advance for your assistance.

Regards,
-J
___
Lustre-discuss mailing list
Lustre-discuss@lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-discuss


Re: [Lustre-discuss] Problem with flock and perl on Lustre FS

2010-03-05 Thread Andreas Dilger
On 2010-03-05, at 14:49, Jagga Soorma wrote:
 How does lustre handle locking?  One of our users is complaining  
 that a perl module (Sotrable) has trouble with its lock_nstore  
 method when it tries to use flock.  The following is a hwo they are  
 reporducing this issue:

  DB6 flock(FOO, LOCK_EX) || die SHIE: $!
 SHIE: Function not implemented at (eval
 10)[/usr/lib/perl5/5.10.0/perl5db.pl:638] line 2.

Search the list or manual for -o flock, -o localflock, and -o  
noflock mount options for the client(s).

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

___
Lustre-discuss mailing list
Lustre-discuss@lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-discuss