Coder Social home page Coder Social logo

Comments (9)

Gerrit91 avatar Gerrit91 commented on July 20, 2024

Hi! Thanks for opening the issue. :)

We would be glad to see a PR for that because for us it will be hard to verify since we do not have arm64 archs.

from csi-driver-lvm.

brlbil avatar brlbil commented on July 20, 2024

The good news the code can be compiled to arm7 and arm64 with a tiny change.

One problem is I do not have much experience with the make tool and another issue would should all the supported platforms be part of the CI/CD? I might do the initial testing and modification if time allowed, but I do not know how to add arm hardware for CI/CD if it is required.

from csi-driver-lvm.

majst01 avatar majst01 commented on July 20, 2024

What are the required code changes to make it compile under arm7/arm64 ?

from csi-driver-lvm.

brlbil avatar brlbil commented on July 20, 2024
diff --git a/pkg/lvm/nodeserver.go b/pkg/lvm/nodeserver.go
index 7a8f2fa..2efc2b4 100644
--- a/pkg/lvm/nodeserver.go
+++ b/pkg/lvm/nodeserver.go
@@ -269,8 +269,8 @@ func (ns *nodeServer) NodeGetVolumeStats(ctx context.Context, in *csi.NodeGetVol
                return nil, err
        }

-       diskFree := int64(fs.Bfree) * fs.Bsize
-       diskTotal := int64(fs.Blocks) * fs.Bsize
+       diskFree := int64(fs.Bfree) * int64(fs.Bsize)
+       diskTotal := int64(fs.Blocks) * int64(fs.Bsize)

        inodesFree := int64(fs.Ffree)
        inodesTotal := int64(fs.Files)

from csi-driver-lvm.

majst01 avatar majst01 commented on July 20, 2024

This can only be true for arm7, because im almost sure on arm64 fs.Bsize is int64 already.

from csi-driver-lvm.

brlbil avatar brlbil commented on July 20, 2024

That is true. The wording is not precise since the issue is to support both arm64 and arm (arm7).

from csi-driver-lvm.

majst01 avatar majst01 commented on July 20, 2024

If you mind sending a PR, im happy to review

from csi-driver-lvm.

brlbil avatar brlbil commented on July 20, 2024

Hi, there have sent a PR, anyone up for a review?

from csi-driver-lvm.

brlbil avatar brlbil commented on July 20, 2024

Hi
The latest tagged v0.4.0 images do not have arm nor arm64 images available. Only the latest tag had them
lvmplugin tags

from csi-driver-lvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.