[BraLUG] File auf NFS Freigabe sperren

Markus Dahms dahms at fh-brandenburg.de
Mo Okt 16 16:12:50 CEST 2006


Hallo Tobias,

> Na das ist ja spannend. Eigentlich sollte flock() bei NFS nicht
> gehen, wohl aber lockf() und fcntl() -- bei mir ist das auch so.

stimmt, wenn man die Manpage bis zum Ende liest, da steht sowas...

> Sind in Eurer libc zufaellig sowohl flock() als auch lockf()
> wrapper fuer fcntl()?

keine Ahnung, ich baue das nochmal auf fcntl um... Zur Info ueber die
libc die Ausgabe eines meiner Lieblingsbefehle:

| mad at hrungnir:~$ /lib/libc.so.6
| GNU C Library stable release version 2.3.6, by Roland McGrath et al.
| Copyright (C) 2005 Free Software Foundation, Inc.
| This is free software; see the source for copying conditions.
| There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
| PARTICULAR PURPOSE.
| Compiled by GNU CC version 4.1.2 20060814 (prerelease) (Debian 4.1.1-11).
| Compiled on a Linux 2.6.17.7 system on 2006-08-24.
| Available extensions:
|         GNU libio by Per Bothner
|         crypt add-on version 2.1 by Michael Glad and others
|         GNU Libidn by Simon Josefsson
|         linuxthreads-0.10 by Xavier Leroy
|         BIND-8.2.3-T5B
|         libthread_db work sponsored by Alpha Processor Inc
|         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
| Thread-local storage support included.
| For bug reporting instructions, please see:
| <http://www.gnu.org/software/libc/bugs.html>.

Markus

-- 
Computers are like airconditioners:
they stop working properly if you open Windows



Mehr Informationen über die Mailingliste Bralug