xref: /titanic_41/usr/src/common/getgen/getgen.h (revision 62c3776affc53153ce74e14a6e7ce91950c28102)
1 #ifndef __GETGEN_H__
2 #define __GETGEN_H__
3 
4 #include <sys/types.h>
5 #include <sys/param.h>
6 
7 #define GGIOC			('g' << 8)
8 #define GG_IOC_GET_GENERATION	(GGIOC | 1)
9 
10 #pragma pack(1)
11 typedef struct gg_ioc_get_generation {
12 	/* input */
13 	uint64_t	inode;
14 	uint32_t	fd;	/* open fd to any object on the same fs */
15 	/* noput */
16 	uint32_t	padding;
17 	/* output */
18 	uint64_t	generation;
19 	uint64_t	crtime;
20 	uint64_t	guid;
21 	char		dataset[MAXPATHLEN];
22 } gg_ioctl_get_generation_t;
23 #pragma pack()
24 
25 #endif
26 
27