mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
devmapper: add missing defines
Add some missing defines which are needed for compiling on older systems like RHEL 6.
This commit is contained in:
parent
5f5949f6a6
commit
a015f38f4a
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,14 @@ package devmapper
|
||||||
#include <linux/loop.h> // FIXME: present only for defines, maybe we can remove it?
|
#include <linux/loop.h> // FIXME: present only for defines, maybe we can remove it?
|
||||||
#include <linux/fs.h> // FIXME: present only for BLKGETSIZE64, maybe we can remove it?
|
#include <linux/fs.h> // FIXME: present only for BLKGETSIZE64, maybe we can remove it?
|
||||||
|
|
||||||
|
#ifndef LOOP_CTL_GET_FREE
|
||||||
|
#define LOOP_CTL_GET_FREE 0x4C82
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LO_FLAGS_PARTSCAN
|
||||||
|
#define LO_FLAGS_PARTSCAN 8
|
||||||
|
#endif
|
||||||
|
|
||||||
// FIXME: Can't we find a way to do the logging in pure Go?
|
// FIXME: Can't we find a way to do the logging in pure Go?
|
||||||
extern void DevmapperLogCallback(int level, char *file, int line, int dm_errno_or_class, char *str);
|
extern void DevmapperLogCallback(int level, char *file, int line, int dm_errno_or_class, char *str);
|
||||||
|
|
||||||
|
@ -55,7 +63,6 @@ type (
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// FIXME: Make sure the values are defined in C
|
|
||||||
// IOCTL consts
|
// IOCTL consts
|
||||||
const (
|
const (
|
||||||
BlkGetSize64 = C.BLKGETSIZE64
|
BlkGetSize64 = C.BLKGETSIZE64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue