Re: TAR Error - 'Invalid block size'
| From: | Ray Hunter | Date: | Tue, 23 Sep 2003 14:18:28 +0000 |
| Subject: | Re: TAR Error - 'Invalid block size' | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163589@lists.php.net to get a copy of this message | ||
> > I use the TAR.php file for extract tar.gz file. The tar file extracted
> > fine, but the tar class raises the 'Invalid block size 351'. Why? And
> > how can I discard this error.
>
> Basically, tar writes in block sizes of 512 bytes so you are receiving
> an invalid block size smaller than 512 which has a size of 351. Not sure
> how you can suppress these messages via TAR.php. However, if you get a
> new tar files that has the blocking correct you will not receive that
> error.
You might be able to use the -B option to tar to suppress the block size
error. However, I have not tested that out before and I am not 100% sure
of the results that you will see. But possibly an option.
example:
tar -xvfB file.tar
--
BigDog