Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 19:56:20 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Christoph Hellwig <hch@infradead.org>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Re: RFC: patch to make d_fileno 64bits
Message-ID:  <20141122175620.GA17068@kib.kiev.ua>
In-Reply-To: <20141122162201.GA27585@infradead.org>
References:  <20141121155754.GN17068@kib.kiev.ua> <420608613.5215411.1416613552066.JavaMail.root@uoguelph.ca> <20141122153427.GW17068@kib.kiev.ua> <20141122162201.GA27585@infradead.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 22, 2014 at 08:22:01AM -0800, Christoph Hellwig wrote:
> On Sat, Nov 22, 2014 at 05:34:27PM +0200, Konstantin Belousov wrote:
> > For syscalls 156 and 196 (and some more), the converter must be written
> > in the vfs_syscalls.c which translates the new dirents into old dirents,
> > at the level of best efforts.
> 
> FYI, you might want to look at the high level construct we use for that
> in Linux, where we pass a function pointer to format the dirent to the
> VOP_READDIR equivalent.  The function pointer is passed by the caller
> and can format all kinds of different dirent stuctures.  This hasn't
> just been helpful for the 64bit ino dirent transition, but also for
> foreign OS compatibility layers and in-kernel consumers like nfsd.

Yes, this is very promising approach, I agree.
Thank you for the pointer.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141122175620.GA17068>