⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gnbd.h

📁 openGFS , a kind of file system.
💻 H
字号:
/* * *    Copyright 1999 Regents of the University of Minnesota *    Portions Copyright 1999-2001 Sistina Software, Inc. *    Portions Copyright 2001 The OpenGFS Project * *    This is free software released under the GNU General Public License. *    There is no warranty for this software.  See the file COPYING for *    details. * *    See the file AUTHORS for a list of contributors. * */#ifndef _GNBD_GNBD_H#define _GNBD_GNBD_H#define GNBD_ACTION         _IO( 0xeb, 5)	/* this will replace 1-3 */#define GNBD_DEBUG_ON       _IO( 0xeb, 6)#define GNBD_DEBUG_OFF      _IO( 0xeb, 7)#define GNBD_BLKSSZESET     _IO( 0xeb, 9)#define GNBD_DEVICE         _IO( 0xeb, 10)#define GNBD_DEV_REMOVE 0#define GNBD_DEV_CREATE 1/* actions: SetIP&port, Connect, Disconnect, ForceClose * SetIP&Port: *   Real basic, just change the stored ip and port for the device. * Connect: *   make a call to trans_start_up if not already up. * Disconnect: *   ?? *   Must close socket connection, but not return errors when access. Just *   block. (or something, need to think about this.) * ForceClose: *   Shutdown socket, return errors to any pending requests. If we can, *   force usrland clients to close the device. * others? */#define GNBD_ACT_Connect    0#define GNBD_ACT_Disconnect 1#define GNBD_ACT_ForceClose 2#define GNBD_ACT_SetIPPort  3typedef struct gnbd_action_s {	uint16_t action;	uint16_t device;	uint32_t ip;	uint16_t port;} gnbd_action_t;typedef struct gnbd_device_s {	int action;	char *name;	int length;	int minor_nr;} gnbd_device_t;#endif /* _GNBD_GNBD_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -