Michael Daffin
79b92dfbd8
Converts try! to ?
2019-08-07 18:33:07 +00:00
Jonathas-Conceicao
a773d61629
Add cmd to install gcc on Vagrantfile in order to build libc crate
...
Signed-off-by: Jonathas-Conceicao <jonathas.conceicao@ossystems.com.br>
2019-08-07 18:00:52 +00:00
Michael Daffin
12d08fda1f
Fixes lints and updates the format to latest rust fmt
2019-08-07 17:59:30 +00:00
Michael Daffin
a72c6f83e1
Merge pull request #15 from eldebrim/master
...
Spelling fixes for README.md and comments
2018-10-14 11:17:00 +00:00
Mohamed Eldebri
66add7985b
Spelling fixes for README.md and comments
2018-10-13 20:52:35 -07:00
Michael Daffin
c34eae542f
release(0.2.1): Implements AsRawFd
2018-10-04 11:30:25 +01:00
Michael Daffin
42c88b1067
Merge pull request #14 from mdaffin/deployments
...
Deployments
2018-10-04 10:28:49 +00:00
Michael Daffin
f19c524122
removes building of losetup
...
This is messing with the deployments and fixing it is requires more knowledge of how travis config actually works
2018-10-04 11:22:14 +01:00
Michael Daffin
c6bdb1b536
chore(ci): Adds a automated publish to crates.io
2018-10-04 10:41:27 +01:00
Michael Daffin
8cd270b7e0
chore: formats the travis script with perttier
2018-10-02 12:17:55 +01:00
Michael Daffin
da78fbbf81
Merge pull request #13 from mdaffin/update-ci-scripts
...
chore(ci): adds clippy and enable verbose builds
2018-10-02 09:06:36 +00:00
Michael Daffin
a292e40704
chore(ci): adds clippy and enable verbose builds
2018-10-02 09:48:27 +01:00
Michael Daffin
31658db8c9
Merge pull request #12 from mmstick/master
...
Implement AsRawFd for LoopDevice
2018-10-01 23:48:20 +00:00
Michael Aaron Murphy
2dcb405ff5
Implement AsRawFd for LoopDevice
2018-10-01 13:29:39 -06:00
Michael Daffin
a92fc28b81
Merge pull request #11 from mdaffin/versionbump
...
Bumps the version to 0.3.0-dev
2018-08-15 11:58:45 +00:00
Michael Daffin
317101f436
Bumps the version to 0.3.0-dev
...
A braking change was introduced and this is a reminder that a minimum version bump to 0.3.0 will be required for the next release. This also avoid confusion as to what version is being used if it is a -dev version then it will not be an offically released version.
2018-08-15 12:05:04 +01:00
Michael Daffin
21dbf307ff
Merge pull request #10 from mdaffin/update-deps
...
Update env
2018-08-15 11:01:01 +00:00
Michael Daffin
551c987f46
chore(vagrant): Adds a vagrant file
...
This allows developers to run the testing framework locally with out requiring root on their host system
2018-08-15 11:50:17 +01:00
Michael Daffin
e43e4cc630
fix(travis): bumps the minimum version of rust to 1.17.0
...
This is due in part due to dependencies having evolved (notably libc) and requiring a newer version but also the fix for the clippy linting bumped it up as well. I don't see any major issues with this as the new minimum version is over a year old and I hope no one is still using it, let along using it and this project at the same time.
2018-08-15 11:42:21 +01:00
Michael Daffin
f8d82ab5f8
fix(gitignore): adds *.rustfmt
2018-08-15 09:46:06 +01:00
Michael Daffin
a848decf5e
fix(clippy): removes 'static lifetime from const
2018-08-15 09:45:43 +01:00
Michael Daffin
cd9bcf1bc2
Merge pull request #9 from mdaffin/0.2.0
...
Version 0.2.0
2017-12-20 18:31:44 +00:00
Michael Daffin
a28775926b
Adds support for set_capacity ioctl
...
This allows you to inform the loop driver of changes to the backing files size.
2017-12-20 17:06:10 +00:00
Michael Daffin
4cf1ce4ec7
Refactors losetup
...
It is now easier to read and follow making it a better example.
Attach now accepts a quite flag and by default prints out the loop device that was attached.
2017-12-20 16:11:54 +00:00
Michael Daffin
857d5b8a84
Fixes losetup and renames size to sizelimit
...
sizelimit is more inline with the offical losetup tool as well as the info struct passed to the kernel so we may as well keep this naming convension.
losetup has been updated to support sizelimit as well as the newer/renamed methods.
2017-12-19 13:11:56 +00:00
Michael Daffin
304953f69f
Renames get_path to path
...
get_path still exists but is deprecated. This is to make the library more like stdlib which rarely uses get_ methods.
2017-12-19 12:56:00 +00:00
Michael Daffin
a0befc5b3e
Splits out the attach method into three convinence function
...
attach_file: attach a whole file aka offset: 0, size: 0
attach_with_offset: attach at a given offset
attach_with_size: attach at a given offset with a given size
The attach method has also been deprecrated infavour of these new methods.
2017-12-19 12:52:46 +00:00
Michael Daffin
01befeb3d9
Merge pull request #8 from abrodersen/sizelimit
...
Allow setting sizelimit when attaching file.
2017-12-19 11:06:10 +00:00
Aaron Brodersen
13a6716c66
Allow setting sizelimit when attaching file.
2017-12-18 16:48:17 -06:00
Michael Daffin
a742e44239
Bumps version of losetup
2017-12-05 14:11:33 +00:00
Michael Daffin
d7c4c5e403
Bumps the version to 0.1.3
2017-12-05 14:05:16 +00:00
Michael Daffin
2d9774adb2
Removes doc building and adds building losetup to travis
2017-12-05 13:59:27 +00:00
Michael Daffin
8a2865a046
Updates and fixes losetup binray
2017-12-05 10:23:43 +00:00
Michael Daffin
11151a8879
Changes the global statics to consts
...
Also runs the source through a newer version of rustfmt
2017-12-05 10:23:17 +00:00
Michael Daffin
ce02632f84
Merge pull request #7 from ignatenkobrain/u32
...
use u16 for ioctl() request and convert it to required type
2017-12-04 17:21:30 +00:00
Michael Daffin
03c32a8e3e
Merge pull request #5 from ignatenkobrain/patch-1
...
bump errno to 0.2
2017-12-04 17:20:39 +00:00
Michael Daffin
f96fcad1a4
Bumps the minimum tested version to 1.9.0
...
Newer versions of libc use the attribute which is unstable in version 1.8.0 and 1.8.0 is very old now I would rather support newer versions of the included libraries
2017-12-04 17:15:38 +00:00
Josh Stone
88a23e80d0
use u16 for ioctl() request and convert it to required type
...
Fixes: https://github.com/mdaffin/loopdev/issues/6
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-12-01 00:19:31 +01:00
Igor Gnatenko
21c6968289
bump errno to 0.2
2017-11-30 18:35:18 +01:00
Michael Daffin
b3d3d29d71
Fixes documentation link
2017-05-05 21:00:38 +01:00
Michael Daffin
8223fff5ad
Adds documentation link and badges to the crate
2017-05-05 20:58:35 +01:00
Michael Daffin
1ddf223ab9
Adds crates badge
2017-05-05 20:51:56 +01:00
Michael Daffin
49163bce30
Changes documentation link and removes homepage
2017-05-05 20:39:08 +01:00
Michael Daffin
ec338de232
Merge pull request #4 from mdaffin/remove-rustc-serialize
...
Remove rustc serialize
2017-05-04 23:11:38 +01:00
Michael Daffin
7e046fe728
Converts losetup to use clap
2017-05-04 23:03:09 +01:00
Michael Daffin
e2b15aad5e
Moves losetup to a subcrate
...
This removes the dependencies on rustc-serialize and docopts from the
library.
2017-04-30 19:27:20 +01:00
Michael Daffin
6f6af4b3eb
Bumps minimum rust version to 1.8.0 and package version to 0.1.1
2017-04-03 23:10:49 +01:00
Michael Daffin
c443305e0c
Merge pull request #2 from mulkieran/master-minor
...
Minor tweaks
2017-04-03 22:49:21 +01:00
mulhern
24026db7d7
Broaden &str parameter type to AsRef<Path>
...
In case client code wants to use methods with a PathBuf or Path.
Signed-off-by: mulhern <amulhern@redhat.com>
2017-03-28 10:10:43 -04:00
mulhern
01be1525b0
Use format! to get device node for loop device
...
_Slightly_ more idiomatic.
Signed-off-by: mulhern <amulhern@redhat.com>
2017-03-28 10:10:43 -04:00