|
@@ -9,6 +9,8 @@ package storage
|
|
*/
|
|
*/
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "os"
|
|
|
|
+
|
|
fs "imuslab.com/arozos/mod/filesystem"
|
|
fs "imuslab.com/arozos/mod/filesystem"
|
|
)
|
|
)
|
|
|
|
|
|
@@ -25,6 +27,11 @@ type StoragePool struct {
|
|
3. denied
|
|
3. denied
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+//Create all the required folder structure if it didn't exists
|
|
|
|
+func init() {
|
|
|
|
+ os.MkdirAll("./system/storage", 0755)
|
|
|
|
+}
|
|
|
|
+
|
|
//Create a new StoragePool objects with given uuids
|
|
//Create a new StoragePool objects with given uuids
|
|
func NewStoragePool(fsHandlers []*fs.FileSystemHandler, owner string) (*StoragePool, error) {
|
|
func NewStoragePool(fsHandlers []*fs.FileSystemHandler, owner string) (*StoragePool, error) {
|
|
//Move all fshandler into the storageHandler
|
|
//Move all fshandler into the storageHandler
|