Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ocfs2_ioctl.h File Reference

Go to the source code of this file.

Data Structures

struct  ocfs2_space_resv
 
struct  ocfs2_new_group_input
 
struct  reflink_arguments
 
struct  ocfs2_info
 
struct  ocfs2_info_request
 
struct  ocfs2_info_clustersize
 
struct  ocfs2_info_blocksize
 
struct  ocfs2_info_maxslots
 
struct  ocfs2_info_label
 
struct  ocfs2_info_uuid
 
struct  ocfs2_info_fs_features
 
struct  ocfs2_info_journal_size
 
struct  ocfs2_info_freeinode
 
struct  ocfs2_info_freeinode::ocfs2_info_local_freeinode
 
struct  ocfs2_info_freefrag
 
struct  ocfs2_info_freefrag::ocfs2_info_freefrag_stats
 
struct  ocfs2_info_freefrag::ocfs2_info_freefrag_stats::ocfs2_info_free_chunk_list
 
struct  ocfs2_move_extents
 

Macros

#define OCFS2_IOC_GETFLAGS   FS_IOC_GETFLAGS
 
#define OCFS2_IOC_SETFLAGS   FS_IOC_SETFLAGS
 
#define OCFS2_IOC32_GETFLAGS   FS_IOC32_GETFLAGS
 
#define OCFS2_IOC32_SETFLAGS   FS_IOC32_SETFLAGS
 
#define OCFS2_IOC_ALLOCSP   _IOW ('X', 10, struct ocfs2_space_resv)
 
#define OCFS2_IOC_FREESP   _IOW ('X', 11, struct ocfs2_space_resv)
 
#define OCFS2_IOC_RESVSP   _IOW ('X', 40, struct ocfs2_space_resv)
 
#define OCFS2_IOC_UNRESVSP   _IOW ('X', 41, struct ocfs2_space_resv)
 
#define OCFS2_IOC_ALLOCSP64   _IOW ('X', 36, struct ocfs2_space_resv)
 
#define OCFS2_IOC_FREESP64   _IOW ('X', 37, struct ocfs2_space_resv)
 
#define OCFS2_IOC_RESVSP64   _IOW ('X', 42, struct ocfs2_space_resv)
 
#define OCFS2_IOC_UNRESVSP64   _IOW ('X', 43, struct ocfs2_space_resv)
 
#define OCFS2_IOC_GROUP_EXTEND   _IOW('o', 1, int)
 
#define OCFS2_IOC_GROUP_ADD   _IOW('o', 2,struct ocfs2_new_group_input)
 
#define OCFS2_IOC_GROUP_ADD64   _IOW('o', 3,struct ocfs2_new_group_input)
 
#define OCFS2_IOC_REFLINK   _IOW('o', 4, struct reflink_arguments)
 
#define OCFS2_INFO_MAX_REQUEST   (50)
 
#define OCFS2_TEXT_UUID_LEN   (OCFS2_VOL_UUID_LEN * 2)
 
#define OCFS2_INFO_MAGIC   (0x4F32494E)
 
#define OCFS2_INFO_MAX_HIST   (32)
 
#define OCFS2_INFO_FL_NON_COHERENT
 
#define OCFS2_INFO_FL_FILLED
 
#define OCFS2_INFO_FL_ERROR
 
#define OCFS2_IOC_INFO   _IOR('o', 5, struct ocfs2_info)
 
#define OCFS2_MOVE_EXT_FL_AUTO_DEFRAG
 
#define OCFS2_MOVE_EXT_FL_PART_DEFRAG
 
#define OCFS2_MOVE_EXT_FL_COMPLETE
 
#define OCFS2_IOC_MOVE_EXT   _IOW('o', 6, struct ocfs2_move_extents)
 

Enumerations

enum  ocfs2_info_type {
  OCFS2_INFO_CLUSTERSIZE = 1, OCFS2_INFO_BLOCKSIZE, OCFS2_INFO_MAXSLOTS, OCFS2_INFO_LABEL,
  OCFS2_INFO_UUID, OCFS2_INFO_FS_FEATURES, OCFS2_INFO_JOURNAL_SIZE, OCFS2_INFO_FREEINODE,
  OCFS2_INFO_FREEFRAG, OCFS2_INFO_NUM_TYPES
}
 

Functions

struct ocfs2_info_label __attribute__ ((packed))
 

Variables

struct ocfs2_info_request il_req
 
__u8 il_label [OCFS2_MAX_VOL_LABEL_LEN]
 
struct ocfs2_info_request iu_req
 
__u8 iu_uuid_str [OCFS2_TEXT_UUID_LEN+1]
 
struct ocfs2_info_fs_features __attribute__
 

Macro Definition Documentation

#define OCFS2_INFO_FL_ERROR
Value:
(0x80000000) /* Error happened during
request handling. */

Definition at line 197 of file ocfs2_ioctl.h.

#define OCFS2_INFO_FL_FILLED
Value:
(0x40000000) /* Filesystem understood
this request and
filled in the answer */

Definition at line 195 of file ocfs2_ioctl.h.

#define OCFS2_INFO_FL_NON_COHERENT
Value:
(0x00000001) /* Cluster coherency not
required. This is a hint.
It is up to ocfs2 whether
the request can be fulfilled
without locking. */

