summaryrefslogtreecommitdiff
path: root/daemon/graphdriver/btrfs/btrfs_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/containerfs: alias ContainerFS to stringCory Snider2022-09-231-3/+1
| | | | | | Drop the constructor and redundant string() type-casts. Signed-off-by: Cory Snider <csnider@mirantis.com>
* pkg/containerfs: simplify ContainerFS typeCory Snider2022-09-231-1/+1
| | | | | | Iterate towards dropping the type entirely. Signed-off-by: Cory Snider <csnider@mirantis.com>
* Update to Go 1.17.0, and gofmt with Go 1.17Sebastiaan van Stijn2021-08-241-0/+1
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Add canonical import commentDaniel Nephin2018-02-051-1/+1
| | | | Signed-off-by: Daniel Nephin <dnephin@docker.com>
* LCOW: Implemented support for docker cp + buildAkash Gupta2017-09-141-1/+3
| | | | | | | | | | This enables docker cp and ADD/COPY docker build support for LCOW. Originally, the graphdriver.Get() interface returned a local path to the container root filesystem. This does not work for LCOW, so the Get() method now returns an interface that LCOW implements to support copying to and from the container. Signed-off-by: Akash Gupta <akagup@microsoft.com>
* Pass all graphdriver create() parameters in a structVivek Goyal2016-11-091-1/+1
| | | | | | | | This allows for easy extension of adding more parameters to existing parameters list. Otherwise adding a single parameter changes code at so many places. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
* Adding readOnly parameter to graphdriver Create methodStefan J. Wernli2016-04-061-1/+1
| | | | | | | | | | | | | | | Since the layer store was introduced, the level above the graphdriver now differentiates between read/write and read-only layers. This distinction is useful for graphdrivers that need to take special steps when creating a layer based on whether it is read-only or not. Adding this parameter allows the graphdrivers to differentiate, which in the case of the Windows graphdriver, removes our dependence on parsing the id of the parent for "-init" in order to infer this information. This will also set the stage for unblocking some of the layer store unit tests in the next preview build of Windows. Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
* CLI flag for docker create(run) to change block device size.Shishir Mahajan2016-03-281-1/+1
| | | | Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>
* Fix btrfs recursive btrfs subvol deleteBrian Goff2015-12-151-0/+32
| | | | | | | | | | | | | | | | | | | Really fixing 2 things: 1. Panic when any error is detected while walking the btrfs graph dir on removal due to no error check. 2. Nested subvolumes weren't actually being removed due to passing in the wrong path On point 2, for a path detected as a nested subvolume, we were calling `subvolDelete("/path/to/subvol", "subvol")`, where the last part of the path was duplicated due to a logic error, and as such actually causing point #1 since `subvolDelete` joins the two arguemtns, and `/path/to/subvol/subvol` (the joined version) doesn't exist. Also adds a test for nested subvol delete. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
* cleanup and fix btrfs subvolume recursion deletionJessica Frazelle2015-08-251-1/+2
| | | | Signed-off-by: Jessica Frazelle <acidburn@docker.com>
* Windows: Don't build Linux graph driversJohn Howard2015-06-081-0/+2
| | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* update go import path and libcontainerVictor Vieux2014-07-241-1/+1
| | | | Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
* graphdriver: Add generic test framework for graph driversAlexander Larsson2014-05-091-0/+28
This adds daemon/graphdriver/graphtest/graphtest which has a few generic tests for all graph drivers, and then uses these from the btrs, devicemapper and vfs backends. I've not yet added the aufs backend, because i can't test that here atm. It should work though. Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)