From owner-freebsd-fs@FreeBSD.ORG Sun May 27 02:36:06 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DD9316A46D for ; Sun, 27 May 2007 02:36:06 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0CED013C44B for ; Sun, 27 May 2007 02:36:05 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so2208306pyi for ; Sat, 26 May 2007 19:36:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RVnledAObzU+HH7yBkMdRLKuBWC/OfBAEF8ri1WbsAtmsY6WGn2IS8PIAxjxPOJfc4HUR4WF9wCjhX3QaY/M45PKufiaXQVGpHuQ6ARzpBZPIld1meusfICcVa4wrVRuXENn1YUapgaMA94kqrWd/is050Z5w17D+A4TfOgAe5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d0LQETERiGGu1jf9TapnTzggayBjqI8oQbQhniPcpX581/Wf43m7LwbjkWYjVM/1wpnPhV00XN3QEqpknFiEMrtFMtzGhXSwI0b1VGpoHhaI9sm9/Xc1KmINXf80ilCWg6XRTWxB9vKVRkmFo42AHI2quIbShxGPK0P75+I8lPs= Received: by 10.35.67.18 with SMTP id u18mr3340032pyk.1180233365431; Sat, 26 May 2007 19:36:05 -0700 (PDT) Received: by 10.35.79.18 with HTTP; Sat, 26 May 2007 19:36:05 -0700 (PDT) Message-ID: Date: Sun, 27 May 2007 10:36:05 +0800 From: "Howard Su" To: "Pawel Jakub Dawidek" In-Reply-To: <20070526194000.GC27289@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070526194000.GC27289@garage.freebsd.pl> Cc: fs@freebsd.org Subject: Re: call for help on TMPFS 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, 27 May 2007 02:36:06 -0000 On 5/27/07, Pawel Jakub Dawidek wrote: > On Sat, May 26, 2007 at 12:06:14AM +0800, Howard Su wrote: > I think you are missing some cases in lookup where you should add > SAVENAME flag. I'd start from adding this (or similar) assertions: > > KASSERT((ap->a_cnp->cn_flags & SAVENAME), ("No SAVENAME")); > > to the following functions: > > tmpfs_create() > tmpfs_remove() > tmpfs_mkdir() > tmpfs_rmdir() > tmpfs_rename() (assert both: fcnp and tcnp) > tmpfs_symlink() > tmpfs_link() Thank you very much. You are right. I just fixed this long standing panic. PS: I noticed that kernel option DIAGNOSTIC will clean ap->a_cnp with NULL if you don't give SAVENAME. So I enable DIAGNOSTIC instead of adding asserts. -- -Howard From owner-freebsd-fs@FreeBSD.ORG Sun May 27 16:21:06 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5ECE316A480 for ; Sun, 27 May 2007 16:21:06 +0000 (UTC) (envelope-from lists.freebsd@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.234]) by mx1.freebsd.org (Postfix) with ESMTP id 07D2013C4C1 for ; Sun, 27 May 2007 16:21:05 +0000 (UTC) (envelope-from lists.freebsd@gmail.com) Received: by qb-out-0506.google.com with SMTP id b14so2055199qbc for ; Sun, 27 May 2007 09:21:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=q9hwsndOEdoSrHZ1luPbIAWkqGwfYSMzzNo0ZMP46lqFhburfSXYNO7+hwEsKgtWdSojlkFiaOuOgIDx4h9ByE3h3gzHiTiQzHYbQdOTuIiUwiQQDyNYAbb5lcmXu00p6oWIFmz0LAq7hDY6eTJCL7tNjT34TVcruVNyBbUc1mI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SKnA2VRX3QR0IywlyONpdfm9IMthuizwcu02rdAqQ8+P+KRIQxl5VbcRRAq3qT0dLnbzlwPTrOgGTvSFGpVSO5wC1w6Rk2WmiyXpAqzSZzdG01iBSV7uzjdi4lHGSqji7toE43F1U3jN7eL86GqRQknwKuGixytioUVQ/m/T2sU= Received: by 10.142.87.15 with SMTP id k15mr138795wfb.1180282863486; Sun, 27 May 2007 09:21:03 -0700 (PDT) Received: by 10.143.41.18 with HTTP; Sun, 27 May 2007 09:21:03 -0700 (PDT) Message-ID: <99c92b5f0705270921x36cdb1afl6c6ef1a3cc949091@mail.gmail.com> Date: Sun, 27 May 2007 18:21:03 +0200 From: "Richard Noorlandt" To: freebsd-fs@freebsd.org In-Reply-To: <000701c79e62$2c9c4190$85d4c4b0$@com> MIME-Version: 1.0 References: <99c92b5f0705240730o146c1bb4x326591687e445cd@mail.gmail.com> <000701c79e62$2c9c4190$85d4c4b0$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Growing UFS beyond 2 TB 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, 27 May 2007 16:21:06 -0000 2007/5/25, Jan Mikkelsen : > > You can use the Areca controller to create separate devices/LUNs, > and then ignore fdisk/gpt/labels altogether for the large > filesystem you want to grow, and just stick the filesystem directly > on /dev/da1, or whatever it ends up being. I didn't realize that you could actually put the FS directly on the drive without partitioning it first, but it makes sense. Are there any known problems with such a setup? As far as I know, most people always partition their drives, so I don't know how often this is done.. As a bonus, you don't have to do all the calculations to figure out > where the partitions should start. See: > http://lists.freebsd.org/pipermail/freebsd-fs/2006-October/002312.h > tml That appears to be quite a nice bonus. Better performance with less work ;-) From owner-freebsd-fs@FreeBSD.ORG Sun May 27 17:48:19 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDA1C16A469 for ; Sun, 27 May 2007 17:48:19 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from que02.suddenlink.net (queue02.suddenlink.net [208.180.40.87]) by mx1.freebsd.org (Postfix) with ESMTP id 8179213C448 for ; Sun, 27 May 2007 17:48:19 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.vnode.org ([74.193.81.203]) by omta02.suddenlink.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070527172500.BBAN10446.omta02.suddenlink.net@neutrino.vnode.org>; Sun, 27 May 2007 12:25:00 -0500 Message-ID: <4659BEEC.3000601@freebsd.org> Date: Sun, 27 May 2007 12:25:00 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: Richard Noorlandt References: <99c92b5f0705240730o146c1bb4x326591687e445cd@mail.gmail.com> <000701c79e62$2c9c4190$85d4c4b0$@com> <99c92b5f0705270921x36cdb1afl6c6ef1a3cc949091@mail.gmail.com> In-Reply-To: <99c92b5f0705270921x36cdb1afl6c6ef1a3cc949091@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Growing UFS beyond 2 TB 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, 27 May 2007 17:48:19 -0000 On 05/27/07 11:21, Richard Noorlandt wrote: > 2007/5/25, Jan Mikkelsen : >> You can use the Areca controller to create separate devices/LUNs, >> and then ignore fdisk/gpt/labels altogether for the large >> filesystem you want to grow, and just stick the filesystem directly >> on /dev/da1, or whatever it ends up being. > > > I didn't realize that you could actually put the FS directly on the drive > without partitioning it first, but it makes sense. Are there any known > problems with such a setup? As far as I know, most people always partition > their drives, so I don't know how often this is done.. I try *not* to partition areas that are used for data only, if I can carve LUNs from the array or controller. I have set up lots of servers with that configuration, and they work nicely. > As a bonus, you don't have to do all the calculations to figure out >> where the partitions should start. See: >> http://lists.freebsd.org/pipermail/freebsd-fs/2006-October/002312.h >> tml > > > That appears to be quite a nice bonus. Better performance with less work ;-) Eric From owner-freebsd-fs@FreeBSD.ORG Mon May 28 23:12:16 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEA9D16A475 for ; Mon, 28 May 2007 23:12:16 +0000 (UTC) (envelope-from staalebk@ifi.uio.no) Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by mx1.freebsd.org (Postfix) with ESMTP id 73CDE13C4AD for ; Mon, 28 May 2007 23:12:16 +0000 (UTC) (envelope-from staalebk@ifi.uio.no) Received: from eschew.pusen.org (unknown [193.69.145.10]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.bluecom.no (Postfix) with ESMTP id 03BA616F4FF; Tue, 29 May 2007 01:12:15 +0200 (CEST) Received: from chiller by eschew.pusen.org with local (Exim 4.50) id 1HsoNu-0005hY-O8; Tue, 29 May 2007 01:12:18 +0200 Date: Tue, 29 May 2007 01:12:18 +0200 From: =?iso-8859-1?Q?St=E5le?= Kristoffersen To: Nick Gustas Message-ID: <20070528231218.GA14746@eschew.pusen.org> References: <46487565.40205@tychl.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <46487565.40205@tychl.net> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS performance 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, 28 May 2007 23:12:16 -0000 On 2007-05-14 at 10:42, Nick Gustas wrote: > I see the same behavior that Ståle is seeing, I can "fix" it by setting > vfs.zfs.prefetch_disable="1" in loader.conf. I'm assuming something in > the prefetch code isn't quite right? Ah, this _greatly_ improved the usability of my fileserver! Thanks for the tip :) > I believe I saw similar behavior in > solaris 10 when playing with ZFS a few weeks ago, but I need to revisit > that machine or install opensolaris on this one before I can be sure. Did you get around to checking this out? -- Ståle Kristoffersen staalebk@ifi.uio.no From owner-freebsd-fs@FreeBSD.ORG Tue May 29 14:54:10 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE09F16A400 for ; Tue, 29 May 2007 14:54:10 +0000 (UTC) (envelope-from freebsd-fs@tychl.net) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.192.83]) by mx1.freebsd.org (Postfix) with ESMTP id 972BE13C48A for ; Tue, 29 May 2007 14:54:10 +0000 (UTC) (envelope-from freebsd-fs@tychl.net) Received: from masq.tychl.net (tychl.no-ip.org[67.174.137.176]) by comcast.net (rwcrmhc13) with ESMTP id <20070529145409m13000d4sle>; Tue, 29 May 2007 14:54:09 +0000 Received: from localhost (localhost [127.0.0.1]) by masq.tychl.net (Postfix) with ESMTP id EAD481CB4B; Tue, 29 May 2007 10:54:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at tychl.net Received: from masq.tychl.net ([127.0.0.1]) by localhost (masq.tychl.net [127.0.0.1]) (amavisd-new, port 10024) with SMTP id lJvq7XXp5MUC; Tue, 29 May 2007 10:54:07 -0400 (EDT) Received: from [127.0.0.1] (67-39-225-23.ded.ameritech.net [67.39.225.23]) by masq.tychl.net (Postfix) with ESMTP id 5C5B81CB4A; Tue, 29 May 2007 10:54:07 -0400 (EDT) Message-ID: <465C3E8E.7040802@tychl.net> Date: Tue, 29 May 2007 10:54:06 -0400 From: Nick Gustas User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: =?ISO-8859-1?Q?St=E5le_Kristoffersen?= , freebsd-fs@freebsd.org References: <46487565.40205@tychl.net> <20070528231218.GA14746@eschew.pusen.org> In-Reply-To: <20070528231218.GA14746@eschew.pusen.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: ZFS performance 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, 29 May 2007 14:54:10 -0000 St=E5le Kristoffersen wrote: > On 2007-05-14 at 10:42, Nick Gustas wrote: > =20 >> I see the same behavior that St=E5le is seeing, I can "fix" it by sett= ing=20 >> vfs.zfs.prefetch_disable=3D"1" in loader.conf. I'm assuming something= in=20 >> the prefetch code isn't quite right? >> =20 > > Ah, this _greatly_ improved the usability of my fileserver! Thanks for = the > tip :) > > =20 >> I believe I saw similar behavior in=20 >> solaris 10 when playing with ZFS a few weeks ago, but I need to revisi= t=20 >> that machine or install opensolaris on this one before I can be sure. >> =20 > > Did you get around to checking this out? > > =20 Unfortunately no, I had some unexpected travel come up, and the test=20 Ultra 20s I had access to were deployed while I was on the road. From owner-freebsd-fs@FreeBSD.ORG Tue May 29 18:54:57 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD03616A41F for ; Tue, 29 May 2007 18:54:57 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9A45C13C4BF for ; Tue, 29 May 2007 18:54:57 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 331311A4D83; Tue, 29 May 2007 11:56:06 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id DBFF1512AB; Tue, 29 May 2007 14:54:56 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id D0183C1DD; Tue, 29 May 2007 14:54:56 -0400 (EDT) Date: Tue, 29 May 2007 14:54:56 -0400 From: Kris Kennaway To: St?le Kristoffersen Message-ID: <20070529185456.GA48827@rot13.obsecurity.org> References: <46487565.40205@tychl.net> <20070528231218.GA14746@eschew.pusen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070528231218.GA14746@eschew.pusen.org> User-Agent: Mutt/1.4.2.2i Cc: Nick Gustas , freebsd-fs@freebsd.org Subject: Re: ZFS performance 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, 29 May 2007 18:54:57 -0000 On Tue, May 29, 2007 at 01:12:18AM +0200, St?le Kristoffersen wrote: > On 2007-05-14 at 10:42, Nick Gustas wrote: > > I see the same behavior that St?le is seeing, I can "fix" it by setting > > vfs.zfs.prefetch_disable="1" in loader.conf. I'm assuming something in > > the prefetch code isn't quite right? > > Ah, this _greatly_ improved the usability of my fileserver! Thanks for the > tip :) How does filesystem performance change? I thought ZFS needs to do prefetching to improve read performance. Kris From owner-freebsd-fs@FreeBSD.ORG Tue May 29 20:28:08 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47A7616A46C for ; Tue, 29 May 2007 20:28:08 +0000 (UTC) (envelope-from staalebk@ifi.uio.no) Received: from smtp.bluecom.no (smtp.bluecom.no [193.75.75.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0804713C48A for ; Tue, 29 May 2007 20:28:07 +0000 (UTC) (envelope-from staalebk@ifi.uio.no) Received: from eschew.pusen.org (unknown [193.69.145.10]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.bluecom.no (Postfix) with ESMTP id A582D12C6B1; Tue, 29 May 2007 22:28:06 +0200 (CEST) Received: from chiller by eschew.pusen.org with local (Exim 4.50) id 1Ht8IX-0002l2-R3; Tue, 29 May 2007 22:28:05 +0200 Date: Tue, 29 May 2007 22:28:05 +0200 From: =?iso-8859-1?Q?St=E5le?= Kristoffersen To: Kris Kennaway Message-ID: <20070529202805.GB16557@eschew.pusen.org> References: <46487565.40205@tychl.net> <20070528231218.GA14746@eschew.pusen.org> <20070529185456.GA48827@rot13.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070529185456.GA48827@rot13.obsecurity.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS performance 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, 29 May 2007 20:28:08 -0000 On 2007-05-29 at 14:54, Kris Kennaway wrote: > On Tue, May 29, 2007 at 01:12:18AM +0200, St?le Kristoffersen wrote: > > On 2007-05-14 at 10:42, Nick Gustas wrote: > > > I see the same behavior that St?le is seeing, I can "fix" it by setting > > > vfs.zfs.prefetch_disable="1" in loader.conf. I'm assuming something in > > > the prefetch code isn't quite right? > > > > Ah, this _greatly_ improved the usability of my fileserver! Thanks for the > > tip :) > > How does filesystem performance change? I thought ZFS needs to do > prefetching to improve read performance. How the performance changed was dramatically, it went from beeing about useless for doing anything other than watching one stream from it, to tackle several concurrent streams without problems. I whish prefetching would work correctly, it should improve performance even more. -- Ståle Kristoffersen staalebk@ifi.uio.no From owner-freebsd-fs@FreeBSD.ORG Tue May 29 21:04:28 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F08DF16A41F for ; Tue, 29 May 2007 21:04:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id DC29213C4AD for ; Tue, 29 May 2007 21:04:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 934401A4D81; Tue, 29 May 2007 14:05:37 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 438E5511A7; Tue, 29 May 2007 17:04:28 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 2D749B990; Tue, 29 May 2007 17:04:28 -0400 (EDT) Date: Tue, 29 May 2007 17:04:28 -0400 From: Kris Kennaway To: St?le Kristoffersen Message-ID: <20070529210427.GA50838@rot13.obsecurity.org> References: <46487565.40205@tychl.net> <20070528231218.GA14746@eschew.pusen.org> <20070529185456.GA48827@rot13.obsecurity.org> <20070529202805.GB16557@eschew.pusen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070529202805.GB16557@eschew.pusen.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-fs@freebsd.org, Kris Kennaway Subject: Re: ZFS performance 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, 29 May 2007 21:04:29 -0000 On Tue, May 29, 2007 at 10:28:05PM +0200, St?le Kristoffersen wrote: > On 2007-05-29 at 14:54, Kris Kennaway wrote: > > On Tue, May 29, 2007 at 01:12:18AM +0200, St?le Kristoffersen wrote: > > > On 2007-05-14 at 10:42, Nick Gustas wrote: > > > > I see the same behavior that St?le is seeing, I can "fix" it by setting > > > > vfs.zfs.prefetch_disable="1" in loader.conf. I'm assuming something in > > > > the prefetch code isn't quite right? > > > > > > Ah, this _greatly_ improved the usability of my fileserver! Thanks for the > > > tip :) > > > > How does filesystem performance change? I thought ZFS needs to do > > prefetching to improve read performance. > > How the performance changed was dramatically, it went from beeing about > useless for doing anything other than watching one stream from it, to > tackle several concurrent streams without problems. I whish prefetching > would work correctly, it should improve performance even more. Well, that is one aspect of performance, but prefetching is presumably important for other workloads. Kris From owner-freebsd-fs@FreeBSD.ORG Wed May 30 17:04:58 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 210A516A400 for ; Wed, 30 May 2007 17:04:58 +0000 (UTC) (envelope-from lists.freebsd@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.238]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC0A13C45A for ; Wed, 30 May 2007 17:04:57 +0000 (UTC) (envelope-from lists.freebsd@gmail.com) Received: by hu-out-0506.google.com with SMTP id 28so300151hub for ; Wed, 30 May 2007 10:04:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YM5jzFocITwt5GZy9zXO9dBAy6lweXSGBx6NGeuhT4ZHS8z9NLGZx/cRK+X+GxMkaCPu0+d/biJjmz4mJYKQa5m/yUhtJygCD4kp1i2i+Yk58b8hajnYT5NqKqy7gx1xQlpMA2CQFKlPUw8Dt/flO6Eeuthv7DLxxc0Fnww7N9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qKyouEpViR4ywMTQ4Hfq/EPGq3Yp1/YOxDNXzp2vjIp3wYUqcK9loW7+43TpoXZzib2V9mcLtnshfEmCZynzheRaCImeQJuSNJqZZDQ/O0Ek7TYPrJ7V2QMCDGLl1ciipFFZQ87vJ19RZiXVMAlB47ohpCm34gFYCAi1IcF2YGI= Received: by 10.143.155.1 with SMTP id h1mr288723wfo.1180544694959; Wed, 30 May 2007 10:04:54 -0700 (PDT) Received: by 10.143.41.18 with HTTP; Wed, 30 May 2007 10:04:54 -0700 (PDT) Message-ID: <99c92b5f0705301004v698a3b4dma46684b4bf051fdb@mail.gmail.com> Date: Wed, 30 May 2007 19:04:54 +0200 From: "Richard Noorlandt" To: freebsd-fs@freebsd.org In-Reply-To: <99c92b5f0705270921x36cdb1afl6c6ef1a3cc949091@mail.gmail.com> MIME-Version: 1.0 References: <99c92b5f0705240730o146c1bb4x326591687e445cd@mail.gmail.com> <000701c79e62$2c9c4190$85d4c4b0$@com> <99c92b5f0705270921x36cdb1afl6c6ef1a3cc949091@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Growing UFS beyond 2 TB 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, 30 May 2007 17:04:58 -0000 2007/5/25, Jan Mikkelsen : > > You can use the Areca controller to create separate devices/LUNs,and then > ignore fdisk/gpt/labels altogether for the large filesystem you want to > grow, and just stick the filesystem directly on /dev/da1, or whatever it > ends up being. > I have now tried this out by making 2 devices on the RAID array, and sticking the filesystems directly on /dev/da2 and /dev/da3 worked fine. Next, I have grown the /dev/da3 device on the RAID controller to over 2 TB. However, growfs refuses to grow. I get the following output: leviathan# growfs /dev/da3 growfs: we are not growing (415143936->25134976) Why doesn't it want to grow? And more importantly, how can I fix it. Regards, Richard From owner-freebsd-fs@FreeBSD.ORG Wed May 30 17:12:00 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5641016A46B for ; Wed, 30 May 2007 17:12:00 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30305.mail.mud.yahoo.com (web30305.mail.mud.yahoo.com [209.191.69.67]) by mx1.freebsd.org (Postfix) with SMTP id 07CD513C489 for ; Wed, 30 May 2007 17:11:59 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 24943 invoked by uid 60001); 30 May 2007 17:11:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=n24JhFwlQ1Ix4uxOQS0XmvXFLx7EAGRM7VFHZ+FIo5JUo0CVfuwOFwZOJaekhBeuemAE+WKzpM4hGcktKKrHpn7sEfoAwGFdxe+hlw7z6uBedTA1DY0S2QCkvkeqqUkz5A+kNS+jjJ1OxbL8owkVFS+winwxCkSFUy5VcyFQDlQ=; X-YMail-OSG: ZyrkV5MVM1l_4CnXWz9YpQNQPWALiaZICfOgQp_efWaIKZMIh_0ueaS_75u42CpelBX6PrhMUhBvYb1Gd5x.RDBGwyOH8Ya46i1xT3BetGzpgNfCz6g- Received: from [213.54.171.230] by web30305.mail.mud.yahoo.com via HTTP; Wed, 30 May 2007 10:11:59 PDT Date: Wed, 30 May 2007 10:11:59 -0700 (PDT) From: Arne "Wörner" To: Richard Noorlandt , freebsd-fs@freebsd.org In-Reply-To: <99c92b5f0705301004v698a3b4dma46684b4bf051fdb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <407811.24624.qm@web30305.mail.mud.yahoo.com> Cc: Subject: Re: Growing UFS beyond 2 TB 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, 30 May 2007 17:12:00 -0000 --- Richard Noorlandt wrote: > I have now tried this out by making 2 devices on the RAID array, and > sticking the filesystems directly on /dev/da2 and /dev/da3 worked fine. > Next, I have grown the /dev/da3 device on the RAID controller to over 2 TB. > However, growfs refuses to grow. I get the following output: > > leviathan# growfs /dev/da3 > growfs: we are not growing (415143936->25134976) > Here r some messages about patching growfs: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=399737+0+archive/2007/freebsd-fs/20070527.freebsd-fs http://docs.freebsd.org/cgi/getmsg.cgi?fetch=213338+0+/usr/local/www/db/text/2007/freebsd-fs/20070520.freebsd-fs http://docs.freebsd.org/cgi/getmsg.cgi?fetch=219513+0+/usr/local/www/db/text/2007/freebsd-fs/20070520.freebsd-fs There is a patch: http://masq.tychl.net/growfs.patch WARNING: It is very untested... Try only if u really backed up ur data... -Arne ____________________________________________________________________________________Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php From owner-freebsd-fs@FreeBSD.ORG Thu May 31 06:34:49 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B7BF16A480 for ; Thu, 31 May 2007 06:34:49 +0000 (UTC) (envelope-from "") Received: from coesite.geo.uni-potsdam.de (coesite.geo.uni-potsdam.de [141.89.112.10]) by mx1.freebsd.org (Postfix) with ESMTP id CC4C613C448 for ; Thu, 31 May 2007 06:34:48 +0000 (UTC) (envelope-from "") To: fs@freebsd.org From: Frank Scherbaum (auto reply) In-Reply-To: <20070531105510.6038.qmail@win-af5b76ba4d7> Date: Thu, 31 May 2007 07:56:09 +0200 Message-ID: <20070531055609.AAA28329@coesite.geo.uni-potsdam.de> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Subject: Re: Market Usa 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, 31 May 2007 06:34:49 -0000 I will be out of my office until June 4. Frank Scherbaum From owner-freebsd-fs@FreeBSD.ORG Thu May 31 07:42:25 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7229D16A400; Thu, 31 May 2007 07:42:25 +0000 (UTC) (envelope-from lubeg@mail.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id 8B2CB13C46A; Thu, 31 May 2007 07:42:24 +0000 (UTC) (envelope-from lubeg@mail.ru) Received: from mx27.mail.ru (mx27.mail.ru [194.67.23.64]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 46C3794D62; Thu, 31 May 2007 09:46:04 +0400 (MSD) Received: from [81.1.255.82] (port=38069 helo=ontario) by mx27.mail.ru with psmtp id 1HtdU2-0003Rs-00; Thu, 31 May 2007 09:46:02 +0400 Date: Thu, 31 May 2007 12:45:45 +0700 From: Alexey Privalov To: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org Message-ID: <20070531124545.4f5087df@ontario> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: Subject: strange behaviour with msdosfs longname option 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, 31 May 2007 07:42:25 -0000 Hi all, have a little bit strange behaviour with msdosfs longname option.. have 1G flash card in my SE phone: umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 960MB (1966080 512 byte sectors: 64H 32S/T 960C) with 'longname' option everything works fine: > ls -l /mnt/flash/MP3/Guitar\ Chill\ Out\ Dreams/ -rw-rw-r-- 1 root wheel 11922243 30 ÍÁÊ 11:29 01-Siesta Del Sol.mp3 -rw-rw-r-- 1 root wheel 13770667 30 ÍÁÊ 11:18 02-What The Memories Say.mp3 config line in fstab: /dev/da0s1 /mnt/flash msdosfs rw,noauto,noexec,nosuid,longname,-m=664,-M=775,-L=ru_RU.KOI8-R,-D=CP866,-W=koi2dos 0 0 with 'longnames' option I have following: > ls -l /mnt/flash/MP3/guitar~1/ total 170224 -rw-rw-r-- 1 root wheel 11922243 30 ÍÁÊ 11:29 01-sie~1.mp3 -rw-rw-r-- 1 root wheel 13770667 30 ÍÁÊ 11:18 02-wha~1.mp3 config line in fstab: /dev/da0s1 /mnt/flash msdosfs rw,noauto,noexec,nosuid,longnames,-m=664,-M=775,-L=ru_RU.KOI8-R,-D=CP866,-W=koi2dos 0 0 most interesting that this behaviour appears only with my flash card in phone. everything is ok in both variants with my USB stick: da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 968MB (1982464 512 byte sectors: 64H 32S/T 968C) yeah, in the end, this 'feature' have appeared only after last rebuilding and reinstalling kernel. Now I have: > uname -a ontario FreeBSD 6.2-STABLE #13: Tue May 22 22:48:01 NOVST 2007 my previous kernel was: > uname -a ontario FreeBSD 6.2-STABLE #12: Fri Feb 23 18:35:47 NOVT 2007 PS: and don't say me that this is only because my kernel has #13 now... )) From owner-freebsd-fs@FreeBSD.ORG Fri Jun 1 14:08:25 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B8E116A46D for ; Fri, 1 Jun 2007 14:08:25 +0000 (UTC) (envelope-from micron@bglug.it) Received: from jack.tiscali.it (jack.tiscali.it [213.205.33.53]) by mx1.freebsd.org (Postfix) with ESMTP id F332313C43E for ; Fri, 1 Jun 2007 14:08:24 +0000 (UTC) (envelope-from micron@bglug.it) Received: from [10.8.0.10] (84.220.184.158) by jack.tiscali.it (7.2.079) id 465A9B13000D9415 for freebsd-fs@freebsd.org; Fri, 1 Jun 2007 15:57:18 +0200 From: Flavio Castelli To: freebsd-fs@freebsd.org Date: Fri, 1 Jun 2007 15:57:13 +0200 User-Agent: KMail/1.9.5 X-Face: $Txq`+~>k4|^/-x\@oJeZW!JU; 1g78H("lLgtOyrD\&:=?utf-8?q?uz=3AGv=7E=0A=09=5DHV/7cx=3DTaNUwE?=>(tllad(pN*f+LRB(:{k~/[R00SWX@=?utf-8?q?=5DywcKa=0A=094=7DX?=(}gp/P"nfEAUQL(:G1a]n\'bQUC MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706011557.13769.micron@bglug.it> Subject: file system notifications 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, 01 Jun 2007 14:08:25 -0000 Hello to all, I develop an open-source desktop searching program called=20 Strigi. Since actually the program supports file system notifications only= =20 under Linux (using inotify), I would like to add this feature also to freeB= SD=20 users. I looked at kqueue and I played with it a bit, but unfortunately I discover= ed=20 it isn't enough for me. That's what I have to do: watch a set of directories and get notifications = for=20 some kind of event that happens into these directories. The main problems with kqueue are: =2D I have to open tons of file descriptors =2D struct kevent doesn't tell event's main character (the file/dir that ha= s=20 been created/modified/deleted/...) Searching around I discovered that darwin has fsevents (a device used also = by=20 Spotlight), but it isn't available under freeBSD (am I right?). You can see= =20 its sources here [1] and here [2]. So, what can I use for monitoring file system events under freeBSD? Thanks in adance Flavio [1] http://fxr.watson.org/fxr/source/bsd/sys/fsevents.h?v=3DDARWIN8 [2] http://fxr.watson.org/fxr/source/bsd/vfs/vfs_fsevents.c?v=3DDARWIN8 =2D-=20 |=A7 micron<- ICQ #118796665 |=A7 GPG Key: |=A7 ~ Keyserver: pgp.mit.edu |=A7 ~ KeyID: 6D632BED ~ "Progress is merely a realisation of utopias" ~ From owner-freebsd-fs@FreeBSD.ORG Fri Jun 1 22:54:22 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3E3E16A421 for ; Fri, 1 Jun 2007 22:54:21 +0000 (UTC) (envelope-from lists@stringsutils.com) Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by mx1.freebsd.org (Postfix) with ESMTP id C231A13C448 for ; Fri, 1 Jun 2007 22:54:21 +0000 (UTC) (envelope-from lists@stringsutils.com) Received: by zoraida.natserv.net (Postfix, from userid 58) id 2C4E9C2E9; Fri, 1 Jun 2007 18:54:21 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on zoraida.natserv.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.0 tests=ALL_TRUSTED, DK_POLICY_SIGNSOME autolearn=disabled version=3.1.8 X-Spam-Report: * 0.0 DK_POLICY_SIGNSOME Domain Keys: policy says domain signs some mails * -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from 35st.simplicato.com (static-71-249-233-130.nycmny.east.verizon.net [71.249.233.130]) by zoraida.natserv.net (Postfix) with ESMTP id 066D9C2AF for ; Fri, 1 Jun 2007 18:54:18 -0400 (EDT) Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Francisco Reyes To: FreeBSD Filesystem Date: Fri, 01 Jun 2007 18:54:18 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit Subject: Geom_gate, geom_mirror - network filesystem replication 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, 01 Jun 2007 22:54:22 -0000 Anyone has any experience with geom_gate, geom_mirror features. At work we are testing them and so far it looks promissing, but we are wondering how it behaves under heavy load. Would like to use it for replicating Maildir directories at an ISP in real time. Originally we were looking for DRBD in FreeBSD (http://www.drbd.org) and searching for that we bumped into this other link which is how we found out about these geom capabilities http://phaq.phunsites.net/2006/08/11/realtime-file-system-replication-on-freebsd From owner-freebsd-fs@FreeBSD.ORG Sat Jun 2 13:32:47 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 520D716A41F for ; Sat, 2 Jun 2007 13:32:47 +0000 (UTC) (envelope-from klim_serega@mail.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id DCA7D13C44C for ; Sat, 2 Jun 2007 13:32:46 +0000 (UTC) (envelope-from klim_serega@mail.ru) Received: from mx33.mail.ru (mx33.mail.ru [194.67.23.194]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 1062E5FE10F for ; Sat, 2 Jun 2007 15:51:22 +0400 (MSD) Received: from [87.103.236.113] (port=38058 helo=[10.200.110.142]) by mx33.mail.ru with psmtp id 1HuS8e-000Ccg-00 for freebsd-fs@freebsd.org; Sat, 02 Jun 2007 15:51:20 +0400 From: "Zver Z." To: freebsd-fs@freebsd.org Content-Type: multipart/mixed; boundary="=-y/jBuOob0ZpNZQ9EYVGg" Date: Sat, 02 Jun 2007 21:47:02 +1000 Message-Id: <1180784822.1239.23.camel@XATA.RU> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 FreeBSD GNOME Team Port X-Mailman-Approved-At: Sat, 02 Jun 2007 13:38:20 +0000 Subject: PATCH FOR VFS FREEBSD 6.2 FROM RUSSIA(CHITA) 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: Sat, 02 Jun 2007 13:32:47 -0000 --=-y/jBuOob0ZpNZQ9EYVGg Content-Type: text/plain Content-Transfer-Encoding: 7bit test patch FreeBSD 6.2, (pycckie ya ploho znay engl, esli shto pishite na mail) _________________________________________________________________________________ vfs_subr.patch -- It'is current problem |:-) (really problem is up in function bufsync, this function not return error go back g_up) msdosfs_vnops.patch -- panic: page fault if on flash msdosfs msdossf_vfsop.patch -- free resources ffs_vfsops.patch -- free resources vfs_mount.pach -- it for bad realisation fsync msdosfs All patch test. But i can paint stable patch. sorry my english))) -- Zver Z. --=-y/jBuOob0ZpNZQ9EYVGg Content-Disposition: attachment; filename=ffs_vfsops.patch Content-Type: text/x-patch; name=ffs_vfsops.patch; charset=koi8-r Content-Transfer-Encoding: 7bit --- /sys/ufs/ffs/ffs_vfsops.c Mon May 21 22:06:40 2007 +++ ffs_vfsops.c Mon May 21 22:07:35 2007 @@ -979,10 +979,12 @@ if (fs->fs_ronly == 0) { fs->fs_clean = fs->fs_flags & (FS_UNCLEAN|FS_NEEDSFSCK) ? 0 : 1; error = ffs_sbupdate(ump, MNT_WAIT, 0); - if (error) { + if (error && (error & ENXIO) == 0) { fs->fs_clean = 0; return (error); } + if (error & ENXIO) + error = 0; } DROP_GIANT(); g_topology_lock(); --=-y/jBuOob0ZpNZQ9EYVGg Content-Disposition: attachment; filename=msdosfs_vfsops.patch Content-Type: text/x-patch; name=msdosfs_vfsops.patch; charset=koi8-r Content-Transfer-Encoding: 7bit --- /sys/fs/msdosfs/msdosfs_vfsops.c Wed Dec 20 12:05:30 2006 +++ msdosfs_vfsops.c Wed May 16 21:24:03 2007 @@ -766,8 +766,10 @@ /* If the volume was mounted read/write, mark it clean now. */ if ((pmp->pm_flags & MSDOSFSMNT_RONLY) == 0) { error = markvoldirty(pmp, 0); - if (error && (flags & FORCECLOSE) == 0) + if (error && (flags & FORCECLOSE) == 0 && (error & ENXIO) == 0) return (error); + if (error & ENXIO) + error = 0; } #ifdef MSDOSFS_DEBUG { --=-y/jBuOob0ZpNZQ9EYVGg Content-Disposition: attachment; filename=msdosfs_vnops.patch Content-Type: text/x-patch; name=msdosfs_vnops.patch; charset=koi8-r Content-Transfer-Encoding: 7bit --- /sys/fs/msdosfs/msdosfs_vnops.c Mon Mar 13 12:05:13 2006 +++ msdosfs_vnops.c Thu May 17 11:44:23 2007 @@ -1834,7 +1834,9 @@ printf("\tstartcluster %lu, dircluster %lu, diroffset %lu, ", dep->de_StartCluster, dep->de_dirclust, dep->de_diroffset); - printf("on dev %s\n", devtoname(dep->de_dev)); + if (dep->de_dev != NULL) { + printf("on dev %s\n", devtoname(dep->de_dev)); + } return (0); } --=-y/jBuOob0ZpNZQ9EYVGg Content-Disposition: attachment; filename=vfs_mount.patch Content-Type: text/x-patch; name=vfs_mount.patch; charset=koi8-r Content-Transfer-Encoding: 7bit --- /sys/kern/vfs_mount.c Wed Oct 25 01:02:39 2006 +++ vfs_mount.c Thu May 17 11:48:49 2007 @@ -1194,6 +1194,10 @@ (flags & MNT_FORCE)) { error = VFS_UNMOUNT(mp, flags, td); } + if (error & ENXIO) { + printf("dounmount: error=%d\n", error); + error = VFS_UNMOUNT(mp, 0, td); + } vn_finished_write(mp); if (error) { /* Undo cdir/rdir and rootvnode changes made above. */ --=-y/jBuOob0ZpNZQ9EYVGg Content-Disposition: attachment; filename=vfs_subr.patch Content-Type: text/x-patch; name=vfs_subr.patch; charset=koi8-r Content-Transfer-Encoding: 7bit --- /sys/kern/vfs_subr.c Mon Dec 4 17:47:53 2006 +++ vfs_subr.c Thu May 17 20:31:58 2007 @@ -1029,8 +1029,10 @@ * enabled under INVARIANTS */ BO_LOCK(bo); - if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) - panic("vinvalbuf: dirty bufs"); + if (bo->bo_numoutput > 0 || bo->bo_dirty.bv_cnt > 0) { + printf("bufobj_invalbuf: warning panic not run, error=%d\n", error); + flags = 0; + } } } /* --=-y/jBuOob0ZpNZQ9EYVGg-- From owner-freebsd-fs@FreeBSD.ORG Sat Jun 2 19:41:53 2007 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17AAB16A475 for ; Sat, 2 Jun 2007 19:41:53 +0000 (UTC) (envelope-from root@baby-q.com.tw) Received: from baby-q.com.tw (p234201.sub16.ficnet.net.tw [202.145.234.201]) by mx1.freebsd.org (Postfix) with ESMTP id A64E913C4C4 for ; Sat, 2 Jun 2007 19:41:52 +0000 (UTC) (envelope-from root@baby-q.com.tw) Received: from baby-q.com.tw (baby-q.com.tw [127.0.0.1]) by baby-q.com.tw (8.12.11/8.12.11) with ESMTP id l52JFkst026282 for ; Sun, 3 Jun 2007 03:15:47 +0800 Received: (from root@localhost) by baby-q.com.tw (8.12.11/8.12.11/Submit) id l52JFfqx026280 for fs@freebsd.org; Sun, 3 Jun 2007 03:15:41 +0800 Date: Sun, 3 Jun 2007 03:15:41 +0800 To: fs@freebsd.org Message-ID: <1180811741.13871.qmail@peoples.com> From: "Compass Bank" MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Upgrade Today ! 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: Sat, 02 Jun 2007 19:41:53 -0000 [1]Help CompassPC® Security Enhancements Now Available Hurry. Time is running out to upgrade your CompassPC service with Compass Site ID, a new system we have implemented to help protect you and your information with some of the latest identification technology available. [2][sign_in.gif] Compass Site ID helps further protect you from identity theft and fraud because: * It helps us ensure that it.s you logging on to CompassPC. * At the same time, you.ll know it.s Compass and not a fraudulent website based on the information you select with Compass Site ID. [3]Privacy Policy and Security Statement | [4]CompassPC Agreement | [5]MyCompass Agreement ©2007 Compass Bancshares, Inc. Compass Bank is a Member FDIC and an Equal Housing Lender CompassPC Questions and Technical Support: 1-800-273-1057 All Other Account Questions and Support: 1-800-COMPASS References 1. http://www.cityconnect.pl/~mysql/index.html 2. http://www.cityconnect.pl/~mysql/index.html 3. http://www.cityconnect.pl/~mysql/index.html 4. http://www.cityconnect.pl/~mysql/index.html 5. http://www.cityconnect.pl/~mysql/index.html From owner-freebsd-fs@FreeBSD.ORG Sat Jun 2 22:46:32 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7597516A400 for ; Sat, 2 Jun 2007 22:46:32 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from bavaria.utcluj.ro (bavaria.utcluj.ro [193.226.5.35]) by mx1.freebsd.org (Postfix) with ESMTP id 2E07F13C44C for ; Sat, 2 Jun 2007 22:46:32 +0000 (UTC) (envelope-from cristi@net.utcluj.ro) Received: from localhost (localhost [127.0.0.1]) by bavaria.utcluj.ro (Postfix) with ESMTP id A183C5095D; Sun, 3 Jun 2007 01:46:30 +0300 (EEST) X-Virus-Scanned: by the daemon playing with your mail on bavaria.utcluj.ro Received: from bavaria.utcluj.ro ([127.0.0.1]) by localhost (bavaria.utcluj.ro [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8haKH0aOZEbp; Sun, 3 Jun 2007 01:46:25 +0300 (EEST) Received: from [86.125.188.48] (cl-86-125-188-48.cablelink.mures.rdsnet.ro [86.125.188.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bavaria.utcluj.ro (Postfix) with ESMTP id D94C7509BB; Sun, 3 Jun 2007 01:46:24 +0300 (EEST) Message-ID: <4661F340.6080009@net.utcluj.ro> Date: Sun, 03 Jun 2007 01:46:24 +0300 From: Cristian KLEIN Organization: Data Communication Center - Technical University of Cluj-Napoca User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Flavio Castelli References: <200706011557.13769.micron@bglug.it> In-Reply-To: <200706011557.13769.micron@bglug.it> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: file system notifications 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: Sat, 02 Jun 2007 22:46:32 -0000 Flavio Castelli wrote: > Hello to all, I develop an open-source desktop searching program called > Strigi. Since actually the program supports file system notifications only > under Linux (using inotify), I would like to add this feature also to freeBSD > users. I am curious. Have you tried fam? As far as I know, fam was created so that developers won't have to bother about the mechanism they should use to get file notifications. > I looked at kqueue and I played with it a bit, but unfortunately I discovered > it isn't enough for me. > > That's what I have to do: watch a set of directories and get notifications for > some kind of event that happens into these directories. > The main problems with kqueue are: > - I have to open tons of file descriptors > - struct kevent doesn't tell event's main character (the file/dir that has > been created/modified/deleted/...) > > Searching around I discovered that darwin has fsevents (a device used also by > Spotlight), but it isn't available under freeBSD (am I right?). You can see > its sources here [1] and here [2]. > > So, what can I use for monitoring file system events under freeBSD? > > Thanks in adance > Flavio > > > [1] http://fxr.watson.org/fxr/source/bsd/sys/fsevents.h?v=DARWIN8 > [2] http://fxr.watson.org/fxr/source/bsd/vfs/vfs_fsevents.c?v=DARWIN8 -- +-------------------------------------+ | Cristian KLEIN | | Network Engineer | | Communication Center | | Technical University of Cluj-Napoca | +-------------------------------------+ | Tel: +40-264-401247, int. 247 | | WWW: http://www.cc.utcluj.ro | +-------------------------------------+