| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/2] xfs_quota: remove extra 30 seconds from time limit reporting |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Wed, 27 Jan 2016 16:50:21 -0600 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <56A9497C.9070400@xxxxxxxxxxx> |
| References: | <56A9497C.9070400@xxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
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.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
diff --git a/quota/util.c b/quota/util.c
index 179aafd..7c43fbd 100644
--- a/quota/util.c
+++ b/quota/util.c
@@ -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)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/2] xfsprogs: minor quota fixups, Eric Sandeen |
|---|---|
| Next by Date: | [PATCH 2/2] xfs_quota: fix up timer command help, Eric Sandeen |
| Previous by Thread: | [PATCH 0/2] xfsprogs: minor quota fixups, Eric Sandeen |
| Next by Thread: | [PATCH 2/2] xfs_quota: fix up timer command help, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |