Skip to content

Commit

Permalink
devmapper: resizepool hardcodes files as well
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Batts <vbatts@redhat.com>
  • Loading branch information
vbatts committed Sep 22, 2014
1 parent 7e9ba22 commit 636e856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/graphdriver/devmapper/deviceset.go
Expand Up @@ -466,7 +466,13 @@ func minor(device uint64) uint64 {
func (devices *DeviceSet) ResizePool(size int64) error {
dirname := devices.loopbackDir()
datafilename := path.Join(dirname, "data")
if len(devices.dataDevice) > 0 {
datafilename = devices.dataDevice
}
metadatafilename := path.Join(dirname, "metadata")
if len(devices.metadataDevice) > 0 {
metadatafilename = devices.metadataDevice
}

datafile, err := os.OpenFile(datafilename, os.O_RDWR, 0)
if datafile == nil {
Expand Down

0 comments on commit 636e856

Please sign in to comment.