All of lore.kernel.org
 help / color / mirror / Atom feed
From: ja@mail.upjs.sk
To: David Chinner <dgc@sgi.com>, xfs@oss.sgi.com
Subject: Re: Differences in mkfs.xfs and xfs_info output.
Date: Mon, 18 Feb 2008 07:56:01 +0100	[thread overview]
Message-ID: <20080218065601.GA26506@mail.upjs.sk> (raw)
In-Reply-To: <20080218020704.GD155407@sgi.com>

On Mon, Feb 18, 2008 at 01:07:04PM +1100, David Chinner wrote:

> It is clear that it is dropping by 1024 blocks per mount/unmount
> sequence. That sounds like the reserved space for transactions at
> ENOSPC not being put back in before the superblock is finally
> written to disk on unmount. The reserved space defaults to 1024
> blocks. Does your kernel tree have this code
> in it in xfs_unmountfs():

Yes. I have the same code in xfs_mount.c.
In CVS/Entry I have 
/xfs_mount.c/1.417/Tue Feb  5 07:16:21 2008/-ko/

> FWIW, i wonder if it has something to do with your /dev/loop0
> setup. How have you set this up? Using a raw file and using
> it for mkfs/mount/unmount/check does not show the problem:

No, I restored filesystems on real partition (device mapper) with the same
result.

> If you run your test on a similar setup, do you see the problem
> still?

Yes.

# losetup -d /dev/loop0
# /root/mkfs.xfs -f -d name=test
meta-data=test                   isize=256    agcount=4, agsize=64000 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=256000, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
# xfs_check -f ./test 
# mount -o loop test /mnt/usb
# umount /mnt/usb
# xfs_check -f ./test
sb_fdblocks 253756, counted 254780

Cheers,
 
jan

      reply	other threads:[~2008-02-18  6:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-16  1:34 Differences in mkfs.xfs and xfs_info output Jan Derfinak
2008-02-16  4:10 ` Eric Sandeen
2008-02-16  4:33   ` Eric Sandeen
2008-02-16  4:36     ` Eric Sandeen
2008-02-16  4:41 ` Eric Sandeen
2008-02-16  7:40 ` David Chinner
2008-02-16 21:49   ` Jan Derfinak
2008-02-16 22:41   ` Jan Derfinak
2008-02-17 13:41     ` Jan Derfinak
2008-02-17 23:06     ` David Chinner
2008-02-18  0:12       ` Jan Derfinak
2008-02-19  0:04         ` Jan Derfinak
2008-02-19  0:20           ` David Chinner
2008-02-19  1:20             ` Jan Derfinak
2008-02-19  1:46               ` David Chinner
2008-02-19  2:10                 ` Jan Derfinak
2008-02-19 14:05                 ` Jan Derfinak
2008-02-20  5:42                   ` David Chinner
2008-03-16 22:44                     ` Jan Derfinak
2008-02-18  0:17       ` Jan Derfinak
2008-02-18  2:07         ` David Chinner
2008-02-18  6:56           ` ja [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080218065601.GA26506@mail.upjs.sk \
    --to=ja@mail.upjs.sk \
    --cc=dgc@sgi.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.