#ifndef __CLASS_OBD_H
#define __CLASS_OBD_H
-#ifndef __KERNEL__
-# include <liblustre.h>
-#endif
#include <obd_support.h>
#include <lustre_import.h>
#include <lustre/lustre_idl.h>
#include <lprocfs_status.h>
-#if defined(__linux__)
#include <linux/obd_class.h>
-#else
-#error Unsupported operating system.
-#endif
#define OBD_STATFS_NODELAY 0x0001 /* requests should be send without delay
* and resends for avoid deadlocks */
struct rw_semaphore rsi_sem;
};
-#ifdef __KERNEL__
int server_name2index(const char *svname, __u32 *idx, const char **endptr);
-#else
-# define server_name2index(name, idx, ptr) do {} while (0)
-#endif
#endif /* __LINUX_OBD_CLASS_H */