From owner-freebsd-afs Sun Feb 22 13:59:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22705 for freebsd-afs-outgoing; Sun, 22 Feb 1998 13:59:14 -0800 (PST) (envelope-from owner-freebsd-afs@FreeBSD.ORG) Received: from freebase.camb.opengroup.org (freebase.camb.opengroup.org [130.105.3.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22694; Sun, 22 Feb 1998 13:59:08 -0800 (PST) (envelope-from loverso@opengroup.org) Received: from opengroup.org (localhost.camb.opengroup.org [127.0.0.1]) by freebase.camb.opengroup.org (8.8.8/8.8.7) with ESMTP id QAA10655; Sun, 22 Feb 1998 16:58:32 -0500 (EST) Message-Id: <199802222158.QAA10655@freebase.camb.opengroup.org> To: afs@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: NFS-to-AFS translater and 2.2.5 "mv" X-Face: "UZ!}1W2N?eJdN(`1%|/OOPqJ).Idk?UyvWw'W-%`Gto8^IkEm>.g1O$[.;~}8E=Ire0|lO .o>:NlJS1@vO9bVmswRoq3j DdX9YGSeJ5a(mfX[1u>Z63G5_^+'8LVqjqvn X-Url: http://www.osf.org/~loverso/ Date: Sun, 22 Feb 1998 16:58:32 -0500 From: John Robert LoVerso Sender: owner-freebsd-afs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I still run my FreeBSD machines against the AFS/NFS translator and have come up across a problem with FreeBSD's latest version of "mv". I'd love to make this whole problem go away by using AFS directory and no longer needing the translator, but... The translator, in adapting AFS ACLs, does some wierd things. One of them is that if you "chmod 0" a file, you lose all access to it via the translator. I don't defend this behavior, but that is what I'm stuck with. This has been no problem until I installed 2.2-STABLE, dating past 2.2.5. In an NFS mounted AFS directory, I would do: freebase:~ 67 j$ ls -l d ls: d: No such file or directory freebase:~ 66 j$ mv /tmp/d . mv: ./d: Permission denied freebase:~ 67 j$ ls -l d ls: d: Permission denied On a machine with AFS, the same file would be listed as: mule:~ 64 j$ l d ---------- 1 loverso osf 0 Feb 21 17:15 d Seeing that, I peeked at the CVS tree for mv and found: RELENG_2_2_5_RELEASE: 1.8.2.1 RELENG_2_2_2_RELEASE: 1.8 ---------------------------- revision 1.8 date: 1996/03/01 06:14:13; author: wosch; state: Exp; lines: +0 -0 branches: 1.8.2; delete unused label endarg correct indent of last new code fix usage string, option -f before option -i (alphabetic order) ---------------------------- revision 1.8.2.1 date: 1997/08/25 08:33:11; author: jkh; state: Exp; lines: +31 -13 MFC: cosmetic tweaks + error reporting mods. Sometime between 2.2.2 and 2.2.5, "mv" was changed. The crux of the change is in fastcopy(), when "mv" is copying regular files between different filesystems: < if ((to_fd = < open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) { ----- > while ((to_fd = > open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) { That is, the new file is now created with mode 0, and afterwards, it is fchmod()'d to the correct value. I can only imagine that this change was made to close a possible race condition in when moving files. Note, however, that starting the new file with a mode of 0 only happens when "mv" is in the midst of copying a file. "cp", at least as of 2.2-980219, does NOT do this. So, if it isn't needed for "cp", why is it needed for "mv" when copying a file? (One possible answer is that a similar change for "cp" exists in the "current" branch and it hasn't been pushed to "stable"; I did not check). So, can anyone: - tell me they've got a working AFS client side - tell me why "mv" has been thus changed Meanwhile, I've backed out the change in "mv" so that I can continue using my machines on a daily basis. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-afs" in the body of the message From owner-freebsd-afs Sun Feb 22 15:13:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA03705 for freebsd-afs-outgoing; Sun, 22 Feb 1998 15:13:33 -0800 (PST) (envelope-from owner-freebsd-afs@FreeBSD.ORG) Received: from phoenix.its.rpi.edu (dec@phoenix.its.rpi.edu [128.113.161.45]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA03674 for ; Sun, 22 Feb 1998 15:13:30 -0800 (PST) (envelope-from dec@phoenix.its.rpi.edu) Received: from localhost (dec@localhost) by phoenix.its.rpi.edu (8.8.8/8.8.7) with SMTP id SAA08040 for ; Sun, 22 Feb 1998 18:13:17 -0500 (EST) (envelope-from dec@phoenix.its.rpi.edu) Date: Sun, 22 Feb 1998 18:13:17 -0500 (EST) From: "David E. Cross" To: freebsd-afs@FreeBSD.ORG Subject: Re: NFS-to-AFS translater and 2.2.5 "mv" In-Reply-To: <199802222158.QAA10655@freebase.camb.opengroup.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-afs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 22 Feb 1998, John Robert LoVerso wrote: > > - tell me they've got a working AFS client side > - tell me why "mv" has been thus changed AFS client side is coming along OK.... (I still don't have a clean compile, but I hope to have an alpha in the next 2 weeks, I have been very busy lately, but those of us with AFS source access have gotten a copy of the 2.1.5-RELEASE code, and are bringing it up to date with the 2.2.5-STABLE, and 3.0-CURRENT branches (I am working on -STABLE, I can't say anything about -current....). My plan is then to use this knowledge to get 3.4a-p6 working on -stable and -current. -- David Cross To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-afs" in the body of the message From owner-freebsd-afs Mon Feb 23 02:17:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA21298 for freebsd-afs-outgoing; Mon, 23 Feb 1998 02:17:10 -0800 (PST) (envelope-from owner-freebsd-afs@FreeBSD.ORG) Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA21285 for ; Mon, 23 Feb 1998 02:17:00 -0800 (PST) (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE) Received: (from kuku@localhost) by gilberto.physik.RWTH-Aachen.DE (8.8.7/8.8.7) id KAA13796 for afs@freebsd.org; Mon, 23 Feb 1998 10:21:15 GMT (envelope-from kuku) Date: Mon, 23 Feb 1998 10:21:15 GMT From: Christoph Kukulies Message-Id: <199802231021.KAA13796@gilberto.physik.RWTH-Aachen.DE> To: afs@FreeBSD.ORG Subject: AFS - current, where can be obtained? Sender: owner-freebsd-afs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Excuse the FAQ but IŽd like to experiment with an AFS implementation under FreeBSD. Where can I get it? -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-afs" in the body of the message