From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 14 Jan 2006 13:22:57 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] tarfs & 2GB limit In-Reply-To: <20060114121550.4FD0134FFB@dexter-peak.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060113164151.ED27C35076@dexter-peak.quanstro.net> <20060114121550.4FD0134FFB@dexter-peak.quanstro.net> Topicbox-Message-UUID: d7074cc4-ead0-11e9-9d60-3106f5b1d025 > one question, with tpfs, there's a cast to vlong: > seek(tapefile, 512*(vlong)r->data+off, 0); > i cast to (int) because the size is only 3 bytes. > is there anything drasticlly wrong with this? the cast is there not because r->data is big, but so that multiplying by 512 and adding off doesn't overflow.