Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 1d2c718

Browse files
committed
Use full command name of "thin_delta"
1 parent f34efc4 commit 1d2c718

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

devmapper/devmapper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ func (d *Driver) CompareSnapshot(id, compareID, volumeID string) (*metadata.Mapp
383383
}
384384

385385
dev := d.MetadataDevice
386-
out, err := exec.Command("thin_delta", "--snap1", strconv.Itoa(snap1.DevID), "--snap2", strconv.Itoa(snap2.DevID), dev).Output()
386+
out, err := exec.Command("pdata_tools", "thin_delta",
387+
"--snap1", strconv.Itoa(snap1.DevID), "--snap2", strconv.Itoa(snap2.DevID), dev).Output()
387388
if err != nil {
388389
return nil, err
389390
}

drivers/drivers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Mount(driver Driver, volumeUUID, mountPoint, fstype, option string, needFor
5757
return fmt.Errorf("unsupported filesystem ", fstype)
5858
}
5959
if needFormat {
60-
if err := exec.Command("mkfs", "-t", fstype, dev).Run(); err != nil {
60+
if err := exec.Command("mkfs."+fstype, dev).Run(); err != nil {
6161
return err
6262
}
6363
}

0 commit comments

Comments
 (0)