From owner-freebsd-current@FreeBSD.ORG Thu Apr 30 15:02:08 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CAF4496; Thu, 30 Apr 2015 15:02:08 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 780961566; Thu, 30 Apr 2015 15:02:08 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EBE6DB93A; Thu, 30 Apr 2015 11:02:06 -0400 (EDT) From: John Baldwin To: Julian Elischer Cc: Jilles Tjoelker , freebsd-current@freebsd.org Subject: Re: readdir/telldir/seekdir problem (i think) Date: Thu, 30 Apr 2015 10:46:31 -0400 Message-ID: <1581090.ihgbrSavJc@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <5541D219.6060900@freebsd.org> References: <55386505.70708@freebsd.org> <20150424215249.GA96554@stack.nl> <5541D219.6060900@freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 30 Apr 2015 11:02:07 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 15:02:08 -0000 On Thursday, April 30, 2015 02:56:25 PM Julian Elischer wrote: > We really need to do something because the current system is really > broken. > And the fact that dirent has *32 bit* inode number in it was a > shock.. I'd presumed > that had gone the way of the dinosaurs and dodo. > I think 11 needs to have a new dirent structure given out by a new > syscall. > (old one still present for compat reasons). Whether we need a > readdir64() and friends > I have not yet decided. Maybe it's time to bump libc's number again :-) This is the entire point of the ino64 branch (and project): to rototill struct stat and related structures so we have one ABI jump instead of lots of separate ABI jumps. It bumps ino_t to 64 bits, dev_t to 32 (IIRC), adds d_off to dirent, etc. I believe the branch is able to do it all with symbol versioning rather than bumping libc. However, this is why several of us keep harping on this as the real long-term solution. :) -- John Baldwin