aboutsummaryrefslogtreecommitdiff
path: root/src/property
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-04-02 12:38:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-04-02 12:38:07 -0700
commit2b7fbca1d47ee1a5df2a44eda597852391f8c5c7 (patch)
treef86b1916c9625415e264553bad31a9e5b48a7632 /src/property
parent1856ff63a32e50f4074c7808339b6262c603be5d (diff)
downloadconsfigurator-2b7fbca1d47ee1a5df2a44eda597852391f8c5c7.tar.gz
SWAP:HAS-SWAP-FILE: use &key not &optional for LOCATION parameter
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property')
-rw-r--r--src/property/swap.lisp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/property/swap.lisp b/src/property/swap.lisp
index 4c89657..d712d32 100644
--- a/src/property/swap.lisp
+++ b/src/property/swap.lisp
@@ -30,8 +30,7 @@
(mrun :may-fail "swapoff" location)
(delete-remote-trees location)))
-(defproplist has-swap-file :posix
- (size &optional (location #P"/var/lib/swapfile"))
+(defproplist has-swap-file :posix (size &key (location #P"/var/lib/swapfile"))
"Add a swap file. SIZE is the -l argument to fallocate(1).
Current implementation assumes a non-CoW filesystem; see NOTES in swapon(8)."
(:desc #?"Has swapfile of size ${size}")