Re: mkfs.xfs doesn't detect size of storage correctly

Eric Sandeen
2008-01-29T15:19:31Z

Matthias Schniedermeyer wrote:

> A maybe important detail, i forgot to mention in the original mail is:
> The machine has 8GB of RAM, so i compiled the kernel with "64bit=yes"
> (formaly x86_64), BUT(!) the userspace is 32bit or plain old i386.

If you think that's the issue, I'd try compiling the above as a 32-bit
binary and re-run.

Although, for a simple sparse-file-backed loopback device w/o loop-aes,
that doesn't cause any problem for me:

[root@inode tmp]# ls -l loopfile
-rw-r--r-- 1 root root 750156369920 2008-01-29 08:53 loopfile

[root@inode tmp]# losetup /dev/loop0 loopfile

[root@inode tmp]# ./gds32 /dev/loop0
1465149160 512 byte blocks (BLKGETSIZE64)
[root@inode tmp]# ./gds64 /dev/loop0
1465149160 512 byte blocks (BLKGETSIZE64)

-Eric

> Bis denn
>