From owner-freebsd-stable@FreeBSD.ORG Wed Nov 17 17:03:47 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94DB0106566B for ; Wed, 17 Nov 2010 17:03:47 +0000 (UTC) (envelope-from markus.gebert@hostpoint.ch) Received: from mail.adm.hostpoint.ch (mail.adm.hostpoint.ch [217.26.48.124]) by mx1.freebsd.org (Postfix) with ESMTP id 540328FC13 for ; Wed, 17 Nov 2010 17:03:47 +0000 (UTC) Received: from [77.109.131.203] (port=56534 helo=dynip67.office.hostpoint.internal) by mail.adm.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PIl26-000OiC-IV; Wed, 17 Nov 2010 17:38:54 +0100 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Markus Gebert In-Reply-To: <4CE3B320.70302@eng.auth.gr> Date: Wed, 17 Nov 2010 17:38:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4CE3B320.70302@eng.auth.gr> To: George Mamalakis X-Mailer: Apple Mail (2.1082) Cc: freebsd-stable Subject: Re: chflags on zfs (sappnd) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2010 17:03:47 -0000 On 17.11.2010, at 11:49, George Mamalakis wrote: > Hi everbody, >=20 > from http://wiki.freebsd.org/ZFS I understand that chflags are = supported by zfs. But if I have a file with sappnd on a zfs filesystem, = I am unable to execute a command like this: >=20 > # touch lili > # chflags sappnd lili > # ls -lrto lili > -rw-r--r-- 1 root wheel sappnd 5 Nov 17 12:38 lili > # echo "lala" >> lili > # echo "lala" >> lili > -su: echo: write error: Operation not permitted >=20 > So, the first time it worked, but it stops working on any consequent = time (when the file is no more empty). > I found a bug report on: >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D149495 And: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D151082&cat=3Dkern > where a patch is suggested. Nevertheless, even though my sources are = newer than the suggested patch, my source tree does not contain it. > Do we know anything more about it? The fix was committed to CURRENT on Oct 8th (r213634). The commit = message talks about MFC after a week, however to me it looks like the = fix hasn't made it to 8-STABLE yet. Also, there seems to be a related commit r213673 which essentially = reverts r213634 and has a more general approach to handling ioflags with = zfs. This commit was on Oct 10th, again 1 week MFC grace period, again = not in 8-STABLE yet, at least to my knowlegde. Maybe MFC was simply forgotten, maybe there's a good reason to delay it, = I don't know. We're using my patch (the one mentioned in the PRs) for = now and append-only works as intended. Applying the changes in r213673 = to 8-STABLE might be an option too, if you're considering patching to = get the append flag working. Anyway, hopefully one of these fixes gets MFCd to 8-STABLE soon. Markus