Commit graph

129 commits

Author SHA1 Message Date
mulhern
b15f960ec9 Do not bother to specify type of result
It's the type of the result of ioctl, i.e, a c_int.

Signed-off-by: mulhern <amulhern@redhat.com>
2017-03-28 10:10:32 -04:00
mulhern
22dca1f4cf Fix a typo
Signed-off-by: mulhern <amulhern@redhat.com>
2017-03-28 09:43:33 -04:00
mulhern
57403d6631 Avoid a warning
Put underscores before unused parameter names.

Signed-off-by: mulhern <amulhern@redhat.com>
2017-03-28 09:38:47 -04:00
Michael Daffin
80ed392b55 Fixes keyword 2016-05-21 00:30:44 +01:00
Michael Daffin
d085f4217b Small tweaks to the generated docs 2016-05-20 23:54:30 +01:00
Michael Daffin
2fff5bcf69 Adds some needed files 2016-05-20 23:33:08 +01:00
Michael Daffin
f602c67000 Allows nightly builds to fail 2016-05-20 21:54:16 +01:00
Michael Daffin
da6e4fe144 Fixes travis builds 2016-05-19 01:24:25 +01:00
Michael Daffin
5979f16e86 Attempt to fix tests 2016-05-18 01:30:15 +01:00
Michael Daffin
42d78b94b6 Refactor and documentation 2016-05-18 01:28:44 +01:00
Michael Daffin
ea770b06ff Implments detach and allows attach to specific dev 2016-05-17 23:20:10 +01:00
Michael Daffin
a6d2de2f7a Inital implmentation of LoopDevice::new
This function allows creation of loopdevices from paths
2016-05-17 01:17:47 +01:00
Michael Daffin
c1debf14db Implemnts detach (untested) 2016-05-17 01:08:45 +01:00
Michael Daffin
702ed8c5bd Implements LoopDevice::attach
Tests where removed as they broke again with no easy way to fix them
(the mocks are not good enough).
2016-05-17 00:51:05 +01:00
Michael Daffin
160845dd62 Removes need to store filename of the device 2016-05-16 22:56:59 +01:00
Michael Daffin
4f1b6321d4 Removes all rust versions except 1.3.0, stable, beta and nightly 2016-05-16 21:43:02 +01:00
Michael Daffin
65de6f605f Enables travis for all version of rust 2016-05-16 19:40:06 +01:00
Michael Daffin
57231af779 Refactors tests to work with the code refactor 2016-05-16 19:08:58 +01:00
Michael Daffin
7c9961365e Fixes LoopControl test
The error tests still need to be fixed
2016-05-16 15:51:46 +01:00
Michael Daffin
cf9c68c049 Converts to std::fs::File instead of libc::open
Note the tests need to be refactored and have been disabled for now
2016-05-16 00:50:50 +01:00
Michael Daffin
7e0ca052af Converts to use a LoopDevice instead of Strings 2016-05-15 22:14:40 +01:00
Michael Daffin
f34dba3579 Implments find in the bin
Also adds some stub functions and changes the cli arguments
2016-05-06 14:32:24 +01:00
Michael Daffin
2101db243d Another attempt to fix nightly 2016-04-25 13:44:50 +01:00
Michael Daffin
0c2bf9d06c Fix nightly builds 2016-04-25 13:41:14 +01:00
Michael Daffin
54b56c5047 Adds travis.yml 2016-04-25 13:37:42 +01:00
Michael Daffin
885228ee43 Rename to loopdev 2016-04-25 13:20:41 +01:00
Michael Daffin
8f70b3367c Adds more tests 2016-04-25 13:19:11 +01:00
Michael Daffin
c3a05c2e88 Adds basic LoopControl struct
Currently it can search for the next free loop device.
2016-04-25 01:13:57 +01:00
Michael Daffin
7cc176fc38 Inital commit 2016-04-21 17:32:41 +01:00