示例#1
0
func NewContext(d volume.VolumeDriver) *Context {
	return &Context{
		VolumeDriver: d,
		volID:        "",
		snapID:       "",
		Filesystem:   api.FSType_FS_TYPE_NONE,
		testPath:     path.Join("/tmp/openstorage/mount/", d.String()),
		testFile:     path.Join("/tmp/", d.String()),
	}
}
示例#2
0
func NewContext(d volume.VolumeDriver) *Context {
	return &Context{
		VolumeDriver: d,
		volID:        api.BadVolumeID,
		snapID:       api.BadVolumeID,
		Filesystem:   string(""),
		testPath:     path.Join("/tmp/openstorage/mount/", d.String()),
		testFile:     path.Join("/tmp/", d.String()),
	}
}