label.h (bf9bccc14c05dae8caba29df6187c731710f5380) | label.h (f524bf271a5cf12a44253194abcf8b6688ff5b9d) |
---|---|
1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 20 unchanged lines hidden (view full) --- 29 NSLABEL_FLAG_UPDATING = 0x8, /* label being updated */ 30 BTT_ALIGN = 4096, /* all btt structures */ 31 BTTINFO_SIG_LEN = 16, 32 BTTINFO_UUID_LEN = 16, 33 BTTINFO_FLAG_ERROR = 0x1, /* error state (read-only) */ 34 BTTINFO_MAJOR_VERSION = 1, 35 ND_LABEL_MIN_SIZE = 512 * 129, /* see sizeof_namespace_index() */ 36 ND_LABEL_ID_SIZE = 50, | 1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 20 unchanged lines hidden (view full) --- 29 NSLABEL_FLAG_UPDATING = 0x8, /* label being updated */ 30 BTT_ALIGN = 4096, /* all btt structures */ 31 BTTINFO_SIG_LEN = 16, 32 BTTINFO_UUID_LEN = 16, 33 BTTINFO_FLAG_ERROR = 0x1, /* error state (read-only) */ 34 BTTINFO_MAJOR_VERSION = 1, 35 ND_LABEL_MIN_SIZE = 512 * 129, /* see sizeof_namespace_index() */ 36 ND_LABEL_ID_SIZE = 50, |
37 ND_NSINDEX_INIT = 0x1, |
|
37}; 38 39static const char NSINDEX_SIGNATURE[] = "NAMESPACE_INDEX\0"; 40 41/** 42 * struct nd_namespace_index - label set superblock 43 * @sig: NAMESPACE_INDEX\0 44 * @flags: placeholder --- 77 unchanged lines hidden (view full) --- 122 123struct nvdimm_drvdata; 124int nd_label_validate(struct nvdimm_drvdata *ndd); 125void nd_label_copy(struct nvdimm_drvdata *ndd, struct nd_namespace_index *dst, 126 struct nd_namespace_index *src); 127size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd); 128int nd_label_active_count(struct nvdimm_drvdata *ndd); 129struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n); | 38}; 39 40static const char NSINDEX_SIGNATURE[] = "NAMESPACE_INDEX\0"; 41 42/** 43 * struct nd_namespace_index - label set superblock 44 * @sig: NAMESPACE_INDEX\0 45 * @flags: placeholder --- 77 unchanged lines hidden (view full) --- 123 124struct nvdimm_drvdata; 125int nd_label_validate(struct nvdimm_drvdata *ndd); 126void nd_label_copy(struct nvdimm_drvdata *ndd, struct nd_namespace_index *dst, 127 struct nd_namespace_index *src); 128size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd); 129int nd_label_active_count(struct nvdimm_drvdata *ndd); 130struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n); |
131u32 nd_label_nfree(struct nvdimm_drvdata *ndd); 132struct nd_region; 133struct nd_namespace_pmem; 134int nd_pmem_namespace_label_update(struct nd_region *nd_region, 135 struct nd_namespace_pmem *nspm, resource_size_t size); |
|
130#endif /* __LABEL_H__ */ | 136#endif /* __LABEL_H__ */ |