xfsprogs: minor quota fixups
cover xfsprogs: minor quota fixups
Small fixups encountered while digging through quota...
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
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
@@ -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
PATCH 2/2 xfs_quota: fix up timer command help
In reply to Eric SandeenThe 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
@@ -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
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