HomePhorge

(#4914) Update property blocks
9f4060860a3eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#4914) Update property blocks

The action for a specific ensure state depends on the actual state so we
cannot use the default behaviour. The following transitions are now
supported (with ghost = mounted but not present in fstab):

  • 4 Is-states : absent, mounted, unmounted, ghost
  • 4 Should-states: absent, mounted, present, unmounted
  • from ghost to present -> create
  • from absent to present -> create
  • from ghost to unmounted -> create, umount
  • from mounted to unmounted -> umount
  • from absent to unmounted -> create
  • from ghost to absent -> umount (may fail on certain OS)
  • from mounted to absent -> umount, destroy
  • from unmounted to absent -> destroy
  • from ghost to mounted -> create
  • from absent to mounted -> create, mount
  • from unmounted to mounted -> mount

Every other combination is treatet insync

Details

Provenance
Stefan Schulte <stefan.schulte@taunusstein.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfd111f26f17b: (#4914) Query property_hash for mountstate
Branches
Unknown
Tags
Unknown

Event Timeline

Stefan Schulte <stefan.schulte@taunusstein.net> committed rPU9f4060860a3e: (#4914) Update property blocks (authored by Stefan Schulte <stefan.schulte@taunusstein.net>).Jan 25 2011, 9:23 PM