forked from robur/blog.robur.coop
gptar-update.md: Add shell language
This commit is contained in:
parent
0aadded352
commit
c2aeb492ec
1 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ This prompted me to [use a different link indicator](https://github.com/reynir/g
|
||||||
This worked pretty great.
|
This worked pretty great.
|
||||||
Listing the archive using GNU tar I still get `GPTAR`, but with verbose listing it's displayed as a `--Volume Header--`:
|
Listing the archive using GNU tar I still get `GPTAR`, but with verbose listing it's displayed as a `--Volume Header--`:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
$ tar -tvf disk.img
|
$ tar -tvf disk.img
|
||||||
Vr-------- 0/0 16896 1970-01-01 01:00 GPTAR--Volume Header--
|
Vr-------- 0/0 16896 1970-01-01 01:00 GPTAR--Volume Header--
|
||||||
-rw-r--r-- 0/0 14 1970-01-01 01:00 test.txt
|
-rw-r--r-- 0/0 14 1970-01-01 01:00 test.txt
|
||||||
|
@ -37,7 +37,7 @@ Vr-------- 0/0 16896 1970-01-01 01:00 GPTAR--Volume Header--
|
||||||
|
|
||||||
And more importantly the `GPTAR` entry is ignored when extracting:
|
And more importantly the `GPTAR` entry is ignored when extracting:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
$ mkdir tmp
|
$ mkdir tmp
|
||||||
$ cd tmp/
|
$ cd tmp/
|
||||||
$ tar -xf ../disk.img
|
$ tar -xf ../disk.img
|
||||||
|
@ -49,7 +49,7 @@ test.txt
|
||||||
|
|
||||||
Unfortunately, this broke bsdtar!
|
Unfortunately, this broke bsdtar!
|
||||||
|
|
||||||
```
|
```shell
|
||||||
$ bsdtar -tf disk.img
|
$ bsdtar -tf disk.img
|
||||||
bsdtar: Damaged tar archive
|
bsdtar: Damaged tar archive
|
||||||
bsdtar: Error exit delayed from previous errors.
|
bsdtar: Error exit delayed from previous errors.
|
||||||
|
@ -62,7 +62,7 @@ Unacceptable!
|
||||||
So I started to dig into libarchive where bsdtar comes from.
|
So I started to dig into libarchive where bsdtar comes from.
|
||||||
To my surprise, after building bsdtar from the git clone of the source code it ran perfectly fine!
|
To my surprise, after building bsdtar from the git clone of the source code it ran perfectly fine!
|
||||||
|
|
||||||
```
|
```shell
|
||||||
$ ./bsdtar -tf ../gptar/disk.img
|
$ ./bsdtar -tf ../gptar/disk.img
|
||||||
test.txt
|
test.txt
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue