Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (17 sloc) 525 Bytes

Device Mapper Bindings For Racket

Basic FFI bindings for Racket.

If you need some functionality that is missing right now, just ask me and we will work something out.


(require dm)

(dm-create "test"
           (dm-target 0 1024 'linear '("8:1" 0)))

(dm-rename "test" "foobar")

(dm-suspend "foobar")
(dm-reload "foobar"
           (dm-target 0 1024 'linear '("8:1" 0))
           (dm-target 1024 1024 'linear '("8:1" 2048)))

(dm-resume "foobar")
(dm-remove "foobar")