как исправить ошибку «tar :Не удается проверить сжатые архивы»?

Я только что обновился до последней версии (zathura 0.4.4, girara 0.3.3 )и теперь получаю:

warning: Unknown option: smooth-scroll

это, кажется, из-за изменения в girara , которое сделало плавную прокрутку всегда включенной

Похоже, теперь мы можем просто удалить эту строку из наших конфигурационных файлов!

0
11.11.2020, 01:08
1 ответ

Раздел 9.8 руководства по tar говорит:

9.8 Verifying Data as It is Stored
==================================

`-W'
`--verify'
     Attempt to verify the archive after writing.

   This option causes `tar' to verify the archive after writing it.
Each volume is checked after it is written, and any discrepancies are
recorded on the standard error output.

   Verification requires that the archive be on a back-space-able
medium.  This means pipes, some cartridge tape drives, and some other
devices cannot be verified.

Сжатый архив не возвращается -пространство -в состоянии, поэтому ошибка, которую вы получаете при попытке смешать оба варианта.

В следующих абзацах упоминается --compare, который вы должны использовать:

   One can explicitly compare an already made archive with the file
system by using the `--compare' (`--diff', `-d') option, instead of
using the more automatic `--verify' option.  *Note compare::.

   Note that these two options have a slightly different intent.  The
`--compare' option checks how identical are the logical contents of some
archive with what is on your disks, while the `--verify' option is
really for checking if the physical contents agree and if the recording
media itself is of dependable quality.  So, for the `--verify'
operation, `tar' tries to defeat all in-memory cache pertaining to the
archive, while it lets the speed optimization undisturbed for the
`--compare' option.  If you nevertheless use `--compare' for media
verification, you may have to defeat the in-memory cache yourself,
maybe by opening and reclosing the door latch of your recording unit,
forcing some doubt in your operating system about the fact this is
really the same volume as the one just written or read.

   The `--verify' option would not be necessary if drivers were indeed
able to detect dependably all write failures.  This sometimes require
many magnetic heads, some able to read after the writes occurred.  One
would not say that drivers unable to detect all cases are necessarily
flawed, as long as programming is concerned.

Используя --compareдля проверки, вы можете сделать:

tar --xz --create --verbose --file myArchive.tar.xz /patch/to/my/dir
tar --compare --file myArchive.tar.xz /patch/to/my/dir
2
18.03.2021, 22:50

Теги

Похожие вопросы