🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #970

record locking with fcntl on NFS

#970
From: Terry McCoy
Date: Wed, 03 Oct 1990 14:59
21 lines
1447 bytes
I have written a function that uses fcntl to lock a segment of a file.  The
function works when the file is located on the local filesystem.  But when
I attemp to use this function to perform locking on a file that is located
on a NFS mounted filesystem the program will crash with a panic within the
kernel "Memory address alignment".  I did use the F_RSETLK command when trying
to lock the file on the NFS filesystem as opposed to F_SETLK on the file that
was on a local filesystem.  Any ideas why the lock on the NFS filesystem will
cause the panic and the lock on the local filesystem does not.


Terry McCoy
National Lightning Detection Network
Research Foundation  -  State University of New York at Albany
------------------------------------------------------------------------------
internet:    tmm33@leah.albany.edu
Phone:       (518) 442-4588
Snail Mail:  Terry McCoy ES-235
             SUNY Albany
             1400 Washington Ave.
             Albany, NY 12222
Technical Details
Message-ID: <3690@leah.Albany.Edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!leah!tmm33

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!leah!tmm33
From: tmm33@leah.Albany.Edu (Terry McCoy)
Newsgroups: comp.unix.programmer
Subject: record locking with fcntl on NFS
Keywords: record locking, fcntl, NFS
Message-ID: <3690@leah.Albany.Edu>
Date: 3 Oct 90 14:59:24 GMT
Reply-To: tmm33@leah.albany.edu.UUCP (Terry McCoy)
Distribution: usa
Organization: State U. of New York at Albany Computing Svces.
Lines: 21