About this list Date view Thread view Subject view Author view Attachment view

From: Marc E. Fiuczynski (mef_at_CS.Princeton.EDU)
Date: Wed 25 Aug 2004 - 14:25:50 BST


Herbert wrote:
>I'm still waiting for some shiny hero, who will
>step forward and code a nice tool to calculate the
>precise number of inodes and blocks for a vserver ...

No shiny hero here. Attached is an updated version of vdu (called vdu-new)
that counts both inodes and diskblocks. It is based on vdu.c from
util-vserver to walk the directory tree. The main change is the handling for
files with hard linkcount > 1. It maintains a table of such files and only
accounts for the diskblock size if it can find all hardlinks. Otherwise, it
only accounts for the inode that are used within the /path/to/vserver.

Here is a simple example:

sudo vdu-new /vserver/v_mef
12966 315544 132251 /vservers/mef
where the numbers are inodes, blocks, and kb.

Hopefully this is useful. Comments and feedback are greatly appreciated!

Marc

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 25 Aug 2004 - 14:45:08 BST by hypermail 2.1.3