Commit graph

11 commits

Author SHA1 Message Date
Michael Daffin
d2f96c2856
Updates losetup deps and adds partscan option (#54)
Also fixes some other issues with the arguments.
2022-10-30 22:24:10 +00:00
Felix Obenhuber
87a6cb2ec4 Add read_only, autoclear and direct IO
Allow passing the read only and autoclear flag when attaching a backing
file. Allow to pass a raw fd instead of a Path when attaching. Add a fn
to set the direct IO flag.
2021-06-01 09:51:55 +01:00
Michael Daffin
898d7de60d Bump losetup lockfile and min version 2021-03-31 01:38:08 +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
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
8a2865a046 Updates and fixes losetup binray 2017-12-05 10:23:43 +00: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