They say we should only use the BTRFS_LIB_VERSION
They will no longer support this since it had to be managed manually
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
| ... | ... |
@@ -61,9 +61,6 @@ func (d *Driver) String() string {
|
| 61 | 61 |
|
| 62 | 62 |
func (d *Driver) Status() [][2]string {
|
| 63 | 63 |
status := [][2]string{}
|
| 64 |
- if bv := BtrfsBuildVersion(); bv != "-" {
|
|
| 65 |
- status = append(status, [2]string{"Build Version", bv})
|
|
| 66 |
- } |
|
| 67 | 64 |
if lv := BtrfsLibVersion(); lv != -1 {
|
| 68 | 65 |
status = append(status, [2]string{"Library Version", fmt.Sprintf("%d", lv)})
|
| 69 | 66 |
} |
| ... | ... |
@@ -6,8 +6,8 @@ import ( |
| 6 | 6 |
"testing" |
| 7 | 7 |
) |
| 8 | 8 |
|
| 9 |
-func TestBuildVersion(t *testing.T) {
|
|
| 10 |
- if len(BtrfsBuildVersion()) == 0 {
|
|
| 11 |
- t.Errorf("expected output from btrfs build version, but got empty string")
|
|
| 9 |
+func TestLibVersion(t *testing.T) {
|
|
| 10 |
+ if BtrfsLibVersion() <= 0 {
|
|
| 11 |
+ t.Errorf("expected output from btrfs lib version > 0")
|
|
| 12 | 12 |
} |
| 13 | 13 |
} |