unmount method

  1. @override
Future<DiskInfo> unmount(
  1. String diskId, {
  2. bool wholeDisk = false,
})
override

Unmount a volume, or all volumes on its whole disk if wholeDisk is true. Returns the unmounted volume, or the whole disk when wholeDisk is true. Query the snapshot stream for individual volume states after a whole-disk request. Active files can cause rejection; no force is used.

Implementation

@override
Future<DiskInfo> unmount(String diskId, {bool wholeDisk = false}) =>
    _operate<Object?>('unmount', diskId, wholeDisk: wholeDisk)
        .then(_decodeDisk);