发信人: reynolds(闪电雷龙)
整理人: reynolds(2001-03-23 13:12:20), 站内信件
|
作 者: reynolds(闪电雷龙) 2001-03-08 15:38:27 :0 :0
教材原文引用如下:
Compressed files can be read by and written to any Microsoft Windows-based or MS-DOS-based application without first being uncompressed by another program. When an application, such as Microsoft Word for Windows, or an operating system command, such as Copy, requests access to a compressed file, NTFS automatically uncompresses the file before making it available. When you close or explicitly save a file, NTFS compresses it again.
NTFS allocates disk space based on the uncompressed file size. If you copy a compressed file to an NTFS volume with enough space for the compressed file but not enough space for the uncompressed file, you might get an error message stating that there is not enough disk space for the file. The file will not be copied to the volume.
我觉得压缩的文件还是按未压缩的大小计算的,而且使用以前还是要先自动解压缩,然后再压缩回去。这样的技术到底有什么好处?
我个人觉得该功能没有实际用途:1、不能节省空间;2、使用时消耗系统资源。
请各位高手多多指教。
作 者: kamkam(Eric) 2001-03-08 17:46:36 :0 :0
空间按照未压缩前计算,是指
1.如果文件压缩前有10M,压缩后有5M,但磁盘只有6M空间,则不能被拷贝过去,
2.如果实现disk quota 空间分配,用户占用的空间也是按照未压缩前计算,比较公平。
还是有意义的,比如10G的硬盘,以前只能放100张100M的bmp,现在,一般bmp可以压缩很多,例如压到50.001M,可以放199,最后由于不够一张100M,所以不能放200
作 者: reynolds(闪电雷龙) 2001-03-11 10:55:50
前次本人象大家请教了ntfs压缩的问题,现在已经释疑,理解如下:
NT/2K的压缩是一种透明过程,其运作模式是首先以未压缩方式写入磁盘,然后进行压缩处理,这样就节省了磁盘空间。但是,由于首先要以未压缩方式写入,所以当磁盘空间大小大于文件压缩后大小而小于文件未压缩大小时,文件的压缩过程就无法继续了。所以,以上的临界状态只会在磁盘空间所剩无几时才会出现,平常是完全透明的过程。理论上看来还是不错的,不过现在磁盘如此便宜,该技术的利用前景就一般啦!
在此谢谢所有参加讨论的朋友!
----
/
<>< o /| /
<>< (o / |/|
) ) <@ <
( O )( \ |\| <><
) <>< () \| \
\
每天在网易游水的鱼
|
|