Received: with ECARTIS (v1.0.0; list xfs); Mon, 25 Aug 2008 18:40:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,MIME_8BIT_HEADER autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m7Q1eG5w011497 for ; Mon, 25 Aug 2008 18:40:16 -0700 X-ASG-Debug-ID: 1219714897-573602070000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from ipmail01.adl6.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 11E823CD3C9 for ; Mon, 25 Aug 2008 18:41:38 -0700 (PDT) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by cuda.sgi.com with ESMTP id EYBOOwfciBtJt642 for ; Mon, 25 Aug 2008 18:41:38 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtACAD35skh5LD0wiGdsb2JhbACSLAEBAQ8gpDuBaw X-IronPort-AV: E=Sophos;i="4.32,266,1217773800"; d="scan'208";a="180288845" Received: from ppp121-44-61-48.lns10.syd7.internode.on.net (HELO disturbed) ([121.44.61.48]) by ipmail01.adl6.internode.on.net with ESMTP; 26 Aug 2008 11:11:36 +0930 Received: from dave by disturbed with local (Exim 4.69) (envelope-from ) id 1KXnYr-00054B-Gp; Tue, 26 Aug 2008 11:41:33 +1000 Date: Tue, 26 Aug 2008 11:41:33 +1000 From: Dave Chinner To: =?utf-8?B?U8WCYXdvbWly?= Nowakowski Cc: xfs@oss.sgi.com X-ASG-Orig-Subj: Re: XFS issue under 2.6.25.13 kernel Subject: Re: XFS issue under 2.6.25.13 kernel Message-ID: <20080826014133.GS5706@disturbed> Mail-Followup-To: =?utf-8?B?U8WCYXdvbWly?= Nowakowski , xfs@oss.sgi.com References: <50ed5c760808220303p37e03e8dge5b868a572374e0b@mail.gmail.com> <20080823010524.GM5706@disturbed> <50ed5c760808250408o44aeaf07me262eab8da8340ba@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <50ed5c760808250408o44aeaf07me262eab8da8340ba@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: ipmail01.adl6.internode.on.net[203.16.214.146] X-Barracuda-Start-Time: 1219714899 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0066 1.0000 -1.9780 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.98 X-Barracuda-Spam-Status: No, SCORE=-1.98 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.3726 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/8088/Mon Aug 25 13:49:45 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 17715 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: david@fromorbit.com Precedence: bulk X-list: xfs On Mon, Aug 25, 2008 at 01:08:29PM +0200, Sławomir Nowakowski wrote: > 2008/8/23 Dave Chinner : > Next we have created some files: > -one big file called "bigfile" and size of 5109497856 bytes > -two small text files called: "file1" and "file2" > > At this stage it looked as follows: .... > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/sda3 4993984 4989916 4068 100% /mnt/z > > Then we have run system with 2.6.25.13 kernel and checked how it looks: ..... > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/sda3 4993984 4993984 0 100% /mnt/z > > As it shown in case of 2.6.25.13 kernel system reports no free space, > but under 2.6.17.13 kernel there is 4068kB of free space. > > At this stage when editing file file1 with i.e. mcedit and trying to > write changes, the system cuts this file to 0 bytes! Oh, look, yet another editor that doesn't safely handle ENOSPC and trashes files when it can't overwrite them. That's not an XFS problem - I suggest raising a bug against the editor.... > >> Is it known issue and/or does solution or workaround exists? > > > > $ sudo xfs_io -x -c 'resblks 0' > > > > will remove the reservation. This means your filesystem can shutdown > > or lose data at ENOSPC in certain circumstances.... > > A question: does using the command: > > $ sudo xfs_io -x -c 'resblks 0' > > for 2.6.25.13 kernel gives higher risk of losing data then in case of > 2.6.17.13 kernel. Hard to say. If you don't run to ENOSPC then there is no difference. If you do run to ENOSPC then I think that there is a slightly higher risk of tripping problems on 2.6.25.x because of other ENOSPC fixes that have been included since 2.6.17.13. This really is a safety net in that it allows the system to continue without problems in conditions where it would have previously done a bad thing... Cheers, Dave. -- Dave Chinner david@fromorbit.com