From owner-freebsd-hackers Tue May 23 12:40:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.wrs.com (unknown-1-11.wrs.com [147.11.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 2C36E37B567 for ; Tue, 23 May 2000 12:40:14 -0700 (PDT) (envelope-from davidhol@windriver.com) Received: from papermill.wrs.com (papermill [147.11.48.34]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id MAA01144; Tue, 23 May 2000 12:39:45 -0700 (PDT) Received: from papermill (localhost [127.0.0.1]) by papermill.wrs.com (8.9.1/8.9.0) with ESMTP id MAA10982; Tue, 23 May 2000 12:40:11 -0700 (PDT) Message-Id: <200005231940.MAA10982@papermill.wrs.com> To: Don Lewis Cc: Shadi Fazelian , hackers@FreeBSD.ORG From: David Holloway Subject: Re: please hellllllllllllp me! In-reply-to: Your message of "Tue, 23 May 2000 04:08:50 PDT." <200005231108.EAA13140@salsa.gv.tsc.tdk.com> Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Date: Tue, 23 May 2000 12:40:10 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Answer straight from the manual: Actually, the .snapshot directory in the mount point is "real" to make the pwd command work, whereas the .snapshot directories in all other directories are "magic"; that is, can be accessed when they are referenced by name but do not show up in a directory listing. . . . If .snapshot were to show up in every directory, it would cause many commands to work improperly. For instance, all recursive commands for removing files would fail because everything below .snapshot is read-only. Recursive copies would copy everything in the snapshots as well as files in the active file system, and a find command would generate a list much longer than expected. In message <200005231108.EAA13140@salsa.gv.tsc.tdk.com>, Don Lewis writes: >On May 22, 3:33pm, Alfred Perlstein wrote: >} Subject: Re: please hellllllllllllp me! >} * David Scheidt [000522 14:30] wrote: > >} > dscheidt@shell-2 ~ 536$ ls -al | grep .snapshot >} > dscheidt@shell-2 ~ 537$ ls -al .snapshot >} > total 60 >} > drwxrwxrwx 2 root wheel 4096 May 22 15:01 . >} > drwxr-xr-x 15 dscheidt dialin 8192 May 22 15:51 .. >} > drwxr-xr-x 15 dscheidt dialin 8192 May 22 14:58 hourly.0 >} > drwxr-xr-x 15 dscheidt dialin 8192 May 22 13:52 hourly.1 >} > drwxr-xr-x 15 dscheidt dialin 8192 May 22 13:00 hourly.2 >} > drwxr-xr-x 15 dscheidt dialin 8192 May 22 10:52 hourly.3 >} > drwxr-xr-x 15 dscheidt dialin 8192 May 19 16:34 nightly.0 >} > drwxr-xr-x 15 dscheidt dialin 8192 May 19 16:34 nightly.1 >} > dscheidt@shell-2 ~ 538$ >} > >} > doesn't count then? This is a directory NFS-mounted from a NetApp. The >} > .snapshot directory is a lifesaver, and support cost cutter. >} >} If the netapp doesn't honor readdir requests properly then it's >} breaking unix semantics. >} >} Netapp is broken, there's no reason to intentionally hide this >} directory from readdir. > >It would be really annoying to have to exclude all of these every >time you wanted to roll a tarball of a directory tree. Also, a lot >of the time you probably won't want find or other recursive things >to wander into these directories. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message