-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into f-ui/alloc-fs
* origin/master: (32 commits) Added additional test cases and fixed go test case update changelog Add Mirage-toggling via environment variable (#5899) changelog: Add entries for windows fixes fifo: Safer access to Conn run post-run/post-stop task runner hooks Fail alloc if alloc runner prestart hooks fail address review comments changelog Missed one revert of backwards compatibility for node drain Improve test cases for detecting content type Undo removal of node drain compat changes Updated with suggestions. fifo: Close connections and cleanup lock handling logmon: Add windows compatibility test client: defensive against getting stale alloc updates Infer content type in alloc fs stat endpoint appveyor: Run logmon tests fifo: Require that fifos do not exist for create vendor: Use dani fork of go-winio ...
- Loading branch information
Showing
54 changed files
with
1,391 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package allocdir | ||
|
||
import ( | ||
"os" | ||
"syscall" | ||
) | ||
|
||
// linkDir hardlinks src to dst. The src and dst must be on the same filesystem. | ||
func linkDir(src, dst string) error { | ||
return syscall.Link(src, dst) | ||
} | ||
|
||
// unlinkDir removes a directory link. | ||
func unlinkDir(dir string) error { | ||
return syscall.Unlink(dir) | ||
} | ||
|
||
// createSecretDir creates the secrets dir folder at the given path | ||
func createSecretDir(dir string) error { | ||
return os.MkdirAll(dir, 0777) | ||
} | ||
|
||
// removeSecretDir removes the secrets dir folder | ||
func removeSecretDir(dir string) error { | ||
return os.RemoveAll(dir) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"test":"test" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.