Skip to content

daemon/graphdriver/btrfs: workaround field rename in btrfs-progs 6.1#44707

Merged
neersighted merged 1 commit intomoby:masterfrom
zhsj:btrfs-progs-6.1
Dec 29, 2022
Merged

daemon/graphdriver/btrfs: workaround field rename in btrfs-progs 6.1#44707
neersighted merged 1 commit intomoby:masterfrom
zhsj:btrfs-progs-6.1

Conversation

@zhsj
Copy link
Copy Markdown
Contributor

@zhsj zhsj commented Dec 28, 2022

Closes: #44698

An ugly hack, but hmm...

@thaJeztah
Copy link
Copy Markdown
Member

Hmm interesting error from GitHub;

ADD failed: failed to GET https://github.com/moby/busybox/releases/download/FRP-3329-gcf0fa4d13/busybox-w32-FRP-3329-gcf0fa4d13.exe with status 503 Service Unavailable: <?xml version="1.0" encoding="utf-8"?><Error><Code>ServerBusy</Code><Message>Egress is over the account limit.

Copy link
Copy Markdown
Contributor

@corhere corhere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That hack is beautiful! I'm ashamed I hadn't thought of it myself.

Comment thread daemon/graphdriver/btrfs/btrfs.go Outdated
Comment on lines 7 to 12
// keep struct field name compatible with btrfs-progs < 6.1.
#define max_referenced max_rfer

#include <stdlib.h>
#include <dirent.h>
#include <btrfs/ioctl.h>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// keep struct field name compatible with btrfs-progs < 6.1.
#define max_referenced max_rfer
#include <stdlib.h>
#include <dirent.h>
#include <btrfs/ioctl.h>
#include <stdlib.h>
#include <dirent.h>
// keep struct field name compatible with btrfs-progs < 6.1.
#define max_referenced max_rfer
#include <btrfs/ioctl.h>

Just to be safe, in case the libc headers contain a max_referenced token.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

daemon/graphdriver/btrfs/btrfs.go args.lim.max_referenced undefined

4 participants