Date: Thu, 04 Oct 2001 19:12:16 -0700 From: dmp@pantherdragon.org To: Mike Tancsa <mike@sentex.net> Cc: questions@freebsd.org Subject: Re: Inode quotas? Message-ID: <3BBD1700.CC293418@pantherdragon.org> References: <SEN.1002225782.408567770@news.sentex.net> <gu0qrtgfkseujo8um191iklm2e9ep8jibt@4ax.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBD1700.CC293418>