{"repo":"willscott/go-nfs","free":true,"listed":false,"github":"https://github.com/willscott/go-nfs","clone":"git clone https://github.com/willscott/go-nfs.git","description":"golang NFSv3 server","language":"Go","stars":777,"topics":["nfsv3","golang","nfs","nfs-server","billy","hacktoberfest"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Golang Network File Server === NFSv3 protocol implementation in pure Golang. Current Status: Minimally tested Mounts, read-only and read-write support Usage === The most interesting demo is currently in example/osview . Start the server go run ./example/osview . . The local folder at . will be the initial view in the mount. mutations to metadata or contents will be stored purely in memory and not written back to the OS. When run, this demo will print the port it is listening on. The mount can be accessed using a command similar to mount -o port= ,mountport= -t nfs localhost:/mount (For Mac users) or mount -o port= ,mountport= ,nfsvers=3,noacl,tcp -t nfs localhost:/mount (For Linux users) API === The NFS server runs on a net.Listener to export a file system to NFS clients. Usage is structured similarly to many other golang network servers. Notes --- Ports are typically determined through portmap. The need for running portmap (which is the only part that needs a privileged listening port) can be avoided through specific mount options. e.g. mount -o port=n,mountport=n -t nfs host:/mount /localmount This server currently uses billy to provide a file system abstraction layer. There are some edges of the NFS protocol which do not translate to this abstraction. NFS expects access to an inode or equivalent unique identifier to reference files in a file system. These are considered opaque identifiers here, which means they will not work as expected in cases of hard linking. The billy ","default_branch":null,"files":null,"tree":[],"storefront":"/r/willscott","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/willscott/go-nfs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}