Commit 7c520e51 authored by Mike Hibler's avatar Mike Hibler

Don't bump the last_used time when approving.

We want the lease to appear unused up until it is first mapped.
Also, fixed some typos in comments.
parent 8a1e04fb
...@@ -65,7 +65,7 @@ my @LEASE_TYPES = ("stdataset", "ltdataset"); ...@@ -65,7 +65,7 @@ my @LEASE_TYPES = ("stdataset", "ltdataset");
# usequotas If non-zero, enforce per-project dataset quotas # usequotas If non-zero, enforce per-project dataset quotas
# maxextend Number of times a user can extend the lease # maxextend Number of times a user can extend the lease
# (0 == unlimited) # (0 == unlimited)
# extendperiod Length (days) of each user-requested extention # extendperiod Length (days) of each user-requested extension
# (0 == do not allow extensions) # (0 == do not allow extensions)
# #
my @LEASE_VARS = ( my @LEASE_VARS = (
...@@ -100,8 +100,8 @@ my %LEASE_VAR_DEFAULTS = ( ...@@ -100,8 +100,8 @@ my %LEASE_VAR_DEFAULTS = (
"stdataset/graceperiod" => 1, # 1 day "stdataset/graceperiod" => 1, # 1 day
"stdataset/autodestroy" => 1, # yes "stdataset/autodestroy" => 1, # yes
"stdataset/usequotas" => 0, # no "stdataset/usequotas" => 0, # no
"stdataset/maxextend" => 2, # 2 user extentions "stdataset/maxextend" => 2, # 2 user extensions
"stdataset/extendperiod" => 1, # 1 day per extention "stdataset/extendperiod" => 1, # 1 day per extension
"ltdataset/maxsize" => 0, # none "ltdataset/maxsize" => 0, # none
"ltdataset/maxlease" => 0, # none, use idle time "ltdataset/maxlease" => 0, # none, use idle time
...@@ -110,7 +110,7 @@ my %LEASE_VAR_DEFAULTS = ( ...@@ -110,7 +110,7 @@ my %LEASE_VAR_DEFAULTS = (
"ltdataset/autodestroy" => 0, # no "ltdataset/autodestroy" => 0, # no
"ltdataset/usequotas" => 1, # yes "ltdataset/usequotas" => 1, # yes
"ltdataset/maxextend" => 1, # ignored because... "ltdataset/maxextend" => 1, # ignored because...
"ltdataset/extendperiod" => 0, # ...means no user extention "ltdataset/extendperiod" => 0, # ...means no user extension
); );
# #
...@@ -554,7 +554,6 @@ sub AllocResources($;$) { ...@@ -554,7 +554,6 @@ sub AllocResources($;$) {
# It all worked! # It all worked!
$self->UpdateState($state); $self->UpdateState($state);
$self->BumpLastUsed();
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment