From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 15 Oct 2002 21:20:34 +0400 (MSD) From: Ivan Zakharyaschev X-X-Sender: ivan@arrakis.zephyrous To: ALT Devel discussion list Subject: Re: [devel] BUG: uw-imap locking does not work on reiserfs In-Reply-To: <20021015161527.GB5439@basalt.office.altlinux.ru> Message-ID: X-Mailer: try to guess MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: Hello! On Tue, 15 Oct 2002, Dmitry V. Levin wrote: > > > Если в Debian используется только flock - то это нарушение > какой-то > > > Debian'овской policy, так что проверьте. > > > > + привилегированный dot-locker > > > > Вот вывод strace -fF -e trace=flock,fcntl,fcntl64,open,dup2 > > /usr/sbin/ipop3d при просмотре INBOX для трёх случаев (смотреть > надо в > > конец): > > > > Debian, на ext2 > > Ваня, у тебя достаточно свежий Debian? Это тот, что на shamrock. Пакеты с UW imap последние: 4:2001adebian-6. > 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. -- С наилучшими пожеланиями, Иван Захарьящев, Москва