-
Notifications
You must be signed in to change notification settings - Fork 9
/
gofsutil_mount_windows.go
149 lines (122 loc) · 5.12 KB
/
gofsutil_mount_windows.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package gofsutil
import (
"context"
"errors"
"time"
)
var info []Info
func (fs *FS) getDiskFormat(ctx context.Context, disk string) (string, error) {
return "", errors.New("not implemented")
}
func (fs *FS) formatAndMount(ctx context.Context, source, target, fsType string, opts ...string) error {
return errors.New("not implemented")
}
func (fs *FS) format(ctx context.Context, source, target, fsType string, opts ...string) error {
return errors.New("not implemented")
}
func (fs *FS) bindMount(ctx context.Context, source, target string, opts ...string) error {
return errors.New("not implemented")
}
// resizeFS expands the filesystem to the new size of underlying device
func (fs *FS) resizeFS(ctx context.Context, volumePath, devicePath, ppathDevice, mpathDevice, fsType string) error {
return errors.New("not implemented")
}
// findFSType fetches the filesystem type on mountpoint
func (fs *FS) findFSType(
ctx context.Context, mountpoint string,
) (fsType string, err error) {
return "", errors.New("not implemented")
}
func (fs *FS) getMountInfoFromDevice(ctx context.Context, devID string) (*DeviceMountInfo, error) {
return nil, errors.New("not implemented")
}
func (fs *FS) getMpathNameFromDevice(ctx context.Context, device string) (string, error) {
return "", errors.New("not implemented")
}
func (fs *FS) resizeMultipath(ctx context.Context, deviceName string) error {
return errors.New("not implemented")
}
// DeviceRescan rescan the device for size alterations
func (fs *FS) deviceRescan(ctx context.Context,
devicePath string,
) error {
return errors.New("not implemented")
}
func (fs *FS) getMounts(ctx context.Context) ([]Info, error) {
return info, errors.New("not implemented")
}
func (fs *FS) readProcMounts(ctx context.Context,
path string,
info bool,
) ([]Info, uint32, error) {
return nil, 0, errors.New("not implemented")
}
func (fs *FS) mount(ctx context.Context, source, target, fsType string, opts ...string) error {
return errors.New("not implemented")
return nil
}
func (fs *FS) unmount(ctx context.Context, target string) error {
return errors.New("not implemented")
}
func (fs *FS) getDevMounts(ctx context.Context, dev string) ([]Info, error) {
return info, errors.New("not implemented")
}
func (fs *FS) validateDevice(
ctx context.Context, source string,
) (string, error) {
return "", errors.New("not implemented")
}
func (fs *FS) wwnToDevicePath(
ctx context.Context, wwn string,
) (string, string, error) {
return "", "", errors.New("not implemented")
}
// targetIPLUNToDevicePath returns all the /dev/disk/by-path entries for a give targetIP and lunID
func (fs *FS) targetIPLUNToDevicePath(ctx context.Context, targetIP string, lunID int) (map[string]string, error) {
result := make(map[string]string, 0)
return result, errors.New("not implemented")
}
// rescanSCSIHost will rescan scsi hosts for a specified lun.
// If targets are specified, only hosts who are related to the specified
// iqn target(s) are rescanned.
// If lun is specified, then the rescan is for that particular volume.
func (fs *FS) rescanSCSIHost(ctx context.Context, targets []string, lun string) error {
return errors.New("not implemented")
}
// RemoveBlockDevice removes a block device by getting the device name
// from the last component of the blockDevicePath and then removing the
// device by writing '1' to /sys/block{deviceName}/device/delete
func (fs *FS) removeBlockDevice(ctx context.Context, blockDevicePath string) error {
return errors.New("not implemented")
}
// Execute the multipath command with a timeout and various arguments.
// Optionally a chroot directory can be specified for changing root directory.
// This only works in a container or another environment where it can chroot to /noderoot.
func (fs *FS) multipathCommand(ctx context.Context, timeoutSeconds time.Duration, chroot string, arguments ...string) ([]byte, error) {
result := make([]byte, 0)
return result, errors.New("not implemented")
}
func (fs *FS) getFCHostPortWWNs(context.Context) ([]string, error) {
result := make([]string, 0)
return result, errors.New("not implemented")
}
// issueLIPToAllFCHosts issues the LIP command to all FC hosts.
func (fs *FS) issueLIPToAllFCHosts(ctx context.Context) error {
return errors.New("not implemented")
}
// getSysBlockDevicesForVolumeWWN given a volumeWWN will return a list of devices in /sys/block for that WWN (e.g. sdx, sdaa)
func (fs *FS) getSysBlockDevicesForVolumeWWN(ctx context.Context, volumeWWN string) ([]string, error) {
result := make([]string, 0)
return result, errors.New("not implemented")
}