Commit 204599aa authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

headers: Use fs-magic.h

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6e95f544
......@@ -7,10 +7,6 @@
#include <sys/vfs.h>
#include <ctype.h>
#ifndef NFS_SUPER_MAGIC
#define NFS_SUPER_MAGIC 0x6969
#endif
/* Stolen from kernel/fs/nfs/unlink.c */
#define SILLYNAME_PREF ".nfs"
#define SILLYNAME_SUFF_LEN (((unsigned)sizeof(u64) << 1) + ((unsigned)sizeof(unsigned int) << 1))
......@@ -23,6 +19,7 @@
#include "image.h"
#include "list.h"
#include "util.h"
#include "fs-magic.h"
#include "asm/atomic.h"
#include "protobuf.h"
......
......@@ -33,6 +33,7 @@
#include "namespaces.h"
#include "tun.h"
#include "fdset.h"
#include "fs-magic.h"
#include "parasite.h"
#include "parasite-syscall.h"
......@@ -290,14 +291,6 @@ static int dump_chrdev(struct fd_parms *p, int lfd, const int fdinfo)
return do_dump_gen_file(p, lfd, ops, fdinfo);
}
#ifndef PIPEFS_MAGIC
#define PIPEFS_MAGIC 0x50495045
#endif
#ifndef ANON_INODE_FS_MAGIC
# define ANON_INODE_FS_MAGIC 0x09041934
#endif
static int dump_one_file(struct parasite_ctl *ctl, int fd, int lfd, struct fd_opts *opts,
const int fdinfo)
{
......
......@@ -19,6 +19,7 @@
#include "sk-packet.h"
#include "namespaces.h"
#include "net.h"
#include "fs-magic.h"
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
......@@ -28,10 +29,6 @@
#define SOCK_DIAG_BY_FAMILY 20
#endif
#ifndef SOCKFS_MAGIC
#define SOCKFS_MAGIC 0x534F434B
#endif
#define SK_HASH_SIZE 32
#ifndef SO_GET_FILTER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment