Commit graph

  • 4728e97f59
    32-bit support master Rifat Azad 2025-05-18 10:08:27 +06:00
  • 7a921f8d96 Revert "Use bindgen to generate loopdev bindings" LoveSy 2024-02-05 14:54:36 +08:00
  • b6ca5e3ea1
    Wait for ueventd to create loop device on Android tiann 2023-02-20 10:00:36 +08:00
  • 64a8ddbe1c
    Add LoopControl::add (#56) Felix Obenhuber 2022-11-11 01:19:23 +01:00
  • 99a366219a
    Adds a test for part_scan support (#55) Michael Daffin 2022-10-31 00:49:58 +00:00
  • d2f96c2856
    Updates losetup deps and adds partscan option (#54) Michael Daffin 2022-10-30 22:24:10 +00:00
  • 9438762ef1
    Add error docs and some fixes for clippy pendantic lints (#53) Michael Daffin 2022-10-30 00:41:21 +00:00
  • 1b66a5cec9
    Run cargo fmt over the project (#52) Michael Daffin 2022-10-29 23:02:58 +00:00
  • d9fb0c5c57
    Fix the AttachOptions.part_scan function (#50) player-two 2022-10-29 17:48:27 -05:00
  • d04dc379de
    Upgrade to 2021 edition (#51) Michael Daffin 2022-10-29 22:37:41 +00:00
  • 2f5763ff71
    Generalize some test code for multiple architectures (#49) mulkieran 2022-10-10 03:53:48 -04:00
  • 5ba76236aa
    Remove an unused crate (#48) mulkieran 2022-09-21 07:59:06 -04:00
  • 0c80659ada
    fix: bump bindgen version (#47) banditopazzo 2022-09-21 13:58:11 +02:00
  • 79d471558e
    Bumps version to 0.4.0 (#45) Michael Daffin 2021-10-27 13:17:37 +00:00
  • 067b633487
    Bumps deps and ubuntu version in vagrant (#44) Michael Daffin 2021-10-27 13:12:41 +00:00
  • 16e7567908
    When creating a read-only loopdev, do not request write access to the backing file. (#43) klhowell 2021-10-12 08:15:05 -04:00
  • 5e7cbb3108
    add support for musl (#42) jsen- 2021-09-03 11:35:55 +02:00
  • 7efea6b311
    Disable most features of bindgen to reduce dependencies (#41) Josh Triplett 2021-08-09 07:38:18 -07:00
  • 8453a6d984
    Removes deprecated methods (#40) Michael Daffin 2021-07-02 19:26:22 +01:00
  • 0108b3c741
    Puts direct_io support behind a feature flag (#39) Michael Daffin 2021-06-29 01:15:18 +01:00
  • 14af6ff6f2 Remove cleanup in travis Michael Daffin 2021-06-17 10:31:46 +01:00
  • afd76e2126 Updates cargo token Michael Daffin 2021-06-17 10:04:07 +01:00
  • 8f4d2c6176 Removes target dir in travis Michael Daffin 2021-06-17 01:08:48 +01:00
  • bc3d02854d Revert "Bump patch version for release" Michael Daffin 2021-06-17 00:07:08 +01:00
  • 75899b02f0 Bump patch version for release Michael Daffin 2021-06-16 23:57:39 +01:00
  • 19e8b82825 Remove mut from with and AttachOptions to make it consistant with the other methods Michael Daffin 2021-06-01 09:57:57 +01:00
  • 534b5a4f13 Updates documentation to use disk.img instead of test.img and adds an extra module example with the options Michael Daffin 2021-06-01 09:57:22 +01:00
  • 87a6cb2ec4 Add read_only, autoclear and direct IO Felix Obenhuber 2021-05-27 08:50:47 +02:00
  • ef2132a4a5 Replace LoopDevice::metadata with major and minor Felix Obenhuber 2021-05-31 16:14:20 +02:00
  • 576a69d005 Add metadata for a LoopDevice Felix Obenhuber 2021-05-27 08:49:02 +02:00
  • 795985823f Implement AsRawFd and IntoRawFd for LoopControl and LoopDevice Felix Obenhuber 2021-05-27 08:46:36 +02:00
  • fa340933ac Bionics ioctl signature differs from glibc Felix Obenhuber 2021-05-27 09:40:01 +02:00
  • cb6dd02dd4 Use bindgen to generate loopdev bindings Felix Obenhuber 2021-05-27 09:17:19 +02:00
  • 4a81d103b4 Make LOOP_PREFIX target_os specific Felix Obenhuber 2021-05-27 08:43:45 +02:00
  • 506eb1494b Change examples to use different loopback devices Michael Daffin 2021-04-02 14:02:45 +01:00
  • 15b271f886 Adds a couple extra doc block examples Michael Daffin 2021-04-02 13:51:44 +01:00
  • 0389b268e2 Adds basic docs for AttachDevice Michael Daffin 2021-04-02 12:46:11 +01:00
  • bce615096f Remove the partscan helper function Michael Daffin 2021-04-02 12:25:15 +01:00
  • 898d7de60d Bump losetup lockfile and min version Michael Daffin 2021-03-31 01:50:21 +01:00
  • f042787aa8 Bumps minimum rust version Michael Daffin 2021-03-31 01:31:56 +01:00
  • 1ec9826012 Changes to use the builder pattern for attaching devices Michael Daffin 2021-03-31 00:47:13 +01:00
  • c845c150c2 Renames the loop_info64 struct Michael Daffin 2021-03-30 22:54:39 +01:00
  • 3422a332ef Make loop_info64 private Michael Daffin 2021-03-30 22:25:56 +01:00
  • b063c2baa0 Fixes example test and makes attach_with_loop_info consume the loop_info64 struct Michael Daffin 2021-03-30 22:23:48 +01:00
  • 7cbcf81180 Adds automatic partition scanning function Rodolphe CHE 2021-02-27 21:24:41 +01:00
  • 090a699f39 Adds a note to the detach doc block Michael Daffin 2019-08-11 12:38:39 +01:00
  • 9ad0c53029 Adds tests for detach Michael Daffin 2019-08-10 23:38:40 +01:00
  • 63a0a32698 Adds inital intergration tests for attach Michael Daffin 2019-08-08 07:17:49 +01:00
  • b37c392fa7 Refactors the error handling to remove some duplication Michael Daffin 2019-08-10 13:49:12 +01:00
  • 8c94765ed5 Narrorws the scope of the unsafe blocks Michael Daffin 2019-08-07 19:35:18 +01:00
  • 79b92dfbd8 Converts try! to ? Michael Daffin 2019-08-07 19:24:17 +01:00
  • a773d61629 Add cmd to install gcc on Vagrantfile in order to build libc crate Jonathas-Conceicao 2019-08-07 13:55:58 -03:00
  • 12d08fda1f Fixes lints and updates the format to latest rust fmt Michael Daffin 2019-08-07 18:49:41 +01:00
  • a72c6f83e1
    Merge pull request #15 from eldebrim/master Michael Daffin 2018-10-14 11:17:00 +00:00
  • 66add7985b Spelling fixes for README.md and comments Mohamed Eldebri 2018-10-13 20:52:35 -07:00
  • c34eae542f release(0.2.1): Implements AsRawFd Michael Daffin 2018-10-04 11:30:25 +01:00
  • 42c88b1067
    Merge pull request #14 from mdaffin/deployments Michael Daffin 2018-10-04 10:28:49 +00:00
  • f19c524122 removes building of losetup Michael Daffin 2018-10-04 11:22:14 +01:00
  • c6bdb1b536 chore(ci): Adds a automated publish to crates.io Michael Daffin 2018-10-02 12:18:48 +01:00
  • 8cd270b7e0 chore: formats the travis script with perttier Michael Daffin 2018-10-02 12:17:55 +01:00
  • da78fbbf81
    Merge pull request #13 from mdaffin/update-ci-scripts Michael Daffin 2018-10-02 09:06:36 +00:00
  • a292e40704 chore(ci): adds clippy and enable verbose builds Michael Daffin 2018-10-02 09:36:24 +01:00
  • 31658db8c9
    Merge pull request #12 from mmstick/master Michael Daffin 2018-10-01 23:48:20 +00:00
  • 2dcb405ff5 Implement AsRawFd for LoopDevice Michael Aaron Murphy 2018-10-01 13:28:29 -06:00
  • a92fc28b81
    Merge pull request #11 from mdaffin/versionbump Michael Daffin 2018-08-15 11:58:45 +00:00
  • 317101f436 Bumps the version to 0.3.0-dev Michael Daffin 2018-08-15 12:05:04 +01:00
  • 21dbf307ff
    Merge pull request #10 from mdaffin/update-deps Michael Daffin 2018-08-15 11:01:01 +00:00
  • 551c987f46 chore(vagrant): Adds a vagrant file Michael Daffin 2018-08-15 11:50:17 +01:00
  • e43e4cc630 fix(travis): bumps the minimum version of rust to 1.17.0 Michael Daffin 2018-08-15 11:42:21 +01:00
  • f8d82ab5f8 fix(gitignore): adds *.rustfmt Michael Daffin 2018-08-15 09:46:06 +01:00
  • a848decf5e fix(clippy): removes 'static lifetime from const Michael Daffin 2018-08-15 09:45:43 +01:00
  • cd9bcf1bc2
    Merge pull request #9 from mdaffin/0.2.0 Michael Daffin 2017-12-20 18:31:44 +00:00
  • a28775926b Adds support for set_capacity ioctl Michael Daffin 2017-12-20 17:06:10 +00:00
  • 4cf1ce4ec7 Refactors losetup Michael Daffin 2017-12-20 16:11:54 +00:00
  • 857d5b8a84 Fixes losetup and renames size to sizelimit Michael Daffin 2017-12-19 13:11:56 +00:00
  • 304953f69f Renames get_path to path Michael Daffin 2017-12-19 12:56:00 +00:00
  • a0befc5b3e Splits out the attach method into three convinence function Michael Daffin 2017-12-19 12:52:46 +00:00
  • 01befeb3d9
    Merge pull request #8 from abrodersen/sizelimit Michael Daffin 2017-12-19 11:06:10 +00:00
  • 13a6716c66 Allow setting sizelimit when attaching file. Aaron Brodersen 2017-12-18 16:48:17 -06:00
  • a742e44239 Bumps version of losetup Michael Daffin 2017-12-05 14:11:00 +00:00
  • d7c4c5e403 Bumps the version to 0.1.3 Michael Daffin 2017-12-05 14:05:16 +00:00
  • 2d9774adb2 Removes doc building and adds building losetup to travis Michael Daffin 2017-12-05 10:44:19 +00:00
  • 8a2865a046 Updates and fixes losetup binray Michael Daffin 2017-12-05 10:23:43 +00:00
  • 11151a8879 Changes the global statics to consts Michael Daffin 2017-12-05 10:23:17 +00:00
  • ce02632f84
    Merge pull request #7 from ignatenkobrain/u32 Michael Daffin 2017-12-04 17:21:30 +00:00
  • 03c32a8e3e
    Merge pull request #5 from ignatenkobrain/patch-1 Michael Daffin 2017-12-04 17:20:39 +00:00
  • f96fcad1a4 Bumps the minimum tested version to 1.9.0 Michael Daffin 2017-12-04 17:15:38 +00:00
  • 88a23e80d0 use u16 for ioctl() request and convert it to required type Josh Stone 2017-12-01 00:18:52 +01:00
  • 21c6968289
    bump errno to 0.2 Igor Gnatenko 2017-11-30 18:35:18 +01:00
  • b3d3d29d71 Fixes documentation link Michael Daffin 2017-05-05 21:00:12 +01:00
  • 8223fff5ad Adds documentation link and badges to the crate Michael Daffin 2017-05-05 20:58:35 +01:00
  • 1ddf223ab9 Adds crates badge Michael Daffin 2017-05-05 20:50:03 +01:00
  • 49163bce30 Changes documentation link and removes homepage Michael Daffin 2017-05-05 20:39:08 +01:00
  • ec338de232 Merge pull request #4 from mdaffin/remove-rustc-serialize Michael Daffin 2017-05-04 23:11:38 +01:00
  • 7e046fe728 Converts losetup to use clap Michael Daffin 2017-05-04 22:46:23 +01:00
  • e2b15aad5e Moves losetup to a subcrate Michael Daffin 2017-04-30 19:27:20 +01:00
  • 6f6af4b3eb Bumps minimum rust version to 1.8.0 and package version to 0.1.1 Michael Daffin 2017-04-03 23:10:49 +01:00
  • c443305e0c Merge pull request #2 from mulkieran/master-minor Michael Daffin 2017-04-03 22:49:21 +01:00
  • 24026db7d7 Broaden &str parameter type to AsRef<Path> mulhern 2017-03-28 09:56:49 -04:00
  • 01be1525b0 Use format! to get device node for loop device mulhern 2017-03-28 09:53:43 -04:00
  • b15f960ec9 Do not bother to specify type of result mulhern 2017-03-28 09:48:26 -04:00
  • 22dca1f4cf Fix a typo mulhern 2017-03-28 09:43:33 -04:00
  • 57403d6631 Avoid a warning mulhern 2017-03-28 09:35:51 -04:00
  • 80ed392b55 Fixes keyword Michael Daffin 2016-05-21 00:30:44 +01:00
  • d085f4217b Small tweaks to the generated docs Michael Daffin 2016-05-20 23:54:30 +01:00
  • 2fff5bcf69 Adds some needed files Michael Daffin 2016-05-20 23:33:08 +01:00
  • f602c67000 Allows nightly builds to fail Michael Daffin 2016-05-20 21:54:16 +01:00
  • da6e4fe144 Fixes travis builds Michael Daffin 2016-05-18 01:36:34 +01:00
  • 5979f16e86 Attempt to fix tests Michael Daffin 2016-05-18 01:30:15 +01:00
  • 42d78b94b6 Refactor and documentation Michael Daffin 2016-05-18 01:28:44 +01:00
  • ea770b06ff Implments detach and allows attach to specific dev Michael Daffin 2016-05-17 23:20:10 +01:00
  • a6d2de2f7a Inital implmentation of LoopDevice::new Michael Daffin 2016-05-17 01:17:47 +01:00
  • c1debf14db Implemnts detach (untested) Michael Daffin 2016-05-17 01:08:45 +01:00
  • 702ed8c5bd Implements LoopDevice::attach Michael Daffin 2016-05-17 00:51:05 +01:00
  • 160845dd62 Removes need to store filename of the device Michael Daffin 2016-05-16 22:56:59 +01:00
  • 4f1b6321d4 Removes all rust versions except 1.3.0, stable, beta and nightly Michael Daffin 2016-05-16 21:43:02 +01:00
  • 65de6f605f Enables travis for all version of rust Michael Daffin 2016-05-16 19:40:06 +01:00
  • 57231af779 Refactors tests to work with the code refactor Michael Daffin 2016-05-16 19:08:58 +01:00
  • 7c9961365e Fixes LoopControl test Michael Daffin 2016-05-16 15:51:46 +01:00
  • cf9c68c049 Converts to std::fs::File instead of libc::open Michael Daffin 2016-05-16 00:50:05 +01:00
  • 7e0ca052af Converts to use a LoopDevice instead of Strings Michael Daffin 2016-05-15 22:14:40 +01:00
  • f34dba3579 Implments find in the bin Michael Daffin 2016-05-06 14:32:24 +01:00
  • 2101db243d Another attempt to fix nightly Michael Daffin 2016-04-25 13:44:50 +01:00
  • 0c2bf9d06c Fix nightly builds Michael Daffin 2016-04-25 13:41:14 +01:00
  • 54b56c5047 Adds travis.yml Michael Daffin 2016-04-25 13:37:42 +01:00
  • 885228ee43 Rename to loopdev Michael Daffin 2016-04-25 13:20:41 +01:00
  • 8f70b3367c Adds more tests Michael Daffin 2016-04-25 13:19:11 +01:00
  • c3a05c2e88 Adds basic LoopControl struct Michael Daffin 2016-04-25 01:13:57 +01:00
  • 7cc176fc38 Inital commit Michael Daffin 2016-04-21 17:32:41 +01:00