public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Scott <nathans@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: IA64 ino_t incorrectly sized?
Date: Wed, 15 Oct 2003 06:06:02 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106619832520344@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106378281914262@msgid-missing>

On Tue, Oct 14, 2003 at 09:47:41PM -0700, David Mosberger wrote:
> Hi Nathan,
> 
> Thanks for doing the thorough analysis!

No problem.  Thanks for the prodding. ;-)

> >>>>> On Wed, 15 Oct 2003 11:25:04 +1000, Nathan Scott <nathans@sgi.com> said:
> 
>   Nathan> system call interface -- I examined the 2.4 IA64 system call
>   Nathan> table and each of the structures passed across it in detail.
>   Nathan> This revealed that the ustat and NFS system calls pass around
>   Nathan> binary structures with __kernel_ino_t fields (see my updated
>   Nathan> patches).  I then diff'd the 2.4 and 2.6 asm-ia64/unistd.h
>   Nathan> and reviewed each of the new syscalls - there are no new 2.6
>   Nathan> interfaces that deal with an ino_t.
> 
> Those are nasty.  I suppose your patch works, but wouldn't it mean
> that NFS-export and/or ustat() of XFS file systems would fail?

It turns out that neither is a problem for us in practice.

In the case of ustat(2) ...
	ino_t     f_tinode;      /* Number of free inodes */
is meaningless on those filesystems (like XFS) which don't allocate a
fixed set of inodes at mkfs time.  It's only an "ino_t" for hysterical
raisins too (the count of free inodes? != an inode number!) - I notice
IRIX defines this in exactly the same way, I guess this came from SVR4
verbatim.  I'm hard pressed finding an application that uses this, and
I was quite surprised to find it in Linux at all.

For the NFS case - I asked one of the local NFS gurus to look over the
changes yesterday, and he tells me that field is only used to hold the
root inode number of a filesystem.  So, for XFS (and I'd imagine most
other filesystems too) this is never going to be a problem - the root
never has a large inode number in XFS because it's allocated at mkfs
time and always from the first allocation group (where inode numbers
are small).

> ...
> 1259 and 1260.  I don't expect/hope that other syscalls will be added
> this late in the game.

No, nor do I.  I don't think we should go that far though, certainly
it seems all our needs in XFS will be met without adding these calls.

cheers.

-- 
Nathan

  parent reply	other threads:[~2003-10-15  6:06 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17  7:10 IA64 ino_t incorrectly sized? Nathan Scott
2003-09-17 14:33 ` Jes Sorensen
2003-09-17 17:26 ` David Mosberger
2003-09-29  5:52 ` Nathan Scott
2003-10-08 23:51 ` David Mosberger
2003-10-09  1:25 ` Nathan Scott
2003-10-09  1:57 ` David Mosberger
2003-10-09  3:15 ` Nathan Scott
2003-10-09  3:53 ` David Mosberger
2003-10-09  4:55 ` Nathan Scott
2003-10-09 20:46 ` David Mosberger
2003-10-10  2:22 ` Nathan Scott
2003-10-15  1:25 ` Nathan Scott
2003-10-15  1:48 ` Andrew Morton
2003-10-15  4:47 ` David Mosberger
2003-10-15  5:18 ` Andrew Morton
2003-10-15  6:06 ` Nathan Scott [this message]
2003-10-15  6:16 ` Nathan Scott
2003-10-15  6:21 ` David Mosberger
2003-10-15  6:28 ` Andrew Morton
2003-10-15  6:34 ` Nathan Scott
2003-10-15 12:42 ` Andi Kleen
2003-10-15 12:54 ` Christoph Hellwig
2003-10-15 13:29 ` Matthew Wilcox
2003-10-15 13:40 ` Christoph Hellwig
2003-10-15 16:32 ` David Mosberger
2003-10-15 16:59 ` David Mosberger
2003-10-15 17:40 ` David Mosberger
2003-10-15 23:40 ` Neil Brown
2003-10-16  1:20 ` David Mosberger
2003-10-16 22:47 ` Nathan Scott
2003-10-17  0:47 ` Neil Brown
2003-10-17  1:56 ` Nathan Scott
2003-10-21  3:37 ` Neil Brown

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=marc-linux-ia64-106619832520344@msgid-missing \
    --to=nathans@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox