From: bsa@kf8nh.wariat.org (Brandon S. Allbery) Subject: Re: Undelete for linux? Date: Wed, 28 Jul 1993 15:50:46 GMT
In article <CAtuMt.K6K@fab4box.wa.com> reeses@fab4box.wa.com (Art Taylor) writes:
>In article <1993Jul26.032828.27346@cdf.toronto.edu> g1lowy@cdf.toronto.edu (David A. Lowy) writes:
>>In article <22q8i1$a1j@aggedor.rmit.OZ.AU> rcopg@minyos.xx.rmit.OZ.AU (Paul Gortmaker) writes:
>>>...I smile when I think what would happen if you used this to get rid of
>>>a 50Mb core dump... (red light, whirring sound for a few minutes ;-)
>>
>>Any smart implementation of "mv" would certainly *not* cause a few minutes
>>of "whirring" when mving any size file as long as the physical location (drive) of the file doesn't change. mv would simply rename the file.
>
>Unless you cross filesystems. An an example of this may be simpler if you
>picture a two-drive setup. Let's say on /dev/hda1, mounted as root, you have
If your saving-rm moves the file across filesystems it's broken. You're
thinking in terms of DOS-style filesystems; you can't *properly* undelete a
file with other hard links, or a file with "holes", if you cross filesystems
with the saved copy. (Granted that GNU cp can preserve holes, the point
remains.)
++Brandon
-- Brandon S. Allbery kf8nh@kf8nh.ampr.org bsa@kf8nh.wariat.org