From owner-freebsd-questions@FreeBSD.ORG Thu Mar 12 23:00:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B1DD1065674 for ; Thu, 12 Mar 2009 23:00:27 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from exprod7og110.obsmtp.com (exprod7og110.obsmtp.com [64.18.2.173]) by mx1.freebsd.org (Postfix) with SMTP id F2A248FC15 for ; Thu, 12 Mar 2009 23:00:26 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from source ([209.85.198.237]) by exprod7ob110.postini.com ([64.18.6.12]) with SMTP ID DSNKSbmUCjqvjY7NzIZMc/YSOOToP+XybbQ2@postini.com; Thu, 12 Mar 2009 16:00:27 PDT Received: by rv-out-0506.google.com with SMTP id l9so1417041rvb.17 for ; Thu, 12 Mar 2009 16:00:26 -0700 (PDT) Received: by 10.140.135.8 with SMTP id i8mr222833rvd.257.1236898826193; Thu, 12 Mar 2009 16:00:26 -0700 (PDT) Received: from localhost ([76.231.178.131]) by mx.google.com with ESMTPS id k41sm1861183rvb.6.2009.03.12.16.00.25 (version=SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 16:00:25 -0700 (PDT) Date: Thu, 12 Mar 2009 15:59:54 -0700 (PDT) From: Peter Steele To: freebsd-questions@freebsd.org Message-ID: <28038832.01236898791406.JavaMail.HALO$@halo> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What does df command use to get "Used" column? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 23:00:27 -0000 A typical df command looks like this: # df -h Filesystem Size Used Avail Capacity Mounted on /dev/mirror/gm0a 4.8G 2.0G 2.4G 46% / devfs 1.0K 1.0K 0B 100% /dev linprocfs 4.0K 4.0K 0B 100% /proc /dev/mirror/gm0d 3.9G 88K 3.6G 0% /tmp /dev/mirror/gm0e 15G 79M 13G 1% /var /dev/ad4s3e 116G 2.3M 107G 0% /v0 /dev/ad6s3e 116G 2.2M 107G 0% /v1 /dev/ad8s3e 116G 2.1M 107G 0% /v2 /dev/ad10s3e 116G 2.1M 107G 0% /v3 I know what calls to make to get the "Size" and "Avail" columns. I'm not sure what df does to get the value for the "Used" column. Anyone know how df gets this value?