dhcpdfs

command module
v0.0.0-...-ee5c21f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2015 License: GPL-2.0 Imports: 12 Imported by: 0

README

dhcpdfs

DHCP as a file system (requires FUSE)

This was cobbled together over a couple of afternoons to teach myself FUSE. While I do run it on a home server, lacking features I'd expect a production-ready fork would include:

  • caching the dhcpd lease file (or better yet, the objects created from it)
  • support reading from multiple lease files
  • better handle duplicated entries on the lease file (eg update rather than overwrite)
  • and I'd make the command line usage more user friendly

I may well add these features myself - if and when I get time, or there becomes demand for it.

Installation guide (assumes existing Go environment):
GOFUSE=github.com/hanwen/go-fuse
go get $GOFUSE
cd $GOPATH/src/$GOFUSE
bash all.bash

go get github.com/lmorg/dhcpdfs
go install github.com/lmorg/dhcpdfs

(dhcpdfs was written in Go but uses cgo, which may affect your ability to cross-compile)

Example usage:
mkdir ~/dhcpdfs
$GOPATH/bin/dhcpdfs -m ~/dhcpdfs -l /var/db/dhcpd/dhcpd.leases

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL