[Top] [All Lists]

Re: [REVIEW 2/2] Case insensitive support for XFS - user-space

To: "Eric Sandeen" <sandeen@xxxxxxxxxxx>
Subject: Re: [REVIEW 2/2] Case insensitive support for XFS - user-space
From: "Barry Naujok" <bnaujok@xxxxxxx>
Date: Mon, 21 Jan 2008 13:07:21 +1100
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>
In-reply-to: <47919214.9000807@xxxxxxxxxxx>
Organization: SGI
References: <op.t43zfeiz3jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <479118CF.1020302@xxxxxxxxxxx> <47919214.9000807@xxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Opera Mail/9.24 (Win32)
On Sat, 19 Jan 2008 17:00:52 +1100, Eric Sandeen <sandeen@xxxxxxxxxxx> wrote:

Eric Sandeen wrote:

Also, if I specify -nutf8=default on a 500m fs:

# mkfs.xfs -dfile,name=fsfile,size=500m -nutf8=default
meta-data=fsfile isize=256 agcount=4, agsize=32000 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=128000, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   utf8=default
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
mkfs.xfs: cannot reserve space: No space left on device

         * allocate the inode
        tp = libxfs_trans_alloc(mp, 0);
        error =  libxfs_trans_reserve(tp, XFS_CREATE_LOG_RES(mp), 0, 0,
0, 0);

Can you try this instead?

        error =  libxfs_trans_reserve(tp, XFS_IALLOC_BLOCKS(mp) +
                        (XFS_IN_MAXLEVELS(mp) - 1), 0, 0, 0, 0);

        if (error) {
fprintf(stderr, _("%s: 1: cannot reserve space: %s (%d)\n"), progname, strerror(error), XFS_CREATE_LOG_RES(mp));

I think there are some wrong arguments to that trans_reserve... at least
XFS_CREATE_LOG_RES should be 3rd arg, no?


<Prev in Thread] Current Thread [Next in Thread>