Uploaded image for project: 'CernVM'
  1. CernVM
  2. CVM-853

Replace `attr -qg root_hash` in cvmfs_server

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: CernVM-FS 2.1.20
    • Fix Version/s: CernVM-FS 2.2.0
    • Component/s: CVMFS
    • Labels:
      None
    • Platforms:
      x86_64-slc6-gcc48-opt

      Description

      Sometimes attr -qg root_hash fails with attr_get: Cannot allocate memory when using cvmfs_server. This problem seems to come up quite randomly and has proven to be hard to track down.

      A possible solution would be to replace this in cvmfs_server by another mechanism to get the currently mounted root hash. Maybe a call to cvmfs_talk would do the trick.

        Attachments

          Issue Links

            Activity

            Hide
            jblomer Jakob Blomer added a comment -

            If we do this in cvmfs_server, we can use our code base to get extended attributes. The problem is that the attr utility reserves 64kB no matter how large the value actually is (which triggers a 64kB allocation in kernel memory).

            Show
            jblomer Jakob Blomer added a comment - If we do this in cvmfs_server, we can use our code base to get extended attributes. The problem is that the attr utility reserves 64kB no matter how large the value actually is (which triggers a 64kB allocation in kernel memory).
            Hide
            rmeusel Rene Meusel (Inactive) added a comment -

            Opened a Pull Request for this.

            Show
            rmeusel Rene Meusel (Inactive) added a comment - Opened a Pull Request for this.

              People

              • Assignee:
                rmeusel Rene Meusel (Inactive)
                Reporter:
                rmeusel Rene Meusel (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: