From owner-freebsd-current Wed Nov 1 11:31:17 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id C6C0F37B4C5 for ; Wed, 1 Nov 2000 11:31:15 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 2C71769D; Wed, 1 Nov 2000 11:31:11 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id LAA07139; Wed, 1 Nov 2000 11:31:10 -0800 (PST) Message-ID: <3A006F7E.C31E2A85@cup.hp.com> Date: Wed, 01 Nov 2000 14:31:10 -0500 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: Andrew Gallatin , freebsd-current@freebsd.org Subject: Re: linux emulation References: <22109.973104613@critter> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > > I was just looking at that piece of code, and I couldn't entirely > make out what it was even trying to do. Can somebody more > linuxolator savy explain what the function linux_ustat() should > produce. The following comment explains what linux_ustat should do: /* * lu.f_fname and lu.f_fpack are not used. They are always zeroed. * lu.f_tinode and lu.f_tfree are set from the device's super block. */ linux_ustat fills in a structure with the above mention fields. The meaning of f_tinode and f_tfree are explained by the following two statements: lu.f_tfree = stat->f_bfree; lu.f_tinode = stat->f_ffree; In short: given the (u)dev_t, get the FS statistics and return the number of free blocks and inodes of the FS on that device. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message