ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: devel@altlinux.ru
Subject: Fwd: [Fwd: Re: [Fwd: Fwd: [devel] BUG: uw-imap locking does not work on reiserfs]]
Date: Tue, 15 Oct 2002 09:02:25 +0300
Message-ID: <20021015060225.GH9328@osdn.org.ua> (raw)

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

----- Forwarded message from Yury Umanets <umka@namesys.com> -----

Date: Mon, 14 Oct 2002 23:44:08 +0400
From: Yury Umanets <umka@namesys.com>
To: mike@osdn.org.ua
Subject: [Fwd: Re: [Fwd: Fwd: [devel] BUG: uw-imap locking does not work on reiserfs]]



-------- Original Message --------
Subject: Re: [Fwd: Fwd: [devel] BUG: uw-imap locking does not work on reiserfs]
Date: Mon, 14 Oct 2002 23:01:40 +0400
From: Oleg Drokin <green@namesys.com>
To: Yury Umanets <umka@namesys.com>
CC: reiserfs-dev@namesys.com



Hello!

  it just means that wu-imap is broken (no wonders about that.)
  I will submit patch for SuSE and RedHat tomorrow, I guess.

Bye,
   Oleg
On Mon, Oct 14, 2002 at 06:26:15PM +0400, Yury Umanets wrote:
>
>
>-------- Original Message --------
>Subject: Fwd: [devel] BUG: uw-imap locking does not work on reiserfs
>Date: Mon, 14 Oct 2002 17:23:08 +0300
>From: Michael Shigorin <mike@osdn.org.ua>
>To: Yury Umanets <umka@namesys.com>
>
>
>
>----- Forwarded message from Sergey Vlasov <vsu@altlinux.ru> -----
>
>Date: Sat, 12 Oct 2002 18:23:23 +0400
>From: Sergey Vlasov <vsu@altlinux.ru>
>To: ALT Discussion List <community@altlinux.ru>,
>  Sisyphus ML <sisyphus@altlinux.ru>
>Subject: [devel] BUG: uw-imap locking does not work on reiserfs
>Cc: ALT Developers List <devel@altlinux.ru>
>
>Внимание, грабли!
>
>В uw-imap (по крайней мере, в версии uw-imap-2001a-alt6) не работает
>блокировка почтовых ящиков, если они находятся на файловой системе
>reiserfs (проверено с ядром 2.4.18-up-alt8). На ext2, ext3 блокировка
>работает. На других файловых системах тоже могут быть проблемы - не
>проверял.
>
>Ошибка может приводить к порче почтовых ящиков и потере сообщений.
>
>Причина, похоже, в следующем куске кода (src/osdep/unix/nfstnew.c):
>
>/* Test for NFS
>* Accepts: file descriptor
>* Returns: T if NFS file, NIL otherwise
>*/
>
>long test_nfs (int fd)
>{
> struct stat sbuf;
> struct ustat usbuf;
> struct statvfs vsbuf;
> /* Any base type that begins with "nfs" or "afs" is considered to be a
>  * network filesystem.
>  */
> return ((!fstat (fd,&sbuf) && !ustat (sbuf.st_dev,&usbuf) &&
>	   !++usbuf.f_tinode) ||
>	  (!fstatvfs (fd,&vsbuf) && (vsbuf.f_basetype[1] == 'f') &&
>	   (vsbuf.f_basetype[2] == 's') &&
>	   ((vsbuf.f_basetype[0] == 'n') || (vsbuf.f_basetype[0] == 'a')))) ?
>	     LONGT : NIL;
>}
>
>На reiserfs функция ustat возвращает f_tinode == -1, в результате чего
>uw-imap считает, что работает с NFS, и прекращает использовать
>блокировки через fcntl (остается только dotlock, но этот метод не
>работает с системными ящиками в /var/spool/mail).
>
>-- 
>Sergey Vlasov
>_______________________________________________
>Devel mailing list
>Devel@altlinux.ru
>http://altlinux.ru/mailman/listinfo/devel
>
>----- End forwarded message -----
>
>-- 
>---- WBR, Michael Shigorin <mike@altlinux.ru>
> ------ Linux.Kiev http://www.linux.kiev.ua/
>
>
>
>-- 
>Yury Umanets
>






-- 
Yury Umanets


----- End forwarded message -----

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

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

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

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20021015060225.GH9328@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --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