From owner-freebsd-questions Thu Oct 4 19:12:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by hub.freebsd.org (Postfix) with ESMTP id 4450637B406 for ; Thu, 4 Oct 2001 19:12:37 -0700 (PDT) Received: from pantherdragon.org (rook.pantherdragon.org [206.29.168.147]) by spork.pantherdragon.org (Postfix) with ESMTP id 210D5471C5; Thu, 4 Oct 2001 19:12:36 -0700 (PDT) Message-ID: <3BBD1700.CC293418@pantherdragon.org> Date: Thu, 04 Oct 2001 19:12:16 -0700 From: dmp@pantherdragon.org X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Tancsa Cc: questions@freebsd.org Subject: Re: Inode quotas? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Tancsa wrote: > > On Thu, 4 Oct 2001 20:03:02 +0000 (UTC), in sentex.lists.freebsd.questions > you wrote: > > >I'm setting up quotas for webhosting and shell users. I've already set > >the block quotas (20MB for shells, 100MB for webhosts), but am wondering > >about inode quotas. What exactly is an inode? > > Each file is referenced by a unique inode on the file system. In other words, an inode quota sets the maximum number of files a user can have on a filesystem? Does a directory also have an inode? > >I know that one inode is > >used for each file and directory, but, assuming a clean filesystem, does > >a file or directory ever take more than one? If yes, when/why? > > A file will have only one inode, but a file system has a limited number > based on how you newfs'd your file system. The quotas are there to prevent > a single user from consuming all the inodes on a system. Other than doing df -i and a bit of math, is there a way to determine the total number of inodes for a given filesystem? Is there a way to calculate/configure it before doing newfs, in case one needs to tailor a filesystem to handle X number of files? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message