Date: Tue, 15 Jun 2010 10:59:28 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Stefan Esser <se@FreeBSD.org> Cc: fs@FreeBSD.org Subject: Re: Do we want a periodic script for a zfs scrub? Message-ID: <20100615105928.8033401bkc5krfuo@webmail.leidinger.net> In-Reply-To: <4C173693.9020603@FreeBSD.org> References: <20100609162627.11355zjzwnf7nj8k@webmail.leidinger.net> <4C0FAE2A.7050103@dataix.net> <4C0FB1DE.9080508@dataix.net> <20100610115324.10161biomkjndvy8@webmail.leidinger.net> <AANLkTin445x53XTprCkn1ISmVrnJeSu1XhR52tmtUfkS@mail.gmail.com> <20100610173825.164930ekkryr5tes@webmail.leidinger.net> <AANLkTilech-Onkawu4pvNQx5hrByd3R-Mn6MK4AiSHsc@mail.gmail.com> <4C1138D0.7070901@dataix.net> <20100611104219.51344ag1ah7br4kk@webmail.leidinger.net> <4C137ACE.9080900@dataix.net> <20100615095330.89843jrd13kffdkw@webmail.leidinger.net> <4C173693.9020603@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Stefan Esser <se@FreeBSD.org> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100615105928.8033401bkc5krfuo>