Skip to content

Statfs calls return incorrect inode information on btrfs workers #2227

Closed as not planned

Description

@ctaymor

Bug Report

When testing metrics information, my code makes statfs system calls on a linux container on the concourse worker. This worked fine in Concourse 3.9.0 but is broken after upgrading to 3.12.0.

The statfs calls report 0 inodes total, 0 inodes used, and 0 inodes free for a folder which has files in it. This behavior is also observable by running df -i / and observing no inodes, since df uses statfs under the hood. I would expect the syscall, whether run through our go code or df -i to return a positive number of inodes when there are files in /.

This may be an issue with btrfs, but we want to raise the issue here in case there are fixes that can be done at the concourse level, and get your advice for workarounds.

One possible workaround is to switch to the overlay driver (we have not tested this but we believe it might work), but we don't fully understand the consequences of doing so. It sounds like it had some significant performance problems that caused you to switch back to btrfs as default.

Do you have any other suggested fixes or workarounds? Is it reasonable to assume this is just a btrfs quirk/problem?

  • Concourse version: 3.12.0
  • Deployment type (BOSH/Docker/binary): bosh using concourse-bosh-deployment
  • Infrastructure/IaaS: GCP
  • Did this used to work? Yes, on 3.9.0
  • Driver: default (so btrfs)

Activity

  1. taylorsilva commented on Jan 6, 2025

    @taylorsilva
    Member

    Issue Bankruptcy

    This issue is being closed as part of 2025's Issue Bankruptcy declaration. See here for details

    If you think this issue still has merit then feel free to open a new issue and reference this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions