Enforce permissions for dataset leases at mapping time.
* Swapper must have appropriate level of access (RO or RW). * If RO is requested, dataset must not be in use RW. * If RW is requested, dataset must not be in use at all. Also relaxed the checks in the parser; it was considering dynamic lease state, which isn't the right thing to do there.
Showing with 37 additions and 25 deletions