Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/torusblk/aoe.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ func aoeAction(cmd *cobra.Command, args []string) error {
if err = as.Serve(ai); err != nil {
return fmt.Errorf("Failed to serve AoE: %v", err)
}
return nil

// aoe creates the block device as /dev/etherd/e.<MINOR>.<MAJOR>.
// Calling flush() here cleans up the device each time process finished.
return flush(fmt.Sprintf("e%d.%d", minor, major))
}

func flush(d string) error {
Expand Down