mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
refactor: refactor code to separate fs into object-layer and fs layer. (#1305)
This commit is contained in:
committed by
Harshavardhana
parent
188bb92d8a
commit
3c48537f20
@@ -268,8 +268,9 @@ func serverMain(c *cli.Context) {
|
||||
_, e := os.Stat(fsPath)
|
||||
fatalIf(probe.NewError(e), "Unable to validate the path", nil)
|
||||
// Initialize filesystem storage layer.
|
||||
objectAPI, err = newFS(fsPath)
|
||||
fatalIf(err.Trace(fsPath), "Initializing filesystem failed.", nil)
|
||||
storage, e := newFS(fsPath)
|
||||
fatalIf(probe.NewError(e), "Initializing filesystem failed.", nil)
|
||||
objectAPI = newObjectLayer(storage)
|
||||
}
|
||||
|
||||
// Configure server.
|
||||
|
||||
Reference in New Issue
Block a user