Skip to contentSkip to conversation

xfsprogs: minor quota fixups

PATCH In review Eric Sandeen 2 participants 4 messages Jan 27, 2016 – Jan 28, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 xfs_quota: remove extra 30 seconds from time limit reporting

The addition of 30s makes little sense; it's only added to the values reported via the userspace tool, and doesn't reflect the actual values used in the kernel. Setting a time limit to "00:30:00" and reporting back "00:30:30" makes little sense to me.

---

quota/util.c +0 -2
index 179aafd..7c43fbd 100644
@@ -42,8 +42,6 @@ time_to_string(
 		time(&now);
 		timer = MAX(origin - now, 0);
 	}
-	if (timer > 60)	/* roundup */
-		timer += 30;
 
 	days = timer / SECONDS_IN_A_DAY;
 	if (days)

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw

PATCH 2/2 xfs_quota: fix up timer command help

In reply to Eric Sandeen

The timer command help output suggests that either default, or a specific ID, can be specified, but this is not the case. Timers are fs-wide for each quota type, not specific to the user. So remove the "-d|id|name" from the help output. Also remove "get" from the description, because it only sets these timers; "state" returns their values. Well actually just one of them, but that's a different problem...

---

quota/edit.c +2 -2
index c55fa1a..6146f7e 100644
@@ -701,8 +701,8 @@ edit_init(void)
 	timer_cmd.cfunc = timer_f;
 	timer_cmd.argmin = 2;
 	timer_cmd.argmax = -1;
-	timer_cmd.args = _("[-bir] [-gpu] value -d|id|name");
-	timer_cmd.oneline = _("get/set quota enforcement timeouts");
+	timer_cmd.args = _("[-bir] [-gpu] value");
+	timer_cmd.oneline = _("set quota enforcement timeouts");
 	timer_cmd.help = timer_help;
 
 	warn_cmd.name = "warn";

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on the v1 series
#3 lore raw
In reply to Eric Sandeen

Makes sense to me, consider it

Quoted 6 lines · Eric Sandeen

Small fixups encountered while digging through quota...

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Signature · 6 lines
Carlos

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs