Re: [Jack-Devel] JackSession | Qjackct did rm /home

PrevNext  Index
DateFri, 17 Jun 2011 13:34:22 +0100
From Rui Nuno Capela <[hidden] at rncbc dot org>
ToPedro Alves <[hidden] at gmail dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToPedro Alves Re: [Jack-Devel] JackSession | Qjackct did rm /home
On 06/17/2011 11:02 AM, Pedro Alves wrote:
> On Friday 17 June 2011 09:05:15, Rui Nuno Capela wrote:
>> On 06/16/2011 04:11 PM, rosea grammostola wrote:
>>> Hi,
>>>
>>> As reported on IRC, there is a guy who seems to have lost his /home
>>> folder by choosing /home as session folder for a session! Pyjacksm seems
>>> to have a special folder for the sessions... wise thing...
>>>
>>
>> and this guy responded with "ok" when asked for replacing his session
>> directory "/home" ?... wise guy... :/
>
> You're kidding, right?  Everyone does mistakes once in a while.
> Deleting random files for the user is always a recipe for disaster.
>
> While not having ever used a qjackctrl with session management, I
> still can't avoid asking:
>
> Why is qjackctrl deleting a whole directory and its contents,
> instead of only deleting the files it knows about, and needs to?
> And then if it feels like removing the top specified directory,
> do it only if the directory ends up empty?
>
> Does qjackctrl warn you that it'll wipe everything under the
> directory you specify?
>
> Certainly a better way to avoid this nasty scenario can be
> devised.
>

qjackctl wipes the session directory when you are replacing a previously 
saved session directory.

i also find this outrageous but the root of the danger, so to speak, is 
*inside* the jack-session save logic and not in qjackctl.

afaic, jack (and not qjackctl) expects an empty session directory when 
saving clients states, otherwise it will fail.

one could ask why jack expects an empty session directory in the first 
place, and yes i've argued about that long ago on #jack irc. the 
argument for was that it would be a greater "danger" if it would be 
allowed to leave cruft/dead state data under the session directories. i 
just thought to my self, who cares? alas, destroying data was the argued 
solution and boy was i disgruntled too (*grin*)

and yes, qjackctl prompts the user whether he/she really wants to 
replace an existing non-empty session directory.

cheers
-- 
rncbc aka Rui Nuno Capela
[hidden]
PrevNext  Index

1308314065.4516_0.ltw:2,a <4DFB49CE.8080508 at rncbc dot org>