From owner-freebsd-fs@FreeBSD.ORG Tue Jun 15 08:59:36 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D3191065674; Tue, 15 Jun 2010 08:59:36 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id E45C98FC0A; Tue, 15 Jun 2010 08:59:35 +0000 (UTC) Received: from outgoing.leidinger.net (pD954FFFD.dip.t-dialin.net [217.84.255.253]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id CD7BA84405C; Tue, 15 Jun 2010 10:59:32 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 42E25556A; Tue, 15 Jun 2010 10:59:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1276592369; bh=RiMQktv1e2AyVlYfP0VrqQ0aYovi9RxbpCcspeBa2RI=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=XAkt37rhlrPAA175M4maysU3jlgSnw8RwBMMC44/+lnd8Xy1eolPxEgfqGb5ltGUV nm6thgFYZSEhP01z5RaIaLsazPTM+ljKu5q5LzWSqpSqLjy+YpNzusUp2ydmLypgcA TjEIChrIBYLoAvNS1BuVeu0++NY5mFTrFviGZR+Upq7TSI765upEYiuDZ7KqTq02Tq kkq8FrojfRp90anCBTHPR/+Fh20aq34xV1GQ44wNhm1lNJpuDClXbOTx7uJpcpHJdo hQIT/Vc5VcCq5pwLdnRiLzQfTpn1czSz9lg7hZWW62yVJ/rAA/JWguk4M7MuPH8g08 6yTXBtWEi2yHA== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o5F8xSF0027130; Tue, 15 Jun 2010 10:59:28 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 15 Jun 2010 10:59:28 +0200 Message-ID: <20100615105928.8033401bkc5krfuo@webmail.leidinger.net> Date: Tue, 15 Jun 2010 10:59:28 +0200 From: Alexander Leidinger To: Stefan Esser References: <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> <4C0FAE2A.7050103@dataix.net> <4C0FB1DE.9080508@dataix.net> <20100610115324.10161biomkjndvy8@webmail.leidinger.net> <20100610173825.164930ekkryr5tes@webmail.leidinger.net> <4C1138D0.7070901@dataix.net> <20100611104219.51344ag1ah7br4kk@webmail.leidinger.net> <4C137ACE.9080900@dataix.net> <20100615095330.89843jrd13kffdkw@webmail.leidinger.net> <4C173693.9020603@FreeBSD.org> In-Reply-To: <4C173693.9020603@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: CD7BA84405C.A88B8 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.023, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, TW_ZF 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1277197174.05752@jTgekAsDF+gtZY30sEuINw X-EBL-Spam-Status: No Cc: fs@FreeBSD.org Subject: Re: Do we want a periodic script for a zfs scrub? 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 Jun 2010 08:59:36 -0000 Quoting Stefan Esser (from Tue, 15 Jun 2010 10:15:15 +0200): > Am 15.06.2010 09:53, schrieb Alexander Leidinger: >> The question is if the integer arithmetic in shell is supposed/allowed >> to handle 64bit unsigned integers on 32bit machines or not. > > I extended expr and test (standalone binaries and /bin/sh builtins) to > handle 64 bit on i386 a looong time ago (and I also added overflow > checks to all calculations). But then it was decided, that POSIX demands > 32 bit range on 32 bit machines, so support for 64 bit range was made > conditional on a switch (expr -e if memory serves me right ...). So yes, > 64 bit range is available on all platforms. Great, I converted to expr -e and used seconds since epoch to calculate the date difference. Bye, Alexander. -- Anything worth doing is worth overdoing. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137