From owner-freebsd-fs@FreeBSD.ORG Mon Jul 14 11:06:58 2008 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 092291065676 for ; Mon, 14 Jul 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F1CF78FC17 for ; Mon, 14 Jul 2008 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6EB6vVQ014406 for ; Mon, 14 Jul 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6EB6v0f014402 for freebsd-fs@FreeBSD.org; Mon, 14 Jul 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Jul 2008 11:06:57 GMT Message-Id: <200807141106.m6EB6v0f014402@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-fs@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-fs@FreeBSD.org 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: Mon, 14 Jul 2008 11:06:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/93942 fs [vfs] [patch] panic: ufs_dirbad: bad dir (patch from D o kern/112658 fs [smbfs] [patch] smbfs and caching problems (resolves b o kern/114676 fs [ufs] snapshot creation panics: snapacct_ufs2: bad blo o kern/116170 fs [panic] Kernel panic when mounting /tmp o bin/121072 fs [smbfs] mount_smbfs(8) cannot normally convert the cha o bin/122172 fs [fs]: amd(8) automount daemon dies on 6.3-STABLE i386, o kern/122888 fs [zfs] zfs hang w/ prefetch on, zil off while running t 7 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/113049 fs [patch] [request] make quot(8) use getopt(3) and show o bin/113838 fs [patch] [request] mount(8): add support for relative p o bin/114468 fs [patch] [request] add -d option to umount(8) to detach o kern/114847 fs [ntfs] [patch] [request] dirmask support for NTFS ala o kern/114955 fs [cd9660] [patch] [request] support for mask,dirmask,ui o bin/118249 fs mv(1): moving a directory changes its mtime o kern/124621 fs [ext3] Cannot mount ext2fs partition o kern/125536 fs [ext2fs] ext 2 mounts cleanly but fails on commands li 8 problems total. From owner-freebsd-fs@FreeBSD.ORG Tue Jul 15 19:50:02 2008 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 E22811065744 for ; Tue, 15 Jul 2008 19:50:02 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from aeryn.cs.uoguelph.ca (aeryn.cs.uoguelph.ca [131.104.20.160]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECD98FC17 for ; Tue, 15 Jul 2008 19:50:02 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by aeryn.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id m6FIkv7f013779 for ; Tue, 15 Jul 2008 14:46:59 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id m6FIvNa13296 for ; Tue, 15 Jul 2008 14:57:23 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Tue, 15 Jul 2008 14:57:23 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: freebsd-fs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.20.161 Subject: executable open until unmount 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: Tue, 15 Jul 2008 19:50:03 -0000 I'm testing my nfsv4 client and I've run into this issue under FreeBSD7.0. When I execute a file on the nfs mounted volume, the file remains open until the vnode gets cleared out, usually when I unmount. For NFSv4, this isn't a particularily good thing, since these Opens tie up resources on the NFS server, etc. Anyone know if there is something I'm doing incorrectly that causes this or a way to get the close to happen when the executable terminates? Thanks in advance for any help, rick From owner-freebsd-fs@FreeBSD.ORG Tue Jul 15 20:36:46 2008 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 2ED6B1065673 for ; Tue, 15 Jul 2008 20:36:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 95F858FC08 for ; Tue, 15 Jul 2008 20:36:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6FKafdX009784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jul 2008 23:36:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6FKafOD019692; Tue, 15 Jul 2008 23:36:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m6FKafHx019691; Tue, 15 Jul 2008 23:36:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 15 Jul 2008 23:36:41 +0300 From: Kostik Belousov To: Rick Macklem Message-ID: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3Klj4d7nt2xGOswL" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Tue, 15 Jul 2008 20:36:46 -0000 --3Klj4d7nt2xGOswL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 15, 2008 at 02:57:23PM -0400, Rick Macklem wrote: > I'm testing my nfsv4 client and I've run into this issue under FreeBSD7.0. >=20 > When I execute a file on the nfs mounted volume, the file remains open > until the vnode gets cleared out, usually when I unmount. For NFSv4, this > isn't a particularily good thing, since these Opens tie up resources on > the NFS server, etc. >=20 > Anyone know if there is something I'm doing incorrectly that causes this= =20 > or a way to get the close to happen when the executable terminates? >=20 > Thanks in advance for any help, rick Try this: diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index f4335a2..c3ef0e9 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -496,6 +496,7 @@ interpret: interplabel =3D mac_vnode_label_alloc(); mac_vnode_copy_label(binvp->v_label, interplabel); #endif + VOP_CLOSE(binvp, FREAD, td->td_ucred, td); vput(binvp); vm_object_deallocate(imgp->object); imgp->object =3D NULL; @@ -845,6 +846,7 @@ exec_fail_dealloc: if (imgp->vp !=3D NULL) { if (args->fname) NDFREE(ndp, NDF_ONLY_PNBUF); + VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); vput(imgp->vp); } =20 --3Klj4d7nt2xGOswL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh9ClgACgkQC3+MBN1Mb4iGkACdFDUQblFAhYx/p4/5TWfPyDR+ LOUAn1LY0GLq7xLQToEV1ttkc3LOP2mL =LWL/ -----END PGP SIGNATURE----- --3Klj4d7nt2xGOswL-- From owner-freebsd-fs@FreeBSD.ORG Wed Jul 16 15:22:04 2008 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 0C7FE1065679 for ; Wed, 16 Jul 2008 15:22:04 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailhub.cs.uoguelph.ca (mailhub.cs.uoguelph.ca [131.104.94.205]) by mx1.freebsd.org (Postfix) with ESMTP id BEA158FC26 for ; Wed, 16 Jul 2008 15:22:03 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by mailhub.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id m6GFM2Sq016271; Wed, 16 Jul 2008 11:22:02 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id m6GFWTQ05160; Wed, 16 Jul 2008 11:32:29 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Wed, 16 Jul 2008 11:32:28 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Kostik Belousov In-Reply-To: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> Message-ID: References: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.205 Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Wed, 16 Jul 2008 15:22:04 -0000 Patch looks good. It fixed my problem and hasn't crashed the system yet;-) Thanks, rick On Tue, 15 Jul 2008, Kostik Belousov wrote: > On Tue, Jul 15, 2008 at 02:57:23PM -0400, Rick Macklem wrote: >> I'm testing my nfsv4 client and I've run into this issue under FreeBSD7.0. >> >> When I execute a file on the nfs mounted volume, the file remains open >> until the vnode gets cleared out, usually when I unmount. For NFSv4, this >> isn't a particularily good thing, since these Opens tie up resources on >> the NFS server, etc. >> >> Anyone know if there is something I'm doing incorrectly that causes this >> or a way to get the close to happen when the executable terminates? >> >> Thanks in advance for any help, rick > > Try this: > > diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c > index f4335a2..c3ef0e9 100644 > --- a/sys/kern/kern_exec.c > +++ b/sys/kern/kern_exec.c > @@ -496,6 +496,7 @@ interpret: > interplabel = mac_vnode_label_alloc(); > mac_vnode_copy_label(binvp->v_label, interplabel); > #endif > + VOP_CLOSE(binvp, FREAD, td->td_ucred, td); > vput(binvp); > vm_object_deallocate(imgp->object); > imgp->object = NULL; > @@ -845,6 +846,7 @@ exec_fail_dealloc: > if (imgp->vp != NULL) { > if (args->fname) > NDFREE(ndp, NDF_ONLY_PNBUF); > + VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); > vput(imgp->vp); > } > > From owner-freebsd-fs@FreeBSD.ORG Wed Jul 16 15:44:12 2008 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 E7128106564A for ; Wed, 16 Jul 2008 15:44:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 66A5D8FC1A for ; Wed, 16 Jul 2008 15:44:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6GFi7O6080431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jul 2008 18:44:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6GFi7OV041762; Wed, 16 Jul 2008 18:44:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m6GFi72t041761; Wed, 16 Jul 2008 18:44:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 16 Jul 2008 18:44:07 +0300 From: Kostik Belousov To: Rick Macklem Message-ID: <20080716154407.GG17123@deviant.kiev.zoral.com.ua> References: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lPY6w/dILDkXzu1l" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Wed, 16 Jul 2008 15:44:13 -0000 --lPY6w/dILDkXzu1l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 16, 2008 at 11:32:28AM -0400, Rick Macklem wrote: > Patch looks good. It fixed my problem and hasn't crashed the system yet;-) Did you tested both elf executables and #!-scripts ? >=20 > Thanks, rick >=20 > On Tue, 15 Jul 2008, Kostik Belousov wrote: >=20 > >On Tue, Jul 15, 2008 at 02:57:23PM -0400, Rick Macklem wrote: > >>I'm testing my nfsv4 client and I've run into this issue under FreeBSD7= .0. > >> > >>When I execute a file on the nfs mounted volume, the file remains open > >>until the vnode gets cleared out, usually when I unmount. For NFSv4, th= is > >>isn't a particularily good thing, since these Opens tie up resources on > >>the NFS server, etc. > >> > >>Anyone know if there is something I'm doing incorrectly that causes this > >>or a way to get the close to happen when the executable terminates? > >> > >>Thanks in advance for any help, rick > > > >Try this: > > > >diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c > >index f4335a2..c3ef0e9 100644 > >--- a/sys/kern/kern_exec.c > >+++ b/sys/kern/kern_exec.c > >@@ -496,6 +496,7 @@ interpret: > > interplabel =3D mac_vnode_label_alloc(); > > mac_vnode_copy_label(binvp->v_label, interplabel); > >#endif > >+ VOP_CLOSE(binvp, FREAD, td->td_ucred, td); > > vput(binvp); > > vm_object_deallocate(imgp->object); > > imgp->object =3D NULL; > >@@ -845,6 +846,7 @@ exec_fail_dealloc: > > if (imgp->vp !=3D NULL) { > > if (args->fname) > > NDFREE(ndp, NDF_ONLY_PNBUF); > >+ VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); > > vput(imgp->vp); > > } > > > > --lPY6w/dILDkXzu1l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh+F0cACgkQC3+MBN1Mb4heSQCglg90q/P8YyBmAt2BSlC+rovK ek8AoNqF1sSuTmlU0sa6it8W6BC6ZoZ2 =7VvH -----END PGP SIGNATURE----- --lPY6w/dILDkXzu1l-- From owner-freebsd-fs@FreeBSD.ORG Wed Jul 16 22:24:40 2008 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 F36851065682 for ; Wed, 16 Jul 2008 22:24:40 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailhub.cs.uoguelph.ca (mailhub.cs.uoguelph.ca [131.104.94.205]) by mx1.freebsd.org (Postfix) with ESMTP id 952AC8FC0C for ; Wed, 16 Jul 2008 22:24:40 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by mailhub.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id m6GMOcwJ029240 for ; Wed, 16 Jul 2008 18:24:38 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id m6GMZ7N05028 for ; Wed, 16 Jul 2008 18:35:07 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Wed, 16 Jul 2008 18:35:07 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: freebsd-fs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.205 Subject: Which GSSAPI library does FreeBSD use? 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: Wed, 16 Jul 2008 22:24:41 -0000 Hope this isn't too simplistic for this list, but I need to know which GSSAPI library sources are being used. They don't appear to be either vanilla MIT nor Heimdal. It appears the sources aren't in the generic source tree, either. Happen to know where they can be grabbed? Thanks in advance for any help, rick From owner-freebsd-fs@FreeBSD.ORG Thu Jul 17 11:02:53 2008 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 9B7DC1065673 for ; Thu, 17 Jul 2008 11:02:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 359F48FC19 for ; Thu, 17 Jul 2008 11:02:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6HB2mG3009453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jul 2008 14:02:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6HB2mXP076320; Thu, 17 Jul 2008 14:02:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m6HB2mUH076319; Thu, 17 Jul 2008 14:02:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 17 Jul 2008 14:02:47 +0300 From: Kostik Belousov To: Rick Macklem Message-ID: <20080717110247.GI17123@deviant.kiev.zoral.com.ua> References: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> <20080716154407.GG17123@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9DMGLuUwtsONN52s" Content-Disposition: inline In-Reply-To: <20080716154407.GG17123@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Thu, 17 Jul 2008 11:02:53 -0000 --9DMGLuUwtsONN52s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 16, 2008 at 06:44:07PM +0300, Kostik Belousov wrote: > On Wed, Jul 16, 2008 at 11:32:28AM -0400, Rick Macklem wrote: > > Patch looks good. It fixed my problem and hasn't crashed the system yet= ;-) > Did you tested both elf executables and #!-scripts ? >=20 > >=20 > > Thanks, rick And, in fact, the patch has a problem. Namely, it does not properly track the opened status of the text vnode, because exec_check_permission() could not opened it in case of error. Please, retest the change below. diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index f4335a2..e31ca37 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -369,6 +369,7 @@ do_execve(td, args, mac_p) imgp->entry_addr =3D 0; imgp->vmspace_destroyed =3D 0; imgp->interpreted =3D 0; + imgp->opened =3D 0; imgp->interpreter_name =3D args->buf + PATH_MAX + ARG_MAX; imgp->auxargs =3D NULL; imgp->vp =3D NULL; @@ -496,6 +497,10 @@ interpret: interplabel =3D mac_vnode_label_alloc(); mac_vnode_copy_label(binvp->v_label, interplabel); #endif + if (imgp->opened) { + VOP_CLOSE(binvp, FREAD, td->td_ucred, td); + imgp->opened =3D 0; + } vput(binvp); vm_object_deallocate(imgp->object); imgp->object =3D NULL; @@ -845,6 +850,8 @@ exec_fail_dealloc: if (imgp->vp !=3D NULL) { if (args->fname) NDFREE(ndp, NDF_ONLY_PNBUF); + if (imgp->opened) + VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); vput(imgp->vp); } =20 @@ -1326,6 +1333,8 @@ exec_check_permissions(imgp) * general case). */ error =3D VOP_OPEN(vp, FREAD, td->td_ucred, td, NULL); + if (error =3D=3D 0) + imgp->opened =3D 1; return (error); } =20 diff --git a/sys/sys/imgact.h b/sys/sys/imgact.h index 85eaea8..011a7ae 100644 --- a/sys/sys/imgact.h +++ b/sys/sys/imgact.h @@ -58,6 +58,7 @@ struct image_params { unsigned long entry_addr; /* entry address of target executable */ char vmspace_destroyed; /* flag - we've blown away original vm space */ char interpreted; /* flag - this executable is interpreted */ + char opened; /* flag - we have opened executable vnode */ char *interpreter_name; /* name of the interpreter */ void *auxargs; /* ELF Auxinfo structure pointer */ struct sf_buf *firstpage; /* first page that we mapped */ --9DMGLuUwtsONN52s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh/JtcACgkQC3+MBN1Mb4jh7wCeIKzpRRAfC8k8vjZb/rcvxqZi UUAAnRZ3AMVIOjAINZaEImONn8TVrHXQ =7ID2 -----END PGP SIGNATURE----- --9DMGLuUwtsONN52s-- From owner-freebsd-fs@FreeBSD.ORG Thu Jul 17 14:56:53 2008 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 8EE85106567F for ; Thu, 17 Jul 2008 14:56:53 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from aeryn.cs.uoguelph.ca (aeryn.cs.uoguelph.ca [131.104.20.160]) by mx1.freebsd.org (Postfix) with ESMTP id 54C0D8FC22 for ; Thu, 17 Jul 2008 14:56:53 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by aeryn.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id m6HEupgi023763; Thu, 17 Jul 2008 10:56:52 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id m6HF7MR22378; Thu, 17 Jul 2008 11:07:22 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Thu, 17 Jul 2008 11:07:22 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Kostik Belousov In-Reply-To: <20080716154407.GG17123@deviant.kiev.zoral.com.ua> Message-ID: References: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> <20080716154407.GG17123@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.20.161 Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Thu, 17 Jul 2008 14:56:53 -0000 On Wed, 16 Jul 2008, Kostik Belousov wrote: > On Wed, Jul 16, 2008 at 11:32:28AM -0400, Rick Macklem wrote: >> Patch looks good. It fixed my problem and hasn't crashed the system yet;-) > Did you tested both elf executables and #!-scripts ? > Yep. (At least I have now. I had only tested Elf when I posted:-) Working fine without crashes sofar, rick >> >> Thanks, rick >> >> On Tue, 15 Jul 2008, Kostik Belousov wrote: >> >>> On Tue, Jul 15, 2008 at 02:57:23PM -0400, Rick Macklem wrote: >>>> I'm testing my nfsv4 client and I've run into this issue under FreeBSD7.0. >>>> >>>> When I execute a file on the nfs mounted volume, the file remains open >>>> until the vnode gets cleared out, usually when I unmount. For NFSv4, this >>>> isn't a particularily good thing, since these Opens tie up resources on >>>> the NFS server, etc. >>>> >>>> Anyone know if there is something I'm doing incorrectly that causes this >>>> or a way to get the close to happen when the executable terminates? >>>> >>>> Thanks in advance for any help, rick >>> >>> Try this: >>> >>> diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c >>> index f4335a2..c3ef0e9 100644 >>> --- a/sys/kern/kern_exec.c >>> +++ b/sys/kern/kern_exec.c >>> @@ -496,6 +496,7 @@ interpret: >>> interplabel = mac_vnode_label_alloc(); >>> mac_vnode_copy_label(binvp->v_label, interplabel); >>> #endif >>> + VOP_CLOSE(binvp, FREAD, td->td_ucred, td); >>> vput(binvp); >>> vm_object_deallocate(imgp->object); >>> imgp->object = NULL; >>> @@ -845,6 +846,7 @@ exec_fail_dealloc: >>> if (imgp->vp != NULL) { >>> if (args->fname) >>> NDFREE(ndp, NDF_ONLY_PNBUF); >>> + VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); >>> vput(imgp->vp); >>> } >>> >>> > From owner-freebsd-fs@FreeBSD.ORG Thu Jul 17 15:20:34 2008 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 B4184106566B for ; Thu, 17 Jul 2008 15:20:34 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailhub.cs.uoguelph.ca (mailhub.cs.uoguelph.ca [131.104.94.205]) by mx1.freebsd.org (Postfix) with ESMTP id 789E28FC17 for ; Thu, 17 Jul 2008 15:20:34 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by mailhub.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id m6HFKXhs002535; Thu, 17 Jul 2008 11:20:33 -0400 Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id m6HFV3r25863; Thu, 17 Jul 2008 11:31:03 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Thu, 17 Jul 2008 11:31:03 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Kostik Belousov In-Reply-To: <20080717110247.GI17123@deviant.kiev.zoral.com.ua> Message-ID: References: <20080715203641.GA17123@deviant.kiev.zoral.com.ua> <20080716154407.GG17123@deviant.kiev.zoral.com.ua> <20080717110247.GI17123@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.63 on 131.104.94.205 Cc: freebsd-fs@freebsd.org Subject: Re: executable open until unmount 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: Thu, 17 Jul 2008 15:20:34 -0000 Retested modified patch and seems fine both ways. I also tried one that couldn't be opened. Thanks again, rick On Thu, 17 Jul 2008, Kostik Belousov wrote: > On Wed, Jul 16, 2008 at 06:44:07PM +0300, Kostik Belousov wrote: >> On Wed, Jul 16, 2008 at 11:32:28AM -0400, Rick Macklem wrote: >>> Patch looks good. It fixed my problem and hasn't crashed the system yet;-) >> Did you tested both elf executables and #!-scripts ? >> >>> >>> Thanks, rick > > And, in fact, the patch has a problem. Namely, it does not properly > track the opened status of the text vnode, because exec_check_permission() > could not opened it in case of error. > > Please, retest the change below. > > diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c > index f4335a2..e31ca37 100644 > --- a/sys/kern/kern_exec.c > +++ b/sys/kern/kern_exec.c > @@ -369,6 +369,7 @@ do_execve(td, args, mac_p) > imgp->entry_addr = 0; > imgp->vmspace_destroyed = 0; > imgp->interpreted = 0; > + imgp->opened = 0; > imgp->interpreter_name = args->buf + PATH_MAX + ARG_MAX; > imgp->auxargs = NULL; > imgp->vp = NULL; > @@ -496,6 +497,10 @@ interpret: > interplabel = mac_vnode_label_alloc(); > mac_vnode_copy_label(binvp->v_label, interplabel); > #endif > + if (imgp->opened) { > + VOP_CLOSE(binvp, FREAD, td->td_ucred, td); > + imgp->opened = 0; > + } > vput(binvp); > vm_object_deallocate(imgp->object); > imgp->object = NULL; > @@ -845,6 +850,8 @@ exec_fail_dealloc: > if (imgp->vp != NULL) { > if (args->fname) > NDFREE(ndp, NDF_ONLY_PNBUF); > + if (imgp->opened) > + VOP_CLOSE(imgp->vp, FREAD, td->td_ucred, td); > vput(imgp->vp); > } > > @@ -1326,6 +1333,8 @@ exec_check_permissions(imgp) > * general case). > */ > error = VOP_OPEN(vp, FREAD, td->td_ucred, td, NULL); > + if (error == 0) > + imgp->opened = 1; > return (error); > } > > diff --git a/sys/sys/imgact.h b/sys/sys/imgact.h > index 85eaea8..011a7ae 100644 > --- a/sys/sys/imgact.h > +++ b/sys/sys/imgact.h > @@ -58,6 +58,7 @@ struct image_params { > unsigned long entry_addr; /* entry address of target executable */ > char vmspace_destroyed; /* flag - we've blown away original vm space */ > char interpreted; /* flag - this executable is interpreted */ > + char opened; /* flag - we have opened executable vnode */ > char *interpreter_name; /* name of the interpreter */ > void *auxargs; /* ELF Auxinfo structure pointer */ > struct sf_buf *firstpage; /* first page that we mapped */ > From owner-freebsd-fs@FreeBSD.ORG Fri Jul 18 06:03:41 2008 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 8D7C1106566C for ; Fri, 18 Jul 2008 06:03:41 +0000 (UTC) (envelope-from mark@legios.org) Received: from bade.legios.org (ppp198-172.static.internode.on.net [59.167.198.172]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3578FC12 for ; Fri, 18 Jul 2008 06:03:41 +0000 (UTC) (envelope-from mark@legios.org) Received: from localhost (unknown [192.168.0.17]) by bade.legios.org (Postfix) with ESMTP id CEB521A9DB2 for ; Fri, 18 Jul 2008 16:03:10 +1000 (EST) X-Virus-Scanned: amavisd-new at legios.org Received: from bade.legios.org ([192.168.0.17]) by localhost (legios.org [192.168.0.17]) (amavisd-new, port 10024) with ESMTP id 9ZAQNQLmFTsn for ; Fri, 18 Jul 2008 16:02:55 +1000 (EST) Received: from www.legios.org (unknown [192.168.0.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bade.legios.org (Postfix) with ESMTP id CA6621A9DB0 for ; Fri, 18 Jul 2008 16:02:55 +1000 (EST) Received: from 210.11.57.37 (SquirrelMail authenticated user mark) by www.legios.org with HTTP; Fri, 18 Jul 2008 16:02:55 +1000 (EST) Message-ID: <2f89f278568aef731caf1d9874d846f7.squirrel@www.legios.org> Date: Fri, 18 Jul 2008 16:02:55 +1000 (EST) From: mark@legios.org To: freebsd-fs@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: ZFS, SHA-256 and crypto accelerators. 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: Fri, 18 Jul 2008 06:03:41 -0000 Hey all, I'm just wondering if I have a crypto device (in my case, it's on a VIA CPU), and I select sha256 for the checksum algorithm, is it being accelerated by the crypto device? Cheers! Mark From owner-freebsd-fs@FreeBSD.ORG Fri Jul 18 07:29:53 2008 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 3BB97106566C; Fri, 18 Jul 2008 07:29:53 +0000 (UTC) (envelope-from mark@legios.org) Received: from bade.legios.org (ppp198-172.static.internode.on.net [59.167.198.172]) by mx1.freebsd.org (Postfix) with ESMTP id D304A8FC21; Fri, 18 Jul 2008 07:29:52 +0000 (UTC) (envelope-from mark@legios.org) Received: from localhost (unknown [192.168.0.17]) by bade.legios.org (Postfix) with ESMTP id 33EEE1A9DB7; Fri, 18 Jul 2008 17:29:22 +1000 (EST) X-Virus-Scanned: amavisd-new at legios.org Received: from bade.legios.org ([192.168.0.17]) by localhost (legios.org [192.168.0.17]) (amavisd-new, port 10024) with ESMTP id coRnMSwGWKBj; Fri, 18 Jul 2008 17:29:07 +1000 (EST) Received: from www.legios.org (unknown [192.168.0.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bade.legios.org (Postfix) with ESMTP id 290B61A9DB0; Fri, 18 Jul 2008 17:29:07 +1000 (EST) Received: from 210.11.57.37 (SquirrelMail authenticated user mark) by www.legios.org with HTTP; Fri, 18 Jul 2008 17:29:07 +1000 (EST) Message-ID: In-Reply-To: <20080718064948.GB1976@garage.freebsd.pl> References: <2f89f278568aef731caf1d9874d846f7.squirrel@www.legios.org> <20080718064948.GB1976@garage.freebsd.pl> Date: Fri, 18 Jul 2008 17:29:07 +1000 (EST) From: mark@legios.org To: "Pawel Jakub Dawidek" User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-fs@freebsd.org Subject: Re: ZFS, SHA-256 and crypto accelerators. 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: Fri, 18 Jul 2008 07:29:53 -0000 > On Fri, Jul 18, 2008 at 04:02:55PM +1000, mark@legios.org wrote: >> Hey all, >> >> I'm just wondering if I have a crypto device (in my case, it's on a VIA >> CPU), and I select sha256 for the checksum algorithm, is it being >> accelerated by the crypto device? > > No, currently not, but this is a very good idea. Would you mind moving > this idea into PR, so I won't forget about it? > > -- Not a problem - done, raised as misc/125738 Cheers! Mark From owner-freebsd-fs@FreeBSD.ORG Fri Jul 18 09:50:21 2008 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 3B5941065675 for ; Fri, 18 Jul 2008 09:50:21 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3FDB88FC1F for ; Fri, 18 Jul 2008 09:50:20 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id AA87345E35; Fri, 18 Jul 2008 08:49:50 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 31D7A45CD8; Fri, 18 Jul 2008 08:49:46 +0200 (CEST) Date: Fri, 18 Jul 2008 08:49:48 +0200 From: Pawel Jakub Dawidek To: mark@legios.org Message-ID: <20080718064948.GB1976@garage.freebsd.pl> References: <2f89f278568aef731caf1d9874d846f7.squirrel@www.legios.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <2f89f278568aef731caf1d9874d846f7.squirrel@www.legios.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS, SHA-256 and crypto accelerators. 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: Fri, 18 Jul 2008 09:50:21 -0000 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 18, 2008 at 04:02:55PM +1000, mark@legios.org wrote: > Hey all, >=20 > I'm just wondering if I have a crypto device (in my case, it's on a VIA > CPU), and I select sha256 for the checksum algorithm, is it being > accelerated by the crypto device? No, currently not, but this is a very good idea. Would you mind moving this idea into PR, so I won't forget about it? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIgD0LForvXbEpPzQRAtnGAKC+TIr8gxGS8pqNznDZRkZky4XxoACcDBAQ dSGM7j1YQaTMovbGQzGI0TI= =6300 -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3-- From owner-freebsd-fs@FreeBSD.ORG Fri Jul 18 09:50:23 2008 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 17B5C106566B for ; Fri, 18 Jul 2008 09:50:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045140.chello.pl [87.206.45.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9D0DE8FC23 for ; Fri, 18 Jul 2008 09:50:22 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E71F445E86; Fri, 18 Jul 2008 09:37:05 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 3CF1845B26; Fri, 18 Jul 2008 09:37:02 +0200 (CEST) Date: Fri, 18 Jul 2008 09:37:04 +0200 From: Pawel Jakub Dawidek To: mark@legios.org Message-ID: <20080718073704.GE1976@garage.freebsd.pl> References: <2f89f278568aef731caf1d9874d846f7.squirrel@www.legios.org> <20080718064948.GB1976@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vv4Sf/kQfcwinyKX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS, SHA-256 and crypto accelerators. 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: Fri, 18 Jul 2008 09:50:23 -0000 --vv4Sf/kQfcwinyKX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 18, 2008 at 05:29:07PM +1000, mark@legios.org wrote: > > On Fri, Jul 18, 2008 at 04:02:55PM +1000, mark@legios.org wrote: > >> Hey all, > >> > >> I'm just wondering if I have a crypto device (in my case, it's on a VIA > >> CPU), and I select sha256 for the checksum algorithm, is it being > >> accelerated by the crypto device? > > > > No, currently not, but this is a very good idea. Would you mind moving > > this idea into PR, so I won't forget about it? > > > > -- >=20 > Not a problem - done, raised as misc/125738 Got it, thanks. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --vv4Sf/kQfcwinyKX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIgEggForvXbEpPzQRAssoAJ0Saoki1DWFdQuyJNWhGmlS3DYaYQCgiizl 9fY1GNgnkhHZlp+yxbyWJyg= =CIg8 -----END PGP SIGNATURE----- --vv4Sf/kQfcwinyKX--