From owner-freebsd-questions Mon Sep 22 10:52:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA04137 for questions-outgoing; Mon, 22 Sep 1997 10:52:12 -0700 (PDT) Received: from konig.elte.hu (konig.elte.hu [157.181.6.22]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA04102 for ; Mon, 22 Sep 1997 10:51:57 -0700 (PDT) Received: from neumann.cs.elte.hu (neumann [157.181.6.200]) by konig.elte.hu (8.8.3/8.7.3/7s) with ESMTP id TAA16624 for ; Mon, 22 Sep 1997 19:51:22 +0200 Received: from localhost (sebesty@localhost) by neumann.cs.elte.hu (8.8.3/8.7.3/4c) with SMTP id TAA09444 for ; Mon, 22 Sep 1997 19:51:37 +0200 X-Authentication-Warning: neumann.cs.elte.hu: sebesty owned process doing -bs Date: Mon, 22 Sep 1997 19:51:37 +0200 (MET DST) From: Zoltan Sebestyen To: FreeBSD questions mailinglist Subject: CDROM locking Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I've compiled hfs_utils on my FreeBSD. It's an mtools-like package which enables to read/write Macintosh's HFS filesystem. When tried it on my CDROM it said that it can't lock the device. After disabling the lock function it worked well. I wonder if it's a problem related to FreeBSD or just the program did something wrong. (It's originally for Linux and the line acquiring the lock is: if( fcntl(vol->fd, F_SETLK, &lock) < 0) .. ) Thanks, -------------------------------------------------------------------------------- Sebestyen Zoltan It all seems so stupid, it makes me want to give up. szoli@caesar.elte.hu But why should I give up, when it all seems so stupid?