From owner-freebsd-fs Wed Mar 20 20:23:57 2002 Delivered-To: freebsd-fs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id C4F8837B404 for ; Wed, 20 Mar 2002 20:23:50 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 3A1A75346; Thu, 21 Mar 2002 05:23:45 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Quincey Koziol Cc: freebsd-fs@freebsd.org Subject: Re: Filesystem books? References: <200203210325.g2L3P9P90443@sleipnir.ncsa.uiuc.edu> From: Dag-Erling Smorgrav Date: 21 Mar 2002 05:23:44 +0100 In-Reply-To: <200203210325.g2L3P9P90443@sleipnir.ncsa.uiuc.edu> Message-ID: Lines: 36 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Quincey Koziol writes: > Hmm, what set of the POSIX filesyetem semantics are you talking about? The ususal file and directory manipulation functions - open(2), read(2), mkdir(2), stat(2) etc. Think "directory" instead of "group", and "file" instead of "object". > Where is the best place to start looking into EA API stuff for FreeBSD? des@des ~% man -k extattr VOP_GETEXTATTR(9) - retrieve named extended attribute from a vnode VOP_SETEXTATTR(9) - set named extended attribute for a vnode extattr(9) - virtual file system named extended attributes extattr_get_fd(2), extattr_set_fd(2), extattr_delete_fd(2), extattr_get_file(2), extattr_set_file(2), extattr_delete_file(2) - system calls to manipulate VFS extended attributes extattr_namespace_to_string(3), extattr_string_to_namespace(3) - convert an extended attribute namespace identifier to a string and vice versa extattrctl(8) - manage FFS extended attributes getextattr(8) - retrieve a named extended attribute setextattr(8) - set a named extended attribute This is on -CURRENT, mind you. -STABLE has some of it, but not all. The other BSDs support the same API, while Linux is gratuitously different. OS/2 has had extended attributes practically forever, and Windows NT and 2000 have similar facilities under a different name that I don't recall at the moment. On systems that don't support extended attributes natively (Solaris, for instance), you can store your metadata in a Berkely DB file. > > That being said, HDF makes a neat interchange format, once you get rid > > of the silly limitations on object size & count. > Hmm, which limitations are you talking about? Those in HDF4 - I am aware that HDF5 eliminates most of them. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message