KMR
kmrfefs.h
Go to the documentation of this file.
1 /* kmrfefs.h (2014-02-04) */
2 /* Copyright (C) 2012-2016 RIKEN AICS */
3 
4 /** \file kmrfefs.h Lustre File System (or Fujitsu FEFS) Support. */
5 
6 #include <stddef.h>
7 
8 /** Lustre Striping Information. A single stripe consists of a unit
9  of SIZE block repeated by COUNT times. OFFSET is the first OBDIDX
10  allocated for a file. */
11 
13  uint32_t size;
14  uint16_t count;
15  uint16_t offset;
16 };
17 
18 /** Lustre Striping Information with OBDIDX. */
19 
21  struct kmr_fefs_stripe_info s;
22  uint16_t obdidx[20000];
23 };
24 
25 /** Offset to Striping OBDIDX Information. */
26 
27 static const size_t
28 kmr_fefs_stripe_info_size = offsetof(struct kmr_fefs_stripe, obdidx);
29 
30 extern int kmr_fefs_get_stripe(const char *dir, const char *file,
31  struct kmr_fefs_stripe *stripe,
32  int *err, _Bool debug_and_dump);
33 
34 /*
35 Copyright (C) 2012-2016 RIKEN AICS
36 This library is distributed WITHOUT ANY WARRANTY. This library can be
37 redistributed and/or modified under the terms of the BSD 2-Clause License.
38 */
Lustre Striping Information with OBDIDX.
Definition: kmrfefs.h:20
Lustre Striping Information.
Definition: kmrfefs.h:12
int kmr_fefs_get_stripe(const char *dir, const char *file, struct kmr_fefs_stripe *stripe, int *err, _Bool debug_and_dump)
Gets the OBDIDX information on the file or directory.
Definition: kmrfefs.c:82
static const size_t kmr_fefs_stripe_info_size
Offset to Striping OBDIDX Information.
Definition: kmrfefs.h:28