Bug 11389 - tar reports incorrect total bytes written on >2 gig tars.
Summary: tar reports incorrect total bytes written on >2 gig tars.
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: 4.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-04-29 20:50 UTC by Adrian Chadd
Modified: 1999-04-29 21:01 UTC (History)
0 users

See Also:


Attachments
file.diff (1.34 KB, patch)
1999-04-29 20:50 UTC, Adrian Chadd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Chadd freebsd_committer freebsd_triage 1999-04-29 20:50:00 UTC
Tar uses a int to store the bytes written count. This wraps at 2gig on the
i386 platform.

Fix: Change the counter to a u_quad_t using the following diff.
How-To-Repeat: 
Create a tar with --totals with a size over 2 gig, and watch what is reported
by tar at the end.
Comment 1 Peter Wemm freebsd_committer freebsd_triage 1999-04-29 21:00:53 UTC
State Changed
From-To: open->closed

Suggested changes applied