Skip to content

Commit

Permalink
feat(btrfs): adding support to have btrfs filesystem for ZFS-LocalPV
Browse files Browse the repository at this point in the history
Now, applications can use the btrfs file system by mentioning "btrfs"
as fstype in the storageclass :-

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: openebs-zfspv
parameters:
  fstype: "btrfs"
  poolname: "zfspv-pool"
provisioner: zfs.csi.openebs.io

Signed-off-by: Pawan <pawan@mayadata.io>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

update changelog
Signed-off-by: vaniisgh <vanisingh@live.uk>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

update changelog
Signed-off-by: vaniisgh <vanisingh@live.uk>

feat(btrfs): adding support to have btrfs filesystem for ZFS-LocalPV

Now, applications can use the btrfs file system by mentioning "btrfs"
as fstype in the storageclass :-

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: openebs-zfspv
parameters:
  fstype: "btrfs"
  poolname: "zfspv-pool"
provisioner: zfs.csi.openebs.io

Signed-off-by: Pawan <pawan@mayadata.io>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

update changelog
Signed-off-by: vaniisgh <vanisingh@live.uk>

feat(zfspv): check pod-status in BDD test (#171)

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

fix(btrfs): fixing duplicate UUID issue with btrfs

btrfs, like xfs, needs to generate a new UUID for the
cloned volumes. All the devices with the same UUID will be treated
same for btrfs, so here generating the new UUID for the cloned volumes
using btrfstune command.

Signed-off-by: Pawan <pawan@mayadata.io>

- fix golint warnings & golint to travis

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- merge master

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- change in manifest as make kubegen hotfix

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- revert makefile changes

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix typo

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- update yamls based on controller-gen 2.8

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint loop
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint target

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix typo
Signed-off-by: vaniisgh <vanisingh@live.co.uk>

Update Makefile

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- remove exit status

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

- fix golint

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

-fix golint dependency

Signed-off-by: vaniisgh <vanisingh@live.co.uk>

update changelog
Signed-off-by: vaniisgh <vanisingh@live.uk>
  • Loading branch information
vaniisgh committed Jul 6, 2020
1 parent fc90637 commit deb5f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/zfs/zfs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func CreateClone(vol *apis.ZFSVolume) error {
return btrfsGenerateUUID(volume)
}
if vol.Spec.FsType == "btrfs" {
return btrfsGenerateUuid(volume)
return btrfsGenerateUUID(volume)
}
if vol.Spec.FsType == "btrfs" {
return btrfsGenerateUuid(volume)
Expand Down

0 comments on commit deb5f9d

Please sign in to comment.