From owner-freebsd-questions@FreeBSD.ORG Tue Aug 25 10:53:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 365EA106568C for ; Tue, 25 Aug 2009 10:53:16 +0000 (UTC) (envelope-from miklosovic.freebsd@gmail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id B55C38FC22 for ; Tue, 25 Aug 2009 10:53:15 +0000 (UTC) Received: by bwz2 with SMTP id 2so1876108bwz.43 for ; Tue, 25 Aug 2009 03:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=miwFyGcxLC6SSDAUBL/ulWnzIohYVNxaOk67eIyRv4s=; b=wiiofQ1YQVXtF4xI3Wbgq6U79JB0wnzQ8Ee+tDzIZdLg64u4WDM2TAyfHbiRQVZIc/ iNiOtIoyxgeIHgoqNpc7Sr9jhmDCvDsuJRe0igfpcx/SuIyb1IogyIlit2sRUL4oWHTS YEAhTznFQ4A1OorUc8G9ODkvKMst3DuHJVJm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G49/9qamtbPtDTGstwOX2eepg9aJdWyYdzMd1tyyVw+m1COa9QlZpvDiXCru27c+z3 vz5WIyc3KKMO/JsU5aIiIvZaeb3kuzmDgWrgJUMF7nu/iUyi2jVan0VsziG56h/XPzln 3B+g5FopKpcWLE1a9HdeTKW+MPPeSrJsgDIpQ= MIME-Version: 1.0 Received: by 10.103.125.18 with SMTP id c18mr2553517mun.71.1251197594501; Tue, 25 Aug 2009 03:53:14 -0700 (PDT) Date: Tue, 25 Aug 2009 12:53:12 +0200 Message-ID: From: Stefan Miklosovic To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to decide if disk / system is quotas capable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 10:53:18 -0000 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