文件系统群集大小? [英] Filesystem Cluster Size?

查看:122
本文介绍了文件系统群集大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows Mobile 6设备上缓存一些JPEG图像。我决定将它们存储在Application Data文件夹中的文件系统上。我想确保缓存不会无限增长并填满设备的可用空间。要确定缓存磁盘的实际大小,我相信我需要知道文件系统的簇大小。这是我遇到障碍的地方。我找不到确定文件系统群集大小或"磁盘大小"的方法。一个文件。在.NET框架中似乎没有一个函数来确定簇大小或"磁盘上的大小"。一个文件。 win32函数GetDiskFreeSpace()返回簇大小,但它似乎不存在于Windows Mobile 6.任何人都可以提供帮助吗?


解决方案

您好

您可以通过使用P / invoke或OpennetCf

http://www.codeproject.com/KB/mobile/compframe2.aspx

谢谢你


I need to cache some JPEG images on a windows mobile 6 device. I've decided to simply store them on the file system in the Application Data folder. I want to insure the cache does not grow unbounded and fill up the device's available space. To determine the actual size on disk of the cache, I believe I need to know the cluster size of the file system. This is where I run into a roadblock. I can't find a way to determine the file system cluster size or the "size on disk" of a file. There does not appear to be a function in the .NET framework to determine the cluster size or the "size on disk" of a file. The win32 function GetDiskFreeSpace() returns the cluster size, but it does not appear to be present on Windows Mobile 6. Can anyone provide help?

 


解决方案

Hi

 

you can get free size of the disk from the use the P/invoke or OpennetCf 

 http://www.codeproject.com/KB/mobile/compframe2.aspx

 thank you

 

 


这篇关于文件系统群集大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