From 22ea12d87f106cb46be4cbd812a6a883d4356a6c Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Mon, 25 Mar 2002 23:36:07 +0000
Subject: [PATCH] sync with rpm4 branch

---
 lib/transaction.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/transaction.c b/lib/transaction.c
index 37fdbac..64fd8fc 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -39,6 +39,9 @@ extern const char * chroot_prefix;
 
 #include "debug.h"
 
+#define	MNT_DEV_PREFIX	"/mnt/"
+#define	MNT_DEV_PREFIX_LENGTH	(sizeof(MNT_DEV_PREFIX)-1)
+
 /*@access FD_t@*/		/* XXX compared with NULL */
 /*@access Header@*/		/* XXX compared with NULL */
 /*@access dbiIndexSet@*/
@@ -1572,7 +1575,8 @@ int rpmRunTransactions(	rpmTransactionSet ts,
 	ts->di = _free(ts->di);
 	dip = ts->di = xcalloc(sizeof(*ts->di), ts->filesystemCount + 1);
 
-	for (i = 0; (i < ts->filesystemCount) && dip; i++) {
+	for (i = 0; (i < ts->filesystemCount) && dip; i++)
+	if (strncmp(ts->filesystems[i], MNT_DEV_PREFIX, MNT_DEV_PREFIX_LENGTH)) {
 #if STATFS_IN_SYS_STATVFS
 	    struct statvfs sfb;
 	    memset(&sfb, 0, sizeof(sfb));