diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-04-19 15:33:07 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-04-19 15:33:07 +0000 |
commit | 8a2fc58645166dc8ec3a744bb0afeea7165cb750 (patch) | |
tree | f057a02b99c0d36fa57fa055beb123118fe72ad5 /lib/format1/lvm1-label.c | |
parent | d81e3d0bada9b5f1cd56d3594b6b377a5008f1af (diff) | |
download | lvm2-8a2fc58645166dc8ec3a744bb0afeea7165cb750.tar.gz lvm2-8a2fc58645166dc8ec3a744bb0afeea7165cb750.tar.xz lvm2-8a2fc58645166dc8ec3a744bb0afeea7165cb750.zip |
Check for libsepol.
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
Diffstat (limited to 'lib/format1/lvm1-label.c')
-rw-r--r-- | lib/format1/lvm1-label.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/format1/lvm1-label.c b/lib/format1/lvm1-label.c index 9b30c916..276b063e 100644 --- a/lib/format1/lvm1-label.c +++ b/lib/format1/lvm1-label.c @@ -30,7 +30,7 @@ static void _not_supported(const char *op) op); } -static int _can_handle(struct labeller *l, char *buf, uint64_t sector) +static int _lvm1_can_handle(struct labeller *l, char *buf, uint64_t sector) { struct pv_disk *pvd = (struct pv_disk *) buf; uint32_t version; @@ -48,13 +48,13 @@ static int _can_handle(struct labeller *l, char *buf, uint64_t sector) return 0; } -static int _write(struct label *label, char *buf) +static int _lvm1_write(struct label *label, char *buf) { _not_supported("write"); return 0; } -static int _read(struct labeller *l, struct device *dev, char *buf, +static int _lvm1_read(struct labeller *l, struct device *dev, char *buf, struct label **label) { struct pv_disk *pvd = (struct pv_disk *) buf; @@ -85,31 +85,31 @@ static int _read(struct labeller *l, struct device *dev, char *buf, return 1; } -static int _initialise_label(struct labeller *l, struct label *label) +static int _lvm1_initialise_label(struct labeller *l, struct label *label) { strcpy(label->type, "LVM1"); return 1; } -static void _destroy_label(struct labeller *l, struct label *label) +static void _lvm1_destroy_label(struct labeller *l, struct label *label) { return; } -static void _destroy(struct labeller *l) +static void _lvm1_destroy(struct labeller *l) { dm_free(l); } struct label_ops _lvm1_ops = { - can_handle:_can_handle, - write:_write, - read:_read, - verify:_can_handle, - initialise_label:_initialise_label, - destroy_label:_destroy_label, - destroy:_destroy + can_handle:_lvm1_can_handle, + write:_lvm1_write, + read:_lvm1_read, + verify:_lvm1_can_handle, + initialise_label:_lvm1_initialise_label, + destroy_label:_lvm1_destroy_label, + destroy:_lvm1_destroy }; struct labeller *lvm1_labeller_create(struct format_type *fmt) |