Odpověď zní, že
- výchozí nastavení ER měnit nechce z důvodů uvedneých dříve (chybí mu linux funkce pro rozeznnávání zda je disk vyjímatelný)
- přidávat nový parametr, který by umožňoval takové chování také nechce, protože každý nový přepínač znamená větší kód, potenciálně víc bugů, větší dokumentaci a horší pochopitelnost uživateli. Pokud by toto chování požadovalo vícero uživatelů, zvážil by to. V tomto případě neví.
I thought about -vp1 switch too. Bit typically I avoid adding switches
when I suspect they will be useful for very small number of users,
let's say less than 10 worldwide.
Every new switch or option makes the source code larger, increasing
potential to introduce bugs. It also makes documentation larger
and more difficult for users to comprehend. It is ok if option is needed
for noticeable amount of users, but in this case I am not certain yet.
I still have not decided how to handle it. Maybe I'll change
the default behavior of -vp switch when extracting to proposed one
and check if there are any complains. Maybe I'll also check
if next volume is opened in any other program and issue the prompt
only if it is opened, which might indicate that it is still in process
of downloading. Maybe I'll keep it as is. Need to think about it more.
Checking if file is opened by another process is rather trivial
in Windows, but again I couldn't find an universal and portable way
in Unix. Linux solutions include scanning
/proc/*/fd or calling
fcntl(fd, F_SETLEASE, F_RDLCK), which may involve access restriction
issues and hardly portable to other platforms like FreeBSD.
...
In any case I appreciate your feedback :-)