chore: bump version v2.29.3 (#766)
This commit is contained in:
+5
-1
@@ -129,7 +129,11 @@ func (fs *Decomposedfs) CreateStorageSpace(ctx context.Context, req *provider.Cr
|
||||
}
|
||||
|
||||
// 770 permissions for the space
|
||||
if err := os.MkdirAll(rootPath, 0770); err != nil {
|
||||
if err := os.Mkdir(rootPath, 0770); err != nil {
|
||||
if os.IsExist(err) {
|
||||
// Someone has created the space in the meantime. Abort.
|
||||
return nil, errtypes.AlreadyExists(spaceID)
|
||||
}
|
||||
return nil, errors.Wrap(err, fmt.Sprintf("Decomposedfs: error creating space %s", rootPath))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user