9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu, cej@gli.cas.cz
Subject: [9fans] tarfs & 2GB limit
Date: Fri, 13 Jan 2006 10:41:51 -0600	[thread overview]
Message-ID: <20060113164151.ED27C35076@dexter-peak.quanstro.net> (raw)
In-Reply-To: <ACCF003CBA3D09458207DB0CB86AD17D20153F@XMAIL.asuch.cas.cz>

this works for me on p9p. but the limit on tarball size is 1TB (512 bytes * 2GB).
i have not tested this for individual files in a tarball that are bigger than 2GB.

i've attached the diffs with the plan9 cd, excluding the p9p stuff.

- erik

; rcsdiff tapefs.h 
===================================================================
RCS file: RCS/tapefs.h,v
retrieving revision 1.1
diff -r1.1 tapefs.h
42c42
< 	long	ndata;
---
> 	vlong	ndata;
63c63
< 	long	size;
---
> 	vlong	size;
; rcsdiff tar*.c
===================================================================
RCS file: RCS/tarfs.c,v
retrieving revision 1.1
diff -r1.1 tarfs.c
38c38,39
< 	long blkno, isabs, chksum, linkflg;
---
> 	vlong blkno;
> 	long isabs, chksum, linkflg;
51c52
< 		f.addr = (void*)(blkno+1);
---
> 		f.addr = (void*)((ulong)blkno+1);
55c56
< 		f.size = strtoul(dblock.dbuf.size, 0, 8);
---
> 		f.size = strtoull(dblock.dbuf.size, 0, 8);
102c103
< 	seek(tapefile, (TBLOCK * (long)r->data)+off, 0);
---
> 	seek(tapefile, (TBLOCK * (vlong)r->data)+off, 0);

<cej@gli.cas.cz> writes

| 
| hi,
| 
| unfortunately, tarfs is apparently not able to mount >2GB tar files.
| Do you think it could be fixed easily?
| 
| thanks,
| ++pac.


  reply	other threads:[~2006-01-13 16:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-13 14:11 cej
2006-01-13 16:41 ` erik quanstrom [this message]
2006-01-13 22:33   ` geoff
2006-01-14  0:30     ` erik quanstrom
2006-01-13 22:36   ` C H Forsyth
2006-01-13 22:43     ` geoff
2006-01-14  0:03       ` erik quanstrom
2006-01-14  0:33     ` Devon H. O'Dell
2006-01-14  0:59       ` Paul Lalonde
2006-01-14  1:07         ` erik quanstrom
2006-01-14 12:15   ` erik quanstrom
2006-01-14 18:22     ` Russ Cox
2006-01-14 21:27       ` erik quanstrom
2006-01-16  2:57       ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060113164151.ED27C35076@dexter-peak.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@cse.psu.edu \
    --cc=cej@gli.cas.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).