Feature/tiered storage - #1049
foodprocessor wants to merge 95 commits into
Conversation
…t OpenFile test pass
… with no file attatched, also added some config path
…ion), added tests for OpenFile O_Create
Feature/tiered storage setup
Feature/tiered storage
| if err != nil { | ||
| return err | ||
| } | ||
| err = os.MkdirAll(filepath.Dir(localPath), 0755) |
There was a problem hiding this comment.
Mend Code Security Check
New finding (1 of 5)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-09-10 10:35pm | |||
| |||||
| if c.tmpPath == "" || c.tmpPath == "." { | ||
| return fmt.Errorf("TieredStorage: path not set in config") | ||
| } | ||
| err = os.MkdirAll(c.tmpPath, 0755) |
There was a problem hiding this comment.
Mend Code Security Check
New finding (2 of 5)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-09-10 10:35pm | |||
| |||||
| if !localExists { | ||
| return nil | ||
| } | ||
| if err := os.MkdirAll(filepath.Dir(dstPath), 0755); err != nil { |
There was a problem hiding this comment.
Mend Code Security Check
New finding (3 of 5)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-09-10 10:35pm | |||
| |||||
| localCopyNode.cloudBacked.Store(true) | ||
|
|
||
| if options.Flags&os.O_TRUNC != 0 { | ||
| if err := os.MkdirAll(filepath.Dir(localPath), 0755); err != nil { |
There was a problem hiding this comment.
Mend Code Security Check
New finding (4 of 5)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-09-10 10:35pm | |||
| |||||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| err = os.MkdirAll(filepath.Dir(localPath), 0755) |
There was a problem hiding this comment.
Mend Code Security Check
New finding (5 of 5)
The Mend Code Security Check of your branch failed because of a Insecure Directory Permissions finding in this line.
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected |
|---|---|---|---|---|---|
| Insecure Directory Permissions | 1 | 2026-09-10 10:35pm | |||
| |||||
Add tiered storage component.