Definition at line 193 of file ocfs2_ioctl.h.

#define OCFS2_INFO_MAGIC   (0x4F32494E)

Definition at line 84 of file ocfs2_ioctl.h.

#define OCFS2_INFO_MAX_HIST   (32)

Definition at line 155 of file ocfs2_ioctl.h.

#define OCFS2_INFO_MAX_REQUEST   (50)

Definition at line 80 of file ocfs2_ioctl.h.

#define OCFS2_IOC32_GETFLAGS   FS_IOC32_GETFLAGS

Definition at line 28 of file ocfs2_ioctl.h.

#define OCFS2_IOC32_SETFLAGS   FS_IOC32_SETFLAGS

Definition at line 29 of file ocfs2_ioctl.h.

#define OCFS2_IOC_ALLOCSP   _IOW ('X', 10, struct ocfs2_space_resv)

Definition at line 48 of file ocfs2_ioctl.h.

#define OCFS2_IOC_ALLOCSP64   _IOW ('X', 36, struct ocfs2_space_resv)

Definition at line 52 of file ocfs2_ioctl.h.

#define OCFS2_IOC_FREESP   _IOW ('X', 11, struct ocfs2_space_resv)

Definition at line 49 of file ocfs2_ioctl.h.

#define OCFS2_IOC_FREESP64   _IOW ('X', 37, struct ocfs2_space_resv)

Definition at line 53 of file ocfs2_ioctl.h.

#define OCFS2_IOC_GETFLAGS   FS_IOC_GETFLAGS

Definition at line 26 of file ocfs2_ioctl.h.

#define OCFS2_IOC_GROUP_ADD   _IOW('o', 2,struct ocfs2_new_group_input)

Definition at line 68 of file ocfs2_ioctl.h.

#define OCFS2_IOC_GROUP_ADD64   _IOW('o', 3,struct ocfs2_new_group_input)

Definition at line 69 of file ocfs2_ioctl.h.

#define OCFS2_IOC_GROUP_EXTEND   _IOW('o', 1, int)

Definition at line 67 of file ocfs2_ioctl.h.

#define OCFS2_IOC_INFO   _IOR('o', 5, struct ocfs2_info)

Definition at line 199 of file ocfs2_ioctl.h.

#define OCFS2_IOC_MOVE_EXT   _IOW('o', 6, struct ocfs2_move_extents)

Definition at line 224 of file ocfs2_ioctl.h.

#define OCFS2_IOC_REFLINK   _IOW('o', 4, struct reflink_arguments)

Definition at line 77 of file ocfs2_ioctl.h.

#define OCFS2_IOC_RESVSP   _IOW ('X', 40, struct ocfs2_space_resv)

Definition at line 50 of file ocfs2_ioctl.h.

#define OCFS2_IOC_RESVSP64   _IOW ('X', 42, struct ocfs2_space_resv)

Definition at line 54 of file ocfs2_ioctl.h.

#define OCFS2_IOC_SETFLAGS   FS_IOC_SETFLAGS

Definition at line 27 of file ocfs2_ioctl.h.

#define OCFS2_IOC_UNRESVSP   _IOW ('X', 41, struct ocfs2_space_resv)

Definition at line 51 of file ocfs2_ioctl.h.

#define OCFS2_IOC_UNRESVSP64   _IOW ('X', 43, struct ocfs2_space_resv)

Definition at line 55 of file ocfs2_ioctl.h.

#define OCFS2_MOVE_EXT_FL_AUTO_DEFRAG
Value:
(0x00000001) /* Kernel manages to
claim new clusters
as the goal place
for extents moving */

Definition at line 220 of file ocfs2_ioctl.h.

#define OCFS2_MOVE_EXT_FL_COMPLETE
Value:
(0x00000004) /* Move or defragmenation
completely gets done.
*/

Definition at line 222 of file ocfs2_ioctl.h.

#define OCFS2_MOVE_EXT_FL_PART_DEFRAG
Value:
(0x00000002) /* Allow partial extent
moving, is to make
movement less likely
to fail, may make fs
even more fragmented */

Definition at line 221 of file ocfs2_ioctl.h.

#define OCFS2_TEXT_UUID_LEN   (OCFS2_VOL_UUID_LEN * 2)

Definition at line 81 of file ocfs2_ioctl.h.

Enumeration Type Documentation

Enumerator:
OCFS2_INFO_CLUSTERSIZE 
OCFS2_INFO_BLOCKSIZE 
OCFS2_INFO_MAXSLOTS 
OCFS2_INFO_LABEL 
OCFS2_INFO_UUID 
OCFS2_INFO_FS_FEATURES 
OCFS2_INFO_JOURNAL_SIZE 
OCFS2_INFO_FREEINODE 
OCFS2_INFO_FREEFRAG 
OCFS2_INFO_NUM_TYPES 

Definition at line 178 of file ocfs2_ioctl.h.

Function Documentation

struct ocfs2_info_label __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

Definition at line 127 of file ocfs2_ioctl.h.

Definition at line 126 of file ocfs2_ioctl.h.

Definition at line 131 of file ocfs2_ioctl.h.

__u8 iu_uuid_str[OCFS2_TEXT_UUID_LEN+1]

Definition at line 132 of file ocfs2_ioctl.h.