From owner-freebsd-fs@FreeBSD.ORG Sat Nov 22 18:13:02 2014 Return-Path: Delivered-To: freebsd-fs@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 746F1511 for ; Sat, 22 Nov 2014 18:13:02 +0000 (UTC) Received: from chez.mckusick.com (chez.mckusick.com [IPv6:2001:5a8:4:7e72:4a5b:39ff:fe12:452]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9B39E for ; Sat, 22 Nov 2014 18:13:02 +0000 (UTC) Received: from chez.mckusick.com (localhost [127.0.0.1]) by chez.mckusick.com (8.14.3/8.14.3) with ESMTP id sAMICsv8016811; Sat, 22 Nov 2014 10:12:54 -0800 (PST) (envelope-from mckusick@chez.mckusick.com) Message-Id: <201411221812.sAMICsv8016811@chez.mckusick.com> To: Konstantin Belousov Subject: Re: RFC: patch to make d_fileno 64bits In-reply-to: <20141122175531.GZ17068@kib.kiev.ua> Date: Sat, 22 Nov 2014 10:12:54 -0800 From: Kirk McKusick Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2014 18:13:02 -0000 > Date: Sat, 22 Nov 2014 19:55:31 +0200 > From: Konstantin Belousov > To: Kirk McKusick > Cc: Rick Macklem , > FreeBSD Filesystems > Subject: Re: RFC: patch to make d_fileno 64bits > >> Do we have a way of versioning libc so that we can have the old version >> that provides the 32-bit version of the syscalls (156 and 196) along >> with 32-bit higher-level functions like fts and friends and then a new >> libc version that has the 64-bit version of the syscalls and other >> higher-level functions? > > We do not need several versions of libc. We support symbol versioning, > i.e. we can have old getdirents symbol which resolves to syscall stub > for 196, and new getdirents for new syscall. > > It is somewhat convoluted feature, you could look at example in > sys/kern/sysv_*.c, for instance, freebsd7_shmctl and shmctl. Also > look at libc/include/compat.h. For pure usermode compat shims, > lib/libc/gen/fts-compat.c was already handled one time. > > I promise to write neccessary magic for libc versioning when needed. > As I explained before, unfortunately the libc is not the final point > for the userspace compat. What more beyond libc do we need to handle? Things like fts is in libc. Are there other libraries besides libc that embed the size of an ino_t? Kirk