chiark / gitweb /
systemctl: be smarter when mangling snapshot names
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Jan 2013 01:11:57 +0000 (02:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Jan 2013 20:24:58 +0000 (21:24 +0100)
commit1dcf60656cc68cf0182703d77e31f24f05b0c8cc
tree32f46201784103ae013c03dd5b9b0b0ffa7293ad
parentf84190d8cad66f36eef1d851213711244ca297be
systemctl: be smarter when mangling snapshot names

For "systemctl snapshot" it makes no sense to complete an incomplete
name with ".service" as we previously did, use ".snapshot" instead.
Also, don't bother with mount units or suchlike, we know that this must
be a snapshot and hence is the only sane way for completion.
src/shared/unit-name.c
src/shared/unit-name.h
src/systemctl/systemctl.c