windows “深度冻结”如何运作?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6801899/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:33:36  来源:igfitidea点击:

How does "deep freeze" works?

c#windowsvirtualizationsandboxdeepfreeze

提问by Foresp

as we all know there is a software called "deep freeze" which you probably know what it does.

众所周知,有一种称为“深度冻结”的软件,您可能知道它的作用。

Anyway, after some googling I noticed that kind of software(s) called sandboxing or virtualization software however, Im not quite sure since my further searches failed me.

无论如何,经过一些谷歌搜索后,我注意到那种称为沙盒或虚拟化软件的软件,但是我不太确定,因为我的进一步搜索失败了。

So, here is my question:

所以,这是我的问题:

How does deepfreeze actually works ? If it were making image of everything in computer(its called virtualization I guess) it would take so much space. If it were creating index of every file and checking them regulary, then it would make my computer "freeze".

deepfreeze 的实际工作原理是什么?如果它正在制作计算机中所有内容的图像(我猜它称为虚拟化),它将占用太多空间。如果它正在为每个文件创建索引并定期检查它们,那么它会使我的计算机“冻结”。

So whats the magic ? How does it actually works ? does it realize when I download files by some way ?

那么魔法是什么?它实际上是如何工作的?当我以某种方式下载文件时它会意识到吗?

回答by Pop Catalin

The concept of how Deep Freeze works is very simple, but the actual implementation is a bit more complicated.

Deep Freeze 冰点工作原理的概念非常简单,但实际实现要复杂一些。

Basically Deep Freeze replaces the disk IO driver with its own that only write files to temporary locations and forbids modification of existing files by copying them (or just parts of the files) to a temporary store and modifying them there, behind the scenes.

基本上,Deep Freeze 将磁盘 IO 驱动程序替换为自己的磁盘 IO 驱动程序,该驱动程序仅将文件写入临时位置,并通过将现有文件(或仅部分文件)复制到临时存储并在幕后修改它们来禁止修改现有文件。

This means that every time the system resumes, the store holding all modifications is purged and the system resumes from a previous state, called frozen state.

这意味着每次系统恢复时,保存所有修改的存储都会被清除,系统从先前的状态(称为冻结状态)恢复。

回答by romejoe

I don't know exactly how deep freeze works but I assume it works by redirecting writes to a temporary file and then deleting the file at shutdown.

我不知道深度冻结究竟是如何工作的,但我认为它的工作原理是将写入重定向到一个临时文件,然后在关闭时删除该文件。