From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 14 09:40:11 2011 Return-Path: <owner-freebsd-bugs@FreeBSD.ORG> Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFB08106566C for <freebsd-bugs@hub.freebsd.org>; Fri, 14 Jan 2011 09:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A383C8FC14 for <freebsd-bugs@hub.freebsd.org>; Fri, 14 Jan 2011 09:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0E9eBd8035491 for <freebsd-bugs@freefall.freebsd.org>; Fri, 14 Jan 2011 09:40:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0E9eBE9035490; Fri, 14 Jan 2011 09:40:11 GMT (envelope-from gnats) Date: Fri, 14 Jan 2011 09:40:11 GMT Message-Id: <201101140940.p0E9eBE9035490@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org> Cc: Subject: Re: bin/153142: [zfs] ls -l outputs `ls: ./.zfs: Operation not supported' X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org> List-Id: Bug reports <freebsd-bugs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>, <mailto:freebsd-bugs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bugs> List-Post: <mailto:freebsd-bugs@freebsd.org> List-Help: <mailto:freebsd-bugs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>, <mailto:freebsd-bugs-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 14 Jan 2011 09:40:11 -0000 The following reply was made to PR bin/153142; it has been noted by GNATS. From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org> To: Jaakko Heinonen <jh@FreeBSD.org> Cc: Hiroshi Fujishima <hirobo@tonteki.org>, Bruce Cran <bruce@cran.org.uk>, bug-followup@FreeBSD.org Subject: Re: bin/153142: [zfs] ls -l outputs `ls: ./.zfs: Operation not supported' Date: Fri, 14 Jan 2011 10:07:02 +0100 Wiadomo=B6=E6 napisana przez Jaakko Heinonen w dniu 2011-01-14, o godz. = 10:00: > On 2010-12-14, Hiroshi Fujishima wrote: >>> Description: >> 1. filesystem is zfs >> 2. snapdir property is visible >> 3. top directory of file system has .a file. >>=20 >> with above condition, ls -l outputs `ls: ./.zfs: Operation not = supported' >>=20 >>> How-To-Repeat: >> backup8y# zfs create -o mountpoint=3D/test -o snapdir=3Dvisible = tank/test >> backup8y# ls -l /test >> total 0 >> dr-xr-xr-x 3 root wheel 3 Dec 14 15:46 .zfs >> backup8y# touch /test/.a >> backup8y# ls -l /test >> total 1 >> -rw-r--r-- 1 root wheel 0 Dec 14 15:46 .a >> ls: /test/.zfs: Operation not supported >> dr-xr-xr-x 3 root wheel 3 Dec 14 15:46 .zfs >=20 > ls(1) detects from the first file in the listing if the file system > supports ACLs and assumes that all files on the same file system = support > ACLs. The ".zfs" directory is special and doesn't support ACLs. Thus > ls(1) prints an error message for acl_get_link_np(3) failure. >=20 > Also, if the ".zfs" directory is the first entry of a listing, ls(1) > assumes that files on the same file system don't have ACLs and doesn't > print '+' after mode. I guess the easiest way to fix this would be to add "dummy" ACL support for ".zfs" directory - that is, to zfsctl_ops_root[], if I'm reading = this correctly. -- If you cut off my head, what would I say? Me and my head, or me and my = body?