linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Rollback FS
@ 2013-10-20  7:06 jiaweiwei
  2013-10-20  7:57 ` Richard Weinberger
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: jiaweiwei @ 2013-10-20  7:06 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: Harry Wei

Hi all,

Recently, I just do some stupid stuffs as follows.

# mv /lib/x86_64-linux-gnu/libc.so.6  /tmp

After move "/lib/x86_64-linux-gnu/libc.so.6" away, you could not run lots
of commands, which show you some errors like this.

# ls
ls: error while loading shared libraries: libc.so.6: cannot open
shared object file: No such file or directory
# mv
mv: error while loading shared libraries: libc.so.6: cannot open
shared object file: No such file or directory
...

Because they all depend on libc.so.

You could also happen to above boring stuffs when you remove some key
files in Linux OS. Now, I have a good idea to solve above problems.

We could implement a File System to record all the operations which
send to VFS. Then when you think you have done a mistake command, you
could rollback from this File System.

This is just a RFC, I would give detail implementations. Would anyone
please give me some suggestions? Thanks very much.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [RFC] Rollback FS
@ 2013-10-25 19:22 Nick Warne
  0 siblings, 0 replies; 17+ messages in thread
From: Nick Warne @ 2013-10-25 19:22 UTC (permalink / raw)
  To: linux-kernel

Hi,

> Recently, I just do some stupid stuffs as follows.
>
> # mv /lib/x86_64-linux-gnu/libc.so.6  /tmp
>
> After move "/lib/x86_64-linux-gnu/libc.so.6" away, you could not run lots
> of commands, which show you some errors like this.
>
> # ls
> ls: error while loading shared libraries: libc.so.6: cannot open
> shared object file: No such file or directory
> # mv
> mv: error while loading shared libraries: libc.so.6: cannot open
> shared object file: No such file or directory

Well we all do stupid things sometimes... I done similar to you once, but copied (and overwrote) a different version trying to fix something...

/sbin/sln is your friend (if you don't panic when it happens).  No need for a large vfs to monitor user errors like this.

/sbin/sln is a statically built ln, so you can symlink back the file to get userspace going, then copy the file (fix it) back properly.

Nick
-- 
FSF Associate Member 5508
http://linicks.net/

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-10-25 19:22 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-20  7:06 [RFC] Rollback FS jiaweiwei
2013-10-20  7:57 ` Richard Weinberger
2013-10-20 11:33   ` jiaweiwei
2013-10-20 10:22 ` Kristof Provost
2013-10-20 11:41   ` jiaweiwei
2013-10-20 10:43 ` Vyacheslav Dubeyko
2013-10-20 11:37   ` jiaweiwei
2013-10-20 11:46     ` Richard Weinberger
2013-10-20 12:32       ` Vyacheslav Dubeyko
2013-10-20 12:35     ` Theodore Ts'o
2013-10-20 12:59       ` jiaweiwei
2013-10-20 13:07         ` Levente Kurusa
2013-10-20 13:19           ` jiaweiwei
2013-10-20 13:26             ` Levente Kurusa
2013-10-20 15:22               ` jiaweiwei
2013-10-22 14:29                 ` Levente Kurusa
  -- strict thread matches above, loose matches on Subject: below --
2013-10-25 19:22 Nick Warne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).