From owner-freebsd-questions Thu May 4 9:20:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sign.chg.ru (sign.chg.ru [193.233.46.10]) by hub.freebsd.org (Postfix) with ESMTP id 6DD4A37B579 for ; Thu, 4 May 2000 09:20:06 -0700 (PDT) (envelope-from andrew@chg.ru) Received: from localhost (andrew@localhost) by sign.chg.ru (8.9.3/8.9.3) with ESMTP id UAA41418 for ; Thu, 4 May 2000 20:20:03 +0400 (MSD) (envelope-from andrew@chg.ru) X-Authentication-Warning: sign.chg.ru: andrew owned process doing -bs Date: Thu, 4 May 2000 20:20:03 +0400 (MSD) From: "Andrew L. Neporada" To: questions@freebsd.org Subject: Strange behaviour of mtree(8)? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It always seems to me that `mtree -c | mtree` should output nothing (because it compares current directory with itself). But recently I noticed very interesting thing: andrew@sign> ls -la total 4 drwxr-xr-x 2 andrew wheel 512 4 May 19:48 . drwxr-xr-x 46 andrew wheel 2560 4 May 19:47 .. lrwxr-xr-x 1 andrew wheel 1 4 May 19:47 a -> . lrwxr-xr-x 1 andrew wheel 1 4 May 19:48 b -> . andrew@sign> mtree -c | mtree extra: b missing: ./a/b andrew@sign> mtree -c | mtree -U extra: b missing: ./a/b (directory not created: File exists) In another similar sitation: andrew@sign> ls -lR total 2 drwxr-xr-x 2 andrew wheel 512 4 May 20:02 1 drwxr-xr-x 2 andrew wheel 512 4 May 20:03 2 ./1: total 0 lrwxr-xr-x 1 andrew wheel 1 4 May 20:02 a -> . lrwxr-xr-x 1 andrew wheel 1 4 May 20:02 b -> . ./2: total 0 lrwxr-xr-x 1 andrew wheel 1 4 May 20:03 a -> . lrwxr-xr-x 1 andrew wheel 1 4 May 20:03 b -> . andrew@sign> mtree -c | mtree extra: 1/b extra: 2 missing: ./1/a/b missing: ./1/a/2 missing: ./1/a/2/a missing: ./1/a/2/a/b andrew@sign> mtree -c | mtree -U extra: 1/b extra: 2 missing: ./1/a/b (directory not created: File exists) missing: ./1/a/2 (created) missing: ./1/a/2/a (created) missing: ./1/a/2/a/b (created) andrew@sign> Guys! What happens? I'll greatly appreciate any input from you! P.S. My backup script runs into infinite loop due to this stuff ;-) -- Andrew. Terminator--The few, the proud, the machines. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message