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

Jagga Soorma jagga13 at gmail.com
Fri Mar 5 13:49:20 PST 2010


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.
 DB<1> use Fcntl ':flock'

 DB<2> open(FOO, ">>/tmp/gh") or die "darn"

 DB<3> flock(FOO, LOCK_EX) || die "SHIE: $!"

 DB<4> close FOO

 DB<5> open(FOO, ">>gh") or die "darn"

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

 DB<7>
--

Thanks in advance for your assistance.

Regards,
-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100305/ca09f3a4/attachment.htm>


More information about the lustre-discuss mailing list