Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2009 12:53:12 +0200
From:      Stefan Miklosovic <miklosovic.freebsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   how to decide if disk / system is quotas capable
Message-ID:  <f99a79ec0908250353i42cf4d4cp5bf785520fa7c21@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi,

I am writing a script in which I want to decide if disk / system is capable
to set quotas for user / groups.

how to check it?

I am thinking about
1) checking enable_quotas="YES" in /etc/rc.conf
2) should I try to look in /etc/fstab? There is userquota and / or
groupquota in line for some disk device in option field.
3) should I test existence of quota.user and quota.group in filesystem root?

which method would be the best one?

thank you for time



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f99a79ec0908250353i42cf4d4cp5bf785520fa7c21>