[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21)
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21) |
Date: |
Sat, 08 Aug 2009 20:00:21 +0300 |
Hello Alexander,
Current git master implements the functionality proposed by your
posting on 2009-03-29. It is partially based on your patch.
The new behavior is as follows:
If a file or directory is removed while incremental dump is
in progress, tar exact actions depend on whether this file
was explicitly listed in the command line, or was gathered
during the file system scan.
If the file was explicitly listed in the command line, tar
issues error message and exits with the code 2, which means
fatal error.
Otherwise, if the file was gathered during the file system
scan, tar issues a warning, saying "File removed before we read it",
and sets the exit code to 1, which means "some files differ".
Additionally, if the --warning=no-file-removed option is given, no
warning is issued and exit code remains 0.
Would you please test it and inform me if it needs any further
improvements?
Thank you.
--
Sergey
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21),
Sergey Poznyakoff <=
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Solar Designer, 2009/08/08
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Sergey Poznyakoff, 2009/08/09
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Solar Designer, 2009/08/25
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Sergey Poznyakoff, 2009/08/25
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Dmitry V. Levin, 2009/08/25
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Dmitry V. Levin, 2009/08/25
- Re: [Bug-tar] error handling and exit code (patch for tar-1.20/1.21), Sergey Poznyakoff, 2009/08/27
- [Bug-tar] savedir() error handling (was: error handling and exit code (patch for tar-1.20/1.21)), Solar Designer, 2009/08/31
- Re: [Bug-tar] savedir() error handling, Jean-Louis Martineau, 2009/08/31
- Re: [Bug-tar] savedir() error handling, Sergey Poznyakoff, 2009/08/31