[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] [patch v3] Bug / question in tar
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] [patch v3] Bug / question in tar |
Date: |
Sun, 30 Mar 2014 12:56:19 +0200 |
User-agent: |
nail 11.22 3/20/05 |
Tim Kientzle <address@hidden> wrote:
> I'm curious. If someone types the following command:
>
> tar cf /dev/null some files
>
> What do you think they expect to happen?
Of course that all files are read. POSIX does not allow different behavior just
because the output is connected to a different sink.
Maybe this is why n-1 tar implenentations implement a uniform behavior.
Star implements a special documented option for the case that a user is
interested in getting the size of the archive to be created quickly.
If one user (amanda) expects side-effects, I would see this as a bug.
tar cf /dev/null some files
Is used by many people to do one of the following:
- Do speed tests for the underlying filesystem
- Give the OS the opportunity to cache data and meta data
- Make sure that all data and meta data in a filesystem is read
in order to trigger disks to do auto-reallocation on blocks
that are going to become bad.
- Make sure that all data and meta data in a filesystem is readable
Gtar does not allow this to be done easily and keep in mind that many OS
implementations have a significant performance loss when using pipes.
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/private/ ftp://ftp.berlios.de/pub/schily
- Re: [Bug-tar] [patch v3] Bug / question in tar, (continued)
- Re: [Bug-tar] [patch v3] Bug / question in tar, Joerg Schilling, 2014/03/26
- Re: [Bug-tar] [patch v3] Bug / question in tar, Paul Eggert, 2014/03/26
- Re: [Bug-tar] [patch v3] Bug / question in tar, Tim Kientzle, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Paul Eggert, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Tim Kientzle, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Gene Heskett, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Paul Eggert, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Eric Blake, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar, Joerg Schilling, 2014/03/30
- Re: [Bug-tar] [patch v3] Bug / question in tar, Nathan Stratton Treadway, 2014/03/29
- Re: [Bug-tar] [patch v3] Bug / question in tar,
Joerg Schilling <=
- Re: [Bug-tar] [patch v3] Bug / question in tar, Karl Berry, 2014/03/27
- Re: [Bug-tar] [patch v3] Bug / question in tar, Sergey Poznyakoff, 2014/03/27
- Re: [Bug-tar] Bug / question in tar, Eric Blake, 2014/03/13
- Re: [Bug-tar] Bug / question in tar, Antonio Diaz Diaz, 2014/03/13
Re: [Bug-tar] Bug / question in tar, Pavel Raiskup, 2014/03/12