ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.ru>
To: ALT Discussion List <community@altlinux.ru>,
	Sisyphus ML <sisyphus@altlinux.ru>
Cc: ALT Developers List <devel@altlinux.ru>
Subject: Re: [devel] BUG: uw-imap locking does not work on reiserfs
Date: Wed, 16 Oct 2002 00:21:40 +0400 (MSD)
Message-ID: <Pine.LNX.4.44L.0210152357290.2023-100000@arrakis.zephyrous> (raw)
In-Reply-To: <20021012182323.5f35d14e.vsu@altlinux.ru>

	Hello!

On Sat, 12 Oct 2002, Sergey Vlasov wrote:

Спасибо за сообщение.

> В uw-imap (по крайней мере, в версии uw-imap-2001a-alt6) не работает
> блокировка почтовых ящиков, если они находятся на файловой системе
> reiserfs (проверено с ядром 2.4.18-up-alt8). На ext2, ext3 блокировка
> работает. На других файловых системах тоже могут быть проблемы - не
> проверял.

Проверено c 2.4.19-alt0.2-up: на xfs, jfs, как уже упомяналось, ext2,
ext3, и даже vfat проблем с блокировками не замечено. На reiserfs-3.6 и
3.5 блокировка не работает. (Использование jfs оставило неблагоприятное
впечатление.)

> Ошибка может приводить к порче почтовых ящиков и потере сообщений.
>
> Причина, похоже, в следующем куске кода (src/osdep/unix/nfstnew.c):


Скоро будут выпущены пакеты с исправлениями. Ошибка проявляется при
использовании imapd, ipop{2,3}d, pine.


Ещё немного сравнительной информации, чтобы не вводить никого в
заблуждение по поводу актуальности этой ошибки для других дистрибутивов:


В RH и Mdk свой эмулятор flock(2) на основе fcntl(2), который в отличие
от ALT и оригинального (того, что идёт в составе UW imap) не занимается
этой непродуманной проверкой на NFS.

В Debian (и, судя по всему, SuSE) используется flock(2) (+
привилегированный dot-locker) -- там такой проверки просто нет, потому
что известно, что flock(2) и так не работает по NFS. (Причём такое
поведение, скорее всего, идёт вразрез с определённой Debian'овской
policy.)

(Здесь говорится о трёх возможных способах установки блокировок на
файлы-почтовые ящики: flock(2), fcntl(2)/lockf(3) и dot-locking.)

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




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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-12 14:23 Sergey Vlasov
2002-10-15 20:21 ` Ivan Zakharyaschev [this message]
2002-10-18 21:24 ` fixed: " Ivan Zakharyaschev
2002-10-19 16:17   ` 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=Pine.LNX.4.44L.0210152357290.2023-100000@arrakis.zephyrous \
    --to=imz@altlinux.ru \
    --cc=community@altlinux.ru \
    --cc=devel@altlinux.ru \
    --cc=sisyphus@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