ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] BUG: uw-imap locking does not work on reiserfs
Date: Tue, 15 Oct 2002 20:15:27 +0400
Message-ID: <20021015161527.GB5439@basalt.office.altlinux.ru> (raw)
In-Reply-To: <Pine.LNX.4.44L.0210151728120.2052-103000@arrakis.zephyrous>

[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]

On Tue, Oct 15, 2002 at 07:10:09PM +0400, Ivan Zakharyaschev wrote:
> > > Может быть, это интересно:
> > >
> > > посмотрев на пакеты в других дистрибутивах, я понял, что этой
> > ошибки у
> > > них нет :-( (или всё-таки :-) ).
> > >
> > > В RH и Mdk свой эмулятор flock, который в отличие от нашего и
> > > оригинального (того, что идёт в составе UW imap) не занимается этой
> > > дурацкой проверкой на NFS.
> > >
> > > В Debian и SuSE используется flock -- там такая проверка просто не
> > > нужна, потому что известно, что flock не работает по NFS.
> >
> > Если в Debian используется только flock - то это нарушение какой-то
> > Debian'овской policy, так что проверьте.
> 
> + привилегированный dot-locker
> 
> Вот вывод strace -fF -e trace=flock,fcntl,fcntl64,open,dup2
> /usr/sbin/ipop3d при просмотре INBOX для трёх случаев (смотреть надо в
> конец):
> 
> Debian, на ext2

Ваня, у тебя достаточно свежий Debian?
http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s-mail-transport-agents :

All Debian MUAs, MTAs, MDAs and other mailbox accessing programs (such as
IMAP daemons) must lock the mailbox in an NFS-safe way. This means that
fcntl() locking must be combined with dot locking. To avoid deadlocks, a
program should use fcntl() first and dot locking after this, or
alternatively implement the two locking methods in a non blocking way.
Using the functions maillock and mailunlock provided by the
liblockfile* packages is the recommended way to realize this. 


--
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-10-15 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15 15:10 ` Ivan Zakharyaschev
2002-10-15 16:15   ` Dmitry V. Levin [this message]
2002-10-15 17:20     ` Ivan Zakharyaschev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021015161527.GB5439@basalt.office.altlinux.ru \
    --to=ldv@altlinux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git