From owner-freebsd-fs@FreeBSD.ORG Sun Jan 23 01:06:07 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04B31106566B; Sun, 23 Jan 2011 01:06:07 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9618FC0A; Sun, 23 Jan 2011 01:06:06 +0000 (UTC) Received: by wwf26 with SMTP id 26so2892987wwf.31 for ; Sat, 22 Jan 2011 17:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=azvfVCZqQRrTWDD+sgNx/m3FQba3ntgnkkD+lVs4Im0=; b=kw56uffmScqYt09n++RyEGqVoU9XBRkxeThavqgRycLRrPpALOW4iN5wXf8fL/0knc Tko0iw38m8xV4YQ8IKbEcfqsYRF4+le3H8oN65gGhZInt6WOIhoaXyEP20SUpNFAbPW+ DSMeok4FSGq8hE00nm5+9bJpvQnNENq/aTcOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=mmd1du7xY6FjN+K2wnaRNO5xEFqU2UZaouCqD61klSOPFGw+3+XQ8LpaYFdu1TSwhP +RJev3iD8kO3iU+Mr+/wMcFgkOTDGozNIoQx2CufwuIE263m+cdE+Sg9OAlAAdp1IJ7n Nv8EwPLoFexfkC+FnQ4V5GStdqMDSAjrCAOxI= MIME-Version: 1.0 Received: by 10.216.29.71 with SMTP id h49mr2193463wea.46.1295744765434; Sat, 22 Jan 2011 17:06:05 -0800 (PST) Received: by 10.216.254.226 with HTTP; Sat, 22 Jan 2011 17:06:05 -0800 (PST) Date: Sat, 22 Jan 2011 17:06:05 -0800 Message-ID: From: Garrett Cooper To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs@freebsd.org Subject: Concerns over shim-layers for ZFS and kernel/userland namespace pollution X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 01:06:07 -0000 Hi Pawel, I've been trying to get rid of the time.h pollution in sys/time.h for POSIX conformance and I've run into a bit of a roadblock (referring to sys/cddl/compat/opensolaris/sys/time.h): 1. The clock_gettime call in gethrtime() can fail and the failure itself isn't captured. 2. The calls in many case assume userland behavior, being "return value", not "return errno, assign value to address passed in" 3. AFAICT the calls shouldn't be calling the clock_gettime syscall interface from userland; they should be calling the clock_gettime interface. I could be partly wrong here, but if so then some additional hacking will need to be made to pull in time.h as that's where clock_gettime must be defined according to our manpages and POSIX. There might be another preexisting KPI that can be used in its place. I haven't looked outside of that header for now. Comments on my above statements are more than welcome. Thanks, -Garrett