Re: how to decide if disk / system is quotas capable

2009-08-25 Thread Olivier Nicole
Hi,

> 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.

That is enough.

1) will tell you that the system is quota capable
2) will tell you what file system is quota capabel

3) will tell you what file system has some quota defined for some
   user/group, it's beyond your question.

Best regards,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


how to decide if disk / system is quotas capable

2009-08-25 Thread Stefan Miklosovic
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"