From owner-freebsd-stable@FreeBSD.ORG Thu Nov 18 15:11:48 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 8FE491065694; Thu, 18 Nov 2010 15:11:48 +0000 (UTC) (envelope-from mamalos@eng.auth.gr) Received: from vergina.eng.auth.gr (vergina.eng.auth.gr [155.207.18.1]) by mx1.freebsd.org (Postfix) with ESMTP id DFD6A8FC14; Thu, 18 Nov 2010 15:11:47 +0000 (UTC) Received: from mamalacation.ee.auth.gr (mamalacation.ee.auth.gr [155.207.33.29]) by vergina.eng.auth.gr (8.14.3/8.14.3) with ESMTP id oAIFBLRR014448; Thu, 18 Nov 2010 17:11:45 +0200 (EET) (envelope-from mamalos@eng.auth.gr) Message-ID: <4CE54211.4000608@eng.auth.gr> Date: Thu, 18 Nov 2010 17:11:13 +0200 From: George Mamalakis User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101103 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Markus Gebert References: <4CE3B320.70302@eng.auth.gr> <4CE4264C.7050207@freebsd.org> <6B9C30FF-784E-46FF-ADE8-2C574391371C@hostpoint.ch> In-Reply-To: <6B9C30FF-784E-46FF-ADE8-2C574391371C@hostpoint.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable , Pawel Jakub Dawidek , Martin Matuska , Andriy Gapon 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: Thu, 18 Nov 2010 15:11:48 -0000 On 17/11/2010 21:25, Markus Gebert wrote: > On 17.11.2010, at 20:00, Andriy Gapon wrote: > >> on 17/11/2010 18:38 Markus Gebert said the following: >>> On 17.11.2010, at 11:49, George Mamalakis wrote: >>> >>>> Hi everbody, >>>> >>>> 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: >>>> >>>> # 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 >>>> >>>> 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: >>>> >>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=149495 >>> And: >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=151082&cat=kern >>> >>> >>>> 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. >>> >> Good analysis, but did you forget to CC the committer(s)? >> It is known that sometimes the committers do need a gentle (or not so) nudging :-) > Right :-) mm@ and pjd@ now CCed. > > > Markus > > cheers guys :-) -- George Mamalakis IT Officer Electrical and Computer Engineer (Aristotle Un. of Thessaloniki), MSc (Imperial College of London) Department of Electrical and Computer Engineering Faculty of Engineering Aristotle University of Thessaloniki phone number : +30 (2310) 994379