Clayton Coleman
029625981d
Fix typo in devmapper error message
2013-12-25 15:49:58 -05:00
Michael Crosby
7bc96aec7b
Improve interface by moving to subpkg
...
Enable builds on OSX
2013-12-18 16:42:49 -08:00
Michael Crosby
a6fdc5d208
Fix unmount issues
2013-12-18 15:24:08 -08:00
Michael Crosby
45d7dcfea2
Handle external mounts outside of lxc
2013-12-18 13:46:02 -08:00
Guillaume J. Charmes
e481c82fa9
Fix OSX compilation for aufs
2013-12-18 10:18:49 -08:00
Guillaume J. Charmes
f5ab2516d8
Merge pull request #2897 from crosbymichael/aufs-42
...
Increase max image depth to 127
2013-12-13 16:03:57 -08:00
Josh Poimboeuf
a015f38f4a
devmapper: add missing defines
...
Add some missing defines which are needed for compiling on older systems
like RHEL 6.
2013-12-06 10:13:47 -06:00
Victor Vieux
5f55c1aee1
Merge pull request #2966 from andrewsmedina/govet2
...
fixed some `go vet` issues.
2013-12-04 17:57:10 -08:00
Andrews Medina
fea432bdf5
fixed `Looback` typo.
2013-11-30 16:28:52 -02:00
Andrews Medina
e8437e8fcf
using `errors.New` instead `fmt.Error`.
2013-11-30 01:02:09 -02:00
Andrews Medina
a6c9a332d0
fixed some `go vet` issues.
2013-11-29 22:53:20 -02:00
Guillaume J. Charmes
f72e604872
Merge branch 'master' into docker-osx
2013-11-28 21:16:32 -08:00
Guillaume J. Charmes
261bd0d187
Improve devmapper unit tests with syscall/ioctl
2013-11-28 11:53:09 -08:00
Guillaume J. Charmes
a990b3aeb9
Correct comments
2013-11-28 11:02:53 -08:00
Guillaume J. Charmes
533067bba4
Rename file for consistency
2013-11-28 10:37:03 -08:00
Guillaume J. Charmes
24c03b2d93
Make devicemapper linux-only
2013-11-27 19:12:51 -08:00
Guillaume J. Charmes
8a5d927a53
Check if the target loopback is a block device
2013-11-27 18:21:17 -08:00
Guillaume J. Charmes
1214b8897b
Extract ioctl from wrapper
2013-11-27 17:47:20 -08:00
Guillaume J. Charmes
eb528b959e
Move attach loop device to its own file
2013-11-27 17:12:57 -08:00
Guillaume J. Charmes
74c8f7af75
Refactor attach loop device in pure Go
2013-11-27 15:39:30 -08:00
Michael Crosby
6d34c50e89
Increase max image depth to 127
2013-11-26 17:04:55 -08:00
Guillaume J. Charmes
78d2e2dc37
Reduce debugf frequency to avoid terminal freeze
2013-11-25 12:06:16 -08:00
Michael Crosby
8b0b10b6f9
Rename dummy in driver.go to vfs
2013-11-25 10:28:17 -08:00
Michael Crosby
cee0a292d0
Rename dummy driver to vfs
2013-11-25 09:04:04 -08:00
Guillaume J. Charmes
79e2b33ede
Use variable to call functions in devmapper_wrapper + some formatting
2013-11-22 12:25:37 -08:00
Michael Crosby
437bdeee59
Merge pull request #62 from shykes/devmapper-unit-tests
...
Devmapper unit tests
2013-11-21 16:54:50 -08:00
Guillaume J. Charmes
bc82940a57
Forbid syscalls in tests, add 2 new unit tests
2013-11-21 16:32:16 -08:00
Solomon Hykes
df258f5861
Devmapper: test driver initialization and its interaction with libdevmapper
2013-11-21 02:17:03 +00:00
Solomon Hykes
60f728b170
Devmapper: wrap calls to os/exec for easier mocking
2013-11-21 02:16:26 +00:00
Solomon Hykes
2b7c63b1b5
devmapper: skip test which are not unit tests
2013-11-21 02:12:51 +00:00
Michael Crosby
5306053e21
Add more aufs tests and implement Status
2013-11-20 15:41:37 -08:00
Solomon Hykes
e2390318bb
Devmapper: mock all calls to libdevmapper in the unit tests, and deny them by default
2013-11-20 23:39:02 +00:00
Solomon Hykes
da514223d1
Devmapper: remove deprecated test helpers
2013-11-20 23:25:27 +00:00
Solomon Hykes
023ff36704
devmapper: fix typo
2013-11-20 23:12:19 +00:00
Guillaume J. Charmes
d233894c25
Add devmapper struct doc
2013-11-20 14:09:46 -08:00
Guillaume J. Charmes
a39bd65662
Remove os from devmapper
2013-11-20 13:05:17 -08:00
Guillaume J. Charmes
5690139785
Remove all syscall calls from devicemapper
2013-11-20 12:49:01 -08:00
Solomon Hykes
92f94f06ae
Mock calls to system functions to facilitate unit testing
2013-11-20 20:05:10 +00:00
Michael Crosby
1b28cdc7f9
Handle image metadata when drivers are switched
2013-11-20 10:31:51 -08:00
Michael Crosby
d4ef551d65
Merge pull request #53 from shykes/improve_cleanup
...
Improve aufs cleanup and debugging
2013-11-19 17:16:36 -08:00
Victor Vieux
76f54f3a28
Merge pull request #39 from crosbymichael/add-driver-flag
...
Add flag to set default graph driver
2013-11-19 17:16:25 -08:00
Victor Vieux
43899a77bf
improve aufs cleanup and debugging
2013-11-19 17:12:37 -08:00
Guillaume J. Charmes
3e0a5ac48b
Merge pull request #41 from alexlarsson/dm-plugin-device-tool
...
Update docker-device-tool
2013-11-19 15:38:47 -08:00
Guillaume J. Charmes
12e993549d
Fix unit-tests
2013-11-19 15:24:14 -08:00
Victor Vieux
5a4113140e
Merge pull request #43 from alexlarsson/dm-plugin-use-root-subdir
...
devmapper: Use a "root" subdirectory in the devmapper volume
2013-11-19 13:51:04 -08:00
Victor Vieux
85b5062502
Merge pull request #44 from crosbymichael/container-migration
...
Container and Image migration for aufs
2013-11-19 13:47:23 -08:00
Michael Crosby
4c2624a277
Merge pull request #45 from alexlarsson/dm-plugin-diff-size
...
Implement fallback for getting the size of a container
2013-11-19 10:25:31 -08:00
Michael Crosby
f4b3b7c055
Merge pull request #47 from alexlarsson/dm-plugin-ummount-when-removing
...
Devicemapper: Unmount when removing device
2013-11-19 10:24:44 -08:00
Alexander Larsson
0ed762f2d2
devicemapper: Unmount when removing device
...
Without this the remove will fail due to a busy device.
2013-11-19 14:40:15 +01:00
Alexander Larsson
242fd4b3ef
dummy driver: Use cp --reflink=auto to copy directories
...
On systems that supports reflinking (i.e. btrfs) this means the dummy
backend is much faster at copying files and will be sharing file data in
a CoW fashion.
On my (btrfs) system this makes "docker run ubuntu echo hello world" go
from about 3 seconds to about 1 second. Not instant, but clearly better.
cp --reflink=auto is availible since coreutils 7.5 (around 2009), so this
seems pretty ok to rely on.
cp is also better at preserving file metadata than tar, so for instance
it will copy xattrs.
2013-11-19 13:09:36 +01:00