Date: Wed, 26 Aug 2009 00:20:57 -0400 From: "Mikhail T." <mi+thun@aldan.algebra.com> To: freebsd-fs@freebsd.org Subject: semantics of fcntl() with l_len being 0 Message-ID: <4A94B829.3090202@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
Hello! I'm curious, whether a file, that's locked (via fcntl) with l_start and l_len being 0 is supposed to be appendable... I would think so, but I notice, that when spamprobe (see mail/spamprobe) chews on my spam mailbox, I can not append a new piece of spam to the file -- my imap-server is waiting for spamprobe to finish. The fcntl(2) says: ``len = 0 means until end of file''. Is that ``until the end of file AT THE TIME OF LOCKING'' or simply ``no other lock until we are done''? Thanks. Yours, -mi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A94B829.3090202>