Quoth [email protected]:
> Hi all,
> When a file is removed in 9front using rm, I take it that it is altogether 
> deleted and non-recoverable. In Linux one can sometimes use specialised tools 
> to recover files removed with rm. 
> 

well, on gefs, this happens:

        /sys/src/cmd/gefs/fs.c:1944:  fsremove(Fmsg *m, int id, Amsg **ao)

on hjfs, this happens:

        /sys/src/cmd/hjfs/fs1.c:923:  delete(Fs *fs, FLoc *l, Buf *b)

and on cwfs, this happens:

        /sys/src/cmd/cwfs/9p2.c:1303: doremove(File *f)

if your goal is to un-delete a file, you can run '9fs dump'
and get old revisions:

        % 9fs dump
        % ls /n/dump
        /n/dump/[email protected]_02:10:49
        /n/dump/[email protected]_08:21:24
        /n/dump/[email protected]_02:05:56
        <snip>
        /n/dump/[email protected]_03:41:01
        /n/dump/[email protected]_03:42:01
        /n/dump/[email protected]_03:43:01

gefs takes snapshots once a minute, deleting old ones;
cwfs does them nightly; I don't remember what hjfs does,
but I think it depends on cron.


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T0c7edd96d131231e-M37ae25be8965a44df1c0ab34
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to