* OSF trashcans,problems and suggestions
@ 1993-10-06 17:38 Andrew Staniszewski
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Staniszewski @ 1993-10-06 17:38 UTC (permalink / raw)
Trashcans under OSF1 have major problems in that
1) they are not inherited by subdirectories
2) they are plauged by file nameing problems
Is it feasable to change advfs such that:
a) calls to mkdir, or some lower system call will check if
the parent directory has a trash can, and inheriets this attribute?
b) allow trashcans to be set up as a subdirectory of a current
directory, such that:
mktrashcan -R trashcan ${HOME}
setsup a trashcan subdirectory in each of directories from
${HOME} on down, ties each directory to its trashcan subdirectory?
this scheme seems to work well togather, particularly if you tie it togather
with a cleanup proceedure for cron that will remove files after so much time
from all subdirectories called trashcan. The only real change to the os is to
have the mkdir sys call check if the parent has a trashcan ...
^ permalink raw reply [flat|nested] 2+ messages in thread* re: OSF trashcans,problems and suggestions
@ 1993-10-06 23:10 "Pete Stoppani"
0 siblings, 0 replies; 2+ messages in thread
From: "Pete Stoppani" @ 1993-10-06 23:10 UTC (permalink / raw)
>>Trashcans under OSF1 have major problems in that
>>
>> 1) they are not inherited by subdirectories
>> 2) they are plauged by file nameing problems
is #2 above in reference to the caveat that
if you attach more than one directory to the
same trashcan you can get file name collisions?
one way that advfs could avoid this problem is
by tagging the files in a trashcan with the original
file's parent directory's inode number. then there
would not be file name collisions. we'll look into it.
>>
>>Is it feasable to change advfs such that:
>>
>> a) calls to mkdir, or some lower system call will check if
>> the parent directory has a trash can, and inheriets this attribute?
>>
yes this is feasible. however, others have argued
against this approach because:
1) now you have multiple directories attached to the
same trashcan and can have file name collisions.
the argument is that it is better to force the user
to make all trashcan attachments manually so they
are aware of how their trashcans are setup.
2) not all directories need trashcans. if mkdir did
the attachment then you would waste disk space
with files in the trashcan the you are not interested
in recovering.
3) system admins cringe at the thought of having automatic
trashcans because they increase the amount of disk space
used by trashcans.
you can always create a mkdir script that does the
automatic attachment of the trashcan directory.
>> b) allow trashcans to be set up as a subdirectory of a current
>> directory, such that:
>>
>> mktrashcan -R trashcan ${HOME}
how about:
find . -depth -type d -exec mt2 {} \;
where mt2 is a script containing the following (there is
probably a way to do this without a script):
mkdir $1/trashcan
mktrashcan $1/trashcan $1
>> setsup a trashcan subdirectory in each of directories from
>> ${HOME} on down, ties each directory to its trashcan subdirectory?
>>
>>
>>this scheme seems to work well togather, particularly if you tie it togather
>>with a cleanup proceedure for cron that will remove files after so much time
>>from all subdirectories called trashcan. The only real change to the os is to
>>have the mkdir sys call check if the parent has a trashcan ...
basically, the idea behind the mktrashcan command is to
provide basic (low-level) support for trashcans. that way
it is very flexible in how you can use it to setup trashcans.
it was difficult to predict how people will want to use the
trashcan feature so we made it as simple (and low-level) as
possible so that it would be useful (especially if used in
conjuction with other commands like cron and find).
we'll take your suggestions into consideration for the next
version.
thanks,
pete...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-10-06 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-10-06 17:38 OSF trashcans,problems and suggestions Andrew Staniszewski
-- strict thread matches above, loose matches on Subject: below --
1993-10-06 23:10 "Pete Stoppani"
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox