Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29318597
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: Python/Ruby

2010-06-06 22:51:15

Deprecated since version 2.6: The statvfs module has been deprecated for removal in Python 3.0.(Deprecated :取缔

The statvfs module defines constants so interpreting the result if os.statvfs(), which returns a tuple, can be made without remembering “magic numbers.” Each of the constants defined in this module is the index of the entry in the tuple returned by os.statvfs() that contains the specified information.

statvfs.F_BSIZE
Preferred file system block size.
statvfs.F_FRSIZE
Fundamental file system block size.
statvfs.F_BLOCKS
Total number of blocks in the filesystem.
statvfs.F_BFREE
Total number of free blocks.
statvfs.F_BAVAIL
Free blocks available to non-super user.
statvfs.F_FILES
Total number of file nodes.
statvfs.F_FFREE
Total number of free file nodes.
statvfs.F_FAVAIL
Free nodes available to non-super user.
statvfs.F_FLAG
Flags. System dependent: see statvfs() man page.
statvfs.F_NAMEMAX
Maximum file name length.

如果用df 不好的话建议可以使用这个模块测试下。
阅读(1011) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~