[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Modifying Volume Label with tar.
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] Modifying Volume Label with tar. |
Date: |
Wed, 25 May 2005 11:34:59 +0200 |
User-agent: |
nail 11.2 8/15/04 |
Helmut Waitzmann <address@hidden> wrote:
> Ralph Corderoy <address@hidden> writes:
>
> >tar -V something -cf bar.tar dummyfile
>
> >And is there any way to create a tar file with nothing but the volume
> >label, i.e. remove the need for dummyfile above?
>
> You could give
>
> $ tar -V something -cf bar.tar --files-from=/dev/null
Be careful, a conforming writes 2 zeroed 512 byte blocks at the end.
Even if a tar implementation does not open the file with O_TRUNC,
this will kill some blocks in the middle of the old
archive
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily