github.com/vmware/govmomi@v0.51.0/simulator/esx/host_config_filesystemvolume.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package esx 6 7 import ( 8 "github.com/vmware/govmomi/units" 9 "github.com/vmware/govmomi/vim25/types" 10 ) 11 12 // HostConfigInfo is the default template for the HostSystem config property. 13 // Capture method: 14 // govc object.collect -s -dump HostSystem:ha-host config.fileSystemVolume 15 // - slightly modified for uuids and DiskName 16 var HostFileSystemVolumeInfo = types.HostFileSystemVolumeInfo{ 17 VolumeTypeList: []string{"VMFS", "NFS", "NFS41", "vsan", "VVOL", "VFFS", "OTHER", "PMEM"}, 18 MountInfo: []types.HostFileSystemMountInfo{ 19 { 20 MountInfo: types.HostMountInfo{ 21 Path: "/vmfs/volumes/deadbeef-01234567-89ab-cdef00000003", 22 AccessMode: "readWrite", 23 Mounted: types.NewBool(true), 24 Accessible: types.NewBool(true), 25 InaccessibleReason: "", 26 MountFailedReason: "", 27 }, 28 Volume: &types.HostVmfsVolume{ 29 HostFileSystemVolume: types.HostFileSystemVolume{ 30 Type: "VMFS", 31 Name: "datastore1", 32 Capacity: 3.5 * units.TB, 33 }, 34 BlockSizeMb: 1, 35 BlockSize: units.KB, 36 UnmapGranularity: units.KB, 37 UnmapPriority: "low", 38 UnmapBandwidthSpec: (*types.VmfsUnmapBandwidthSpec)(nil), 39 MaxBlocks: 61 * units.MB, 40 MajorVersion: 6, 41 Version: "6.82", 42 Uuid: "deadbeef-01234567-89ab-cdef00000003", 43 Extent: []types.HostScsiDiskPartition{ 44 { 45 DiskName: "____simulated_volumes_____", 46 Partition: 8, 47 }, 48 }, 49 VmfsUpgradable: false, 50 ForceMountedInfo: (*types.HostForceMountedInfo)(nil), 51 Ssd: types.NewBool(true), 52 Local: types.NewBool(true), 53 ScsiDiskType: "", 54 }, 55 VStorageSupport: "vStorageUnsupported", 56 }, 57 { 58 MountInfo: types.HostMountInfo{ 59 Path: "/vmfs/volumes/deadbeef-01234567-89ab-cdef00000002", 60 AccessMode: "readWrite", 61 Mounted: types.NewBool(true), 62 Accessible: types.NewBool(true), 63 InaccessibleReason: "", 64 MountFailedReason: "", 65 }, 66 Volume: &types.HostVmfsVolume{ 67 HostFileSystemVolume: types.HostFileSystemVolume{ 68 Type: "OTHER", 69 Name: "OSDATA-deadbeef-01234567-89ab-cdef00000002", 70 Capacity: 128 * units.GB, 71 }, 72 BlockSizeMb: 1, 73 BlockSize: units.KB, 74 UnmapGranularity: 0, 75 UnmapPriority: "", 76 UnmapBandwidthSpec: (*types.VmfsUnmapBandwidthSpec)(nil), 77 MaxBlocks: 256 * units.KB, 78 MajorVersion: 1, 79 Version: "1.00", 80 Uuid: "deadbeef-01234567-89ab-cdef00000002", 81 Extent: []types.HostScsiDiskPartition{ 82 { 83 DiskName: "____simulated_volumes_____", 84 Partition: 7, 85 }, 86 }, 87 VmfsUpgradable: false, 88 ForceMountedInfo: (*types.HostForceMountedInfo)(nil), 89 Ssd: types.NewBool(true), 90 Local: types.NewBool(true), 91 ScsiDiskType: "", 92 }, 93 VStorageSupport: "vStorageUnsupported", 94 }, 95 { 96 MountInfo: types.HostMountInfo{ 97 Path: "/vmfs/volumes/deadbeef-01234567-89ab-cdef00000001", 98 AccessMode: "readOnly", 99 Mounted: types.NewBool(true), 100 Accessible: types.NewBool(true), 101 InaccessibleReason: "", 102 MountFailedReason: "", 103 }, 104 Volume: &types.HostVfatVolume{ 105 HostFileSystemVolume: types.HostFileSystemVolume{ 106 Type: "OTHER", 107 Name: "BOOTBANK1", 108 Capacity: 4 * units.GB, 109 }, 110 }, 111 VStorageSupport: "", 112 }, 113 { 114 MountInfo: types.HostMountInfo{ 115 Path: "/vmfs/volumes/deadbeef-01234567-89ab-cdef00000000", 116 AccessMode: "readOnly", 117 Mounted: types.NewBool(true), 118 Accessible: types.NewBool(true), 119 InaccessibleReason: "", 120 MountFailedReason: "", 121 }, 122 Volume: &types.HostVfatVolume{ 123 HostFileSystemVolume: types.HostFileSystemVolume{ 124 Type: "OTHER", 125 Name: "BOOTBANK2", 126 Capacity: 4 * units.GB, 127 }, 128 }, 129 VStorageSupport: "", 130 }, 131 }, 132 }