Path: utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!rice!rice!sun-spots-request From: tmm33@leah.albany.edu (Terry McCoy) Newsgroups: comp.sys.sun Subject: record locking with fcntl Keywords: Miscellaneous Message-ID: <1990Oct7.231002.3441@rice.edu> Date: 7 Oct 90 21:30:00 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu Originator: spots@walhalla.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 338, message 16 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 internet: tmm33@leah.albany.edu