xref: /titanic_50/usr/src/common/getgen/getgen.h (revision 42cc51e07cdbcad3b9aca8d9d991fc09b251feb7)
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