1 |
On 21.06.2007, at 15:02, josé Alberto Suárez López wrote: |
2 |
|
3 |
> nice idea :) |
4 |
> |
5 |
> El jue, 21-06-2007 a las 14:48 +0300, Philipp Riegger escribió: |
6 |
>> Good day. |
7 |
>> |
8 |
>> I though it might be nice to be able to tell gnap_make which tempdir |
9 |
>> to use. I can think of 2 scenarios where this will make sense: |
10 |
|
11 |
I'd like to discuss 2 points i'm not quite sure about. |
12 |
|
13 |
1) keeptemp: Should this be an extra option (-K) or should this be |
14 |
triggered by my introduces custom tempdir option (-T)? |
15 |
|
16 |
2) My option is quite strange since "usually" you give a tempdir |
17 |
like /var/tmp and the tool uses a subdir of that e.g. /var/tmp/gnap- |
18 |
lsdfnsdf. My approach uses the given dir directly, this is kind of |
19 |
not straight forward. Furthermore, if somebody uses a environment |
20 |
variable TEMPDIR and -T is not used, the alternative execution path |
21 |
is also used. |
22 |
|
23 |
Some possibilities what to do: |
24 |
|
25 |
To fix the environment thing, TEMPDIR can be set to '' before parsing |
26 |
command line arguments. As an alternative we could use the GNAP* |
27 |
namespace and rename it to GNAPTEMP or GNAPTEMPDIR. This would be |
28 |
easier than setting all sensitive variables to '' and if somebody |
29 |
messes with that namespace, it's not our fault. |
30 |
|
31 |
To fix 2) we could use TEMPDIR/gnap or TEMPDIR/gnap-VERSIONSTAMP in |
32 |
the -T case. anything against this? |
33 |
|
34 |
Thoughts about 1): If no overlays are used, the tempdir is quite |
35 |
small. If overlays are used, then it is bigger, but the data created |
36 |
during the snapshot creation is simply the portage snapshot and the |
37 |
overlays on top and can be found in the catalyst tempdir. So... the |
38 |
big data is never really needed and it is available at another place |
39 |
and the small data is the important one and does not hurt much. |
40 |
|
41 |
Still: Should we introduce a new command like option or create some |
42 |
logic when to delete what and when not? I would prefer 2. |
43 |
|
44 |
Philipp |