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/format_pool/pool_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/format_pool/pool_label.c')
-rw-r--r-- | lib/format_pool/pool_label.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/format_pool/pool_label.c b/lib/format_pool/pool_label.c index f8d20466..f95e11bb 100644 --- a/lib/format_pool/pool_label.c +++ b/lib/format_pool/pool_label.c @@ -23,13 +23,13 @@ #include <sys/stat.h> #include <fcntl.h> -static void _not_supported(const char *op) +static void _pool_not_supported(const char *op) { log_error("The '%s' operation is not supported for the pool labeller.", op); } -static int _can_handle(struct labeller *l, char *buf, uint64_t sector) +static int _pool_can_handle(struct labeller *l, char *buf, uint64_t sector) { struct pool_disk pd; @@ -50,13 +50,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 _pool_write(struct label *label, char *buf) { - _not_supported("write"); + _pool_not_supported("write"); return 0; } -static int _read(struct labeller *l, struct device *dev, char *buf, +static int _pool_read(struct labeller *l, struct device *dev, char *buf, struct label **label) { struct pool_list pl; @@ -64,31 +64,31 @@ static int _read(struct labeller *l, struct device *dev, char *buf, return read_pool_label(&pl, l, dev, buf, label); } -static int _initialise_label(struct labeller *l, struct label *label) +static int _pool_initialise_label(struct labeller *l, struct label *label) { strcpy(label->type, "POOL"); return 1; } -static void _destroy_label(struct labeller *l, struct label *label) +static void _pool_destroy_label(struct labeller *l, struct label *label) { return; } -static void _destroy(struct labeller *l) +static void _label_pool_destroy(struct labeller *l) { dm_free(l); } struct label_ops _pool_ops = { - can_handle:_can_handle, - write:_write, - read:_read, - verify:_can_handle, - initialise_label:_initialise_label, - destroy_label:_destroy_label, - destroy:_destroy + can_handle:_pool_can_handle, + write:_pool_write, + read:_pool_read, + verify:_pool_can_handle, + initialise_label:_pool_initialise_label, + destroy_label:_pool_destroy_label, + destroy:_label_pool_destroy }; struct labeller *pool_labeller_create(struct format_type *fmt) |