xfs
[Top] [All Lists]

RE: xfs_quota off/remove

To: "Michael L. Semon" <mlsemon35@xxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>
Subject: RE: xfs_quota off/remove
From: "Meij, Henk" <hmeij@xxxxxxxxxxxx>
Date: Thu, 11 Dec 2014 14:50:06 +0000
Accept-language: en-US
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wesleyan.edu; s=feb2013.wesmsa; t=1418309408; bh=ak9kCILD5j72et5RzrIGdDhAPuD46ghJbOOLx1WaM7M=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=DUFOc+wgpLfoka3Vm2Mf2E8ZPaUZEsPUoCHVn/4xvalkZC0Ikwy+x6VVgtUp/JXB0 h9UpBORiG37ZHdVvK0FZ3dF/s9b0C9CghzzZuDttq5tVSQQg3ZXNqygImv01JLYpWZ Ekn09PphZTkpZPRoiCrIDy60dMJz+p5GzxkxLdKc=
In-reply-to: <5488B704.2040602@xxxxxxxxx>
References: <8688BD11DAC0574AA90295127E9E9F4AC04DD4FF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <5488ADDD.404@xxxxxxxxx> <20141210204707.GC24183@dastard>,<5488B704.2040602@xxxxxxxxx>
Thread-index: AdAUqGEskP5gVgfcT4KbTIH3zhkp8gAOfJWAAACC1YAAANpOAAAaU7Db
Thread-topic: xfs_quota off/remove
ah, thank you all, this is one of those light bulb moments, the sequence below

-c "off" -c "remove" is followed by migration of said share to new partition
then the remount happens (with quotas on for other shares)

and now the metadata for migrated share does not show up. 

-Henk

________________________________________
From: Michael L. Semon [mlsemon35@xxxxxxxxx]
Sent: Wednesday, December 10, 2014 4:11 PM
To: Dave Chinner
Cc: Meij, Henk; xfs@xxxxxxxxxxx
Subject: Re: xfs_quota off/remove

On 12/10/14 15:47, Dave Chinner wrote:
> On Wed, Dec 10, 2014 at 03:32:29PM -0500, Michael L. Semon wrote:
>> On one hand, the man page for xfs_quota states for "off":  "Permanently
>> switches quota off for the filesystem identified by the current path.
>> Quota can only be switched back on subsequently by unmounting and then
>> mounting again."
>
> The *only* method for turning on quotas on XFS on is to mount the filesystem
> with the appropriate mount options. You can turn them off in an on-line
> fashion by running the "off" command, but you also need to remove
> the mount options from the next mount, otherwise that turns them
> back on.
>
> If the word "permanently" is the problem, send a patch for th eman
> page that explains it properly.
>
> Cheers,
>
> Dave.

Thanks, Dave.  You, Mark, Eric, and Brian are superior to me at wording.
But here's my shot at it...

Thanks!

Michael

>From 51a3d00b134b72c095c1d4ec42ec619ddf4388bc Mon Sep 17 00:00:00 2001
From: "Michael L. Semon" <mlsemon35@xxxxxxxxx>
Date: Wed, 10 Dec 2014 15:58:10 -0500
Subject: [PATCH] xfsprogs: clarify wording for xfs_quota off command

The xfs_quota "off" command claims to permanently shut off quotas, but
then reminds the user that they can be turned on again by unmounting
and mounting the filesystem again.  It's the kind of permanent that
is not permanent.  Fix it.

Signed-off-by: Michael L. Semon <mlsemon35@xxxxxxxxx>
---
 man/man8/xfs_quota.8 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/man8/xfs_quota.8 b/man/man8/xfs_quota.8
index 8cc8ab7..c79627c 100644
--- a/man/man8/xfs_quota.8
+++ b/man/man8/xfs_quota.8
@@ -479,8 +479,8 @@ Disables quota enforcement, while leaving quota accounting 
active. The
 option (verbose) displays the state after the operation has completed.
 .TP
 .BR off " [ " \-gpu " ] [ " \-v " ]"
-Permanently switches quota off for the filesystem identified by the
-current path.
+Stops quota enforcement and accounting for the filesystem identified by the
+current path until the filesystem has been unmounted.
 Quota can only be switched back on subsequently by unmounting and
 then mounting again.
 .TP
--
1.8.5.4
<Prev in Thread] Current Thread [Next in Thread>