All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Use 64-bit inode numbers internally in the kernel [try #2]
@ 2006-08-15 15:26 ` David Howells
  0 siblings, 0 replies; 8+ messages in thread
From: David Howells @ 2006-08-15 15:26 UTC (permalink / raw)
  To: torvalds, akpm, trond.myklebust, aviro
  Cc: linux-kernel, linux-fsdevel, nfsv4, dhowells


These patches make the kernel pass 64-bit inode numbers internally when
communicating to userspace, even on a 32-bit system.  They are required
because some filesystems have intrinsic 64-bit inode numbers: NFS3+ and XFS
for example.  The 64-bit inode numbers are then propagated to userspace
automatically where the arch supports it.

Problems have been seen with userspace (eg: ld.so) using the 64-bit inode
number returned by stat64() or getdents64() to differentiate files, and failing
because the 64-bit inode number space was compressed to 32-bits, and so
overlaps occur.


There are two patches:

 (1) Make struct kstat::ino and filldir_t's inode number argument u64 rather
     than ino_t and give an EOVERFLOW if an inode number can't be represented
     to userspace without shedding the top bits of the number.

 (2) Make NFS represent 64-bit fileids as 64-bit inode numbers to the VFS
     rather than compressing them to 32-bits on 32-bit systems.

David

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-16  0:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-15 15:26 [PATCH 0/2] Use 64-bit inode numbers internally in the kernel [try #2] David Howells
2006-08-15 15:26 ` David Howells
2006-08-15 15:26 ` [RHEL5 PATCH 1/2] VFS: Make filldir_t and struct kstat deal in 64-bit inode numbers " David Howells
2006-08-15 15:26   ` David Howells
2006-08-15 15:26 ` [RHEL5 PATCH 2/2] NFS: Represent 64-bit fileids as 64-bit inode numbers on 32-bit systems " David Howells
2006-08-15 15:26   ` David Howells
2006-08-15 16:28   ` Trond Myklebust
2006-08-16  0:22 ` [PATCH 0/2] Use 64-bit inode numbers internally in the kernel " Nathan Scott

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.