ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] BUG: uw-imap locking does not work on reiserfs
  @ 2002-10-15 15:10 ` Ivan Zakharyaschev
  2002-10-15 16:15   ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Zakharyaschev @ 2002-10-15 15:10 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 972 bytes --]

	Hello!

On Tue, 15 Oct 2002, Dmitry V. Levin wrote:

> On Tue, Oct 15, 2002 at 01:05:26AM +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
ALT, на ext2
ALT, на reiserfs

-- 
С наилучшими пожеланиями,
Иван Захарьящев, Москва

[-- Attachment #2: deb, ext2 --]
[-- Type: APPLICATION/x-troff, Size: 5680 bytes --]

[-- Attachment #3: alt, ext2 --]
[-- Type: APPLICATION/x-troff, Size: 4955 bytes --]

[-- Attachment #4: alt, reiser --]
[-- Type: APPLICATION/x-troff, Size: 6195 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] BUG: uw-imap locking does not work on reiserfs
  2002-10-15 15:10 ` [devel] BUG: uw-imap locking does not work on reiserfs Ivan Zakharyaschev
@ 2002-10-15 16:15   ` Dmitry V. Levin
  2002-10-15 17:20     ` Ivan Zakharyaschev
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2002-10-15 16:15 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] BUG: uw-imap locking does not work on reiserfs
  2002-10-15 16:15   ` Dmitry V. Levin
@ 2002-10-15 17:20     ` Ivan Zakharyaschev
  0 siblings, 0 replies; 3+ messages in thread
From: Ivan Zakharyaschev @ 2002-10-15 17:20 UTC (permalink / raw)
  To: ALT Devel discussion list

	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.

-- 
С наилучшими пожеланиями,
Иван Захарьящев, Москва



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-15 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-15 15:10 ` [devel] BUG: uw-imap locking does not work on reiserfs Ivan Zakharyaschev
2002-10-15 16:15   ` Dmitry V. Levin
2002-10-15 17:20     ` Ivan Zakharyaschev

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