Date: Thu, 4 May 2000 20:20:03 +0400 (MSD) From: "Andrew L. Neporada" <andrew@chg.ru> To: questions@freebsd.org Subject: Strange behaviour of mtree(8)? Message-ID: <Pine.BSF.4.21.0005041948480.41233-100000@sign.chg.ru>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005041948480.41233-100000>