ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Kurakin <kurakin@quittance.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] netatalk+sisyphus
Date: Tue, 27 Mar 2007 02:01:16 +0400
Message-ID: <200703270201.16695.kurakin@quittance.ru> (raw)
In-Reply-To: <20070324200811.GA2858@osdn.org.ua>

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

Здравствуйте.

> > > > Патч для сборки с libdb4.4 я сделал в свое время
> > > > "методом тыка". Если будет возможность, посмотрите
> > > > пожалуйста, не таит ли он в себе какой-нибудь
> > > > опасности.

> > Интересно, я угадал?

  Не угадал... Совсем не угадал...

> Это лучше ldv@ спросить.

  Лучше, если он вообще этого не увидит ;)
  Правильный патч приложен.

  Информация отсюда:
/usr/share/doc/db-4.3.29/ref/upgrade.4.3/stat.html 
(пакет libdb4.3-doc)

  И чего я тогда этого не нашел? Черным по белому, в одну 
строчку, именно эта ситуация: "Application writers can simply 
add a NULL txnid argument to the DB->stat method calls in their 
application to leave the application's behavior unchanged."

-- 
WBR,
Sergey Kurakin


[-- Attachment #2: netatalk-2.0.3-libdb4.3.patch --]
[-- Type: text/x-diff, Size: 1004 bytes --]

diff -Naur netatalk-2.0.3.orig/bin/cnid/cnid_index.c netatalk-2.0.3/bin/cnid/cnid_index.c
--- netatalk-2.0.3.orig/bin/cnid/cnid_index.c	2005-04-10 16:49:18 +0400
+++ netatalk-2.0.3/bin/cnid/cnid_index.c	2007-03-27 01:03:58 +0400
@@ -274,7 +274,7 @@
     DB_BTREE_STAT *sp;
     DB *db = db_table[dbi].db;
 
-    ret = db->stat(db, &sp, 0);
+    ret = db->stat(db, NULL, &sp, 0);
 
     if (ret) {
         LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
diff -Naur netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c netatalk-2.0.3/etc/cnid_dbd/dbif.c
--- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c	2004-12-21 16:36:12 +0300
+++ netatalk-2.0.3/etc/cnid_dbd/dbif.c	2007-03-27 01:04:33 +0400
@@ -514,7 +514,7 @@
     DB_BTREE_STAT *sp;
     DB *db = db_table[dbi].db;
 
-    ret = db->stat(db, &sp, 0);
+    ret = db->stat(db, NULL, &sp, 0);
 
     if (ret) {
         LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));

  parent reply	other threads:[~2007-03-26 22:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 13:32 Vladimir Istrati
2007-03-20 23:02 ` Sergey
2007-03-21 11:59   ` Vladimir Istrati
2007-03-22 21:36     ` Michael Shigorin
2007-03-21 10:24 ` Dmitry V. Levin
2007-03-21 10:39   ` Alexander Bokovoy
2007-03-21 11:26     ` Slava Grecea
2007-03-21 12:15     ` Vladimir Istrati
2007-03-21 14:00       ` Alexander Bokovoy
2007-03-21 12:08   ` Vladimir Istrati
2007-03-22 21:34 ` Michael Shigorin
2007-03-22 23:54   ` Sergey Kurakin
2007-03-23  9:28     ` Michael Shigorin
2007-03-23 16:52       ` Sergey Kurakin
2007-03-24 20:08         ` Michael Shigorin
2007-03-26 17:49           ` Michael Shigorin
2007-03-27 10:23             ` Sergey Kurakin
2007-03-27 12:56               ` Sergey Kurakin
2007-03-28 23:03                 ` Sergey Kurakin
2007-03-29 22:20                   ` Michael Shigorin
2007-03-30 19:27                     ` Sergey Kurakin
2007-03-26 22:01           ` Sergey Kurakin [this message]
2007-03-22 23:33 ` Sergey Kurakin
2007-03-23  9:38   ` [sisyphus] netatalk+sisyphus (Спасибо!) Vladimir Istrati

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=200703270201.16695.kurakin@quittance.ru \
    --to=kurakin@quittance.ru \
    --cc=sisyphus@lists.altlinux.org \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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