Skip to content
Snippets Groups Projects
Commit 2916e0b8 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Cleanup main.go

parent 94aa5228
No related branches found
No related tags found
No related merge requests found
......@@ -3,20 +3,14 @@ package main
import (
"log"
"os"
_ "strings"
"git.lysator.liu.se/hugo/foremanFS/dir"
"git.lysator.liu.se/hugo/foremanFS/fetch"
"bazil.org/fuse"
"bazil.org/fuse/fs"
_ "bazil.org/fuse/fs/fstestutil"
)
var classesForHost = map[string][]string{}
// const apiurl := "http://localhost:8000/hosts.json"
func main() {
password := os.Args[1:][0]
......@@ -41,35 +35,9 @@ func main() {
}
type FS struct {
// data []ResultRecord
}
type FS struct{}
func (fs FS) Root() (fs.Node, error) {
// return Dir{ /*fs.data*/ }, nil
return dir.DirHostList{ /*fs.data*/ }, nil
}
/*
func (FS) GenerateInode(parentInode uint64, name string) uint64 {
sum := uint64(0)
sum += parentInode
for _, c := range []byte(name) {
sum += uint64(c)
}
log.Printf("Generating inode for %v (inode = %v, parent = %v)",
name, sum, parentInode)
return sum
}
*/
/* dir hashable? */
/* TODO does two Dir object with same value hash become the same
* object? */
/*
type Dir struct{
// data []ResultRecord
// name []string
name string
}
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment