Received: with ECARTIS (v1.0.0; list xfs); Wed, 16 Jan 2008 01:00:09 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m0G900dO001159 for ; Wed, 16 Jan 2008 01:00:04 -0800 X-ASG-Debug-ID: 1200474015-53b401e70000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from wa-out-1112.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 359A7C569E8 for ; Wed, 16 Jan 2008 01:00:15 -0800 (PST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by cuda.sgi.com with ESMTP id aSZ0cEnhPAFml6Z6 for ; Wed, 16 Jan 2008 01:00:15 -0800 (PST) Received: by wa-out-1112.google.com with SMTP id k22so327787waf.18 for ; Wed, 16 Jan 2008 01:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=q4/XuHgR6btpig686N/WD+ql5Hi/FGHyaR3hUUfmo/s=; b=TzWcBo58L8SmKA6hXi7wOaqALZ1uRr1/LhdsbLEFdmP3eIR9KcGqDXCUnIgE2K9JyQzv1uBhQE2BorzHy9RDq9tG7/KK/yqwFHUnmiovsD4YL44VBTMZECgAqY2HY6KAR1SgQ51leo8O3Jn8BJBfE8UnJNoOlOwX5VS9xOEDRAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=FNtH0qVGg/5WNncDqDyIXu+Sh8vRIGnc5iGTfNAKpcLM8dt9bhGLJjomls5FT+VlP6vKYgBd3gko/dBq5pEyBx4TcXbpVR2L7AILK8a/Fez3HZeo+3hdFsc+Ow3lM7SBm3xMvFM8odkly8gRZeYpjuGAae7MNDo1+BNcMc6T/8c= Received: by 10.114.110.12 with SMTP id i12mr636229wac.73.1200474014809; Wed, 16 Jan 2008 01:00:14 -0800 (PST) Received: by 10.114.182.4 with HTTP; Wed, 16 Jan 2008 01:00:14 -0800 (PST) Message-ID: Date: Wed, 16 Jan 2008 14:30:14 +0530 From: "Gopala Krishna" To: "Christoph Hellwig" X-ASG-Orig-Subj: Re: Question related to XFS sync , especially fsync Subject: Re: Question related to XFS sync , especially fsync Cc: "Chris Wedgwood" , nscott@aconex.com, xfs@oss.sgi.com In-Reply-To: <20080116082502.GA24175@infradead.org> MIME-Version: 1.0 References: <20080114224245.GT155259@sgi.com> <478CCEAC.9010008@sandeen.net> <1200436012.9463.184.camel@edge.scott.net.au> <20080116064840.GA5725@puku.stupidest.org> <20080116082502.GA24175@infradead.org> X-Barracuda-Connect: wa-out-1112.google.com[209.85.146.178] X-Barracuda-Start-Time: 1200474018 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=3.0 tests=HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.39658 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message X-Virus-Scanned: ClamAV 0.91.2/5484/Tue Jan 15 11:31:27 2008 on oss.sgi.com X-Virus-Status: Clean Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 1947 X-archive-position: 14149 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: gopalakrishna.n.m@gmail.com Precedence: bulk X-list: xfs Thanks for the suggestions!. I will relook at the my idea and design....implemetation. As of now what we are doing is in experimental stage. Thanks, Gopal. On 1/16/08, Christoph Hellwig wrote: > > On Wed, Jan 16, 2008 at 12:55:17PM +0530, Gopala Krishna wrote: > > While replying to Eric, I mentioned why we are doing that. We are > > basically providing interfaces to back up applications in a pure storage > > environment that deals with the back up at block level (sector level) > and > > hence depending upon different file system, we need to get information > about > > file like it's extent information and associated block numbers etc. > > This basically can't work. If you do a plain block based backup you > need to freeze the filesystem first and then either backup through a > newly created snapshot or the raw device. Alternatively you can do > file-based backups assisted by the bulkstat interface as done by > xfsdump. If you try to mix the two layers you get into deep trouble > due to various issues: > > - knowledge of the disk format. The ondisk format can change anytime > and will break your application. And yes, additions to the ondisk > format do happen quite frequently. > - no coherency between the filesystem and the block device node. This > is especially true for backup applications which use the buffered > block device nodes because there is a real-life chance that stale > cache is around > - no guarantee that the ondisk image is actually update. XFS like > most other current filesystems uses an intent log to provide > reliabily and sync is only guaranteed to push updates into the log > but not actually write it back to it's "normal" location on disk. > > In short what you're trying to do is a road to disaster, so don't do it! > > Note that the problems apply to any filesystem in one way or another, > not just XFS. > > [[HTML alternate version deleted]]