~ubuntu-branches/ubuntu/breezy/lvm2/breezy

« back to all changes in this revision

Viewing changes to lib/display/display.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Caulfield
  • Date: 2004-11-03 09:37:56 UTC
  • Revision ID: james.westby@ubuntu.com-20041103093756-jt0nj8z0v8k1lyiv
Tags: upstream-2.00.25
ImportĀ upstreamĀ versionĀ 2.00.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
 
3
 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
 
4
 *
 
5
 * This file is part of LVM2.
 
6
 *
 
7
 * This copyrighted material is made available to anyone wishing to use,
 
8
 * modify, copy, or redistribute it subject to the terms and conditions
 
9
 * of the GNU General Public License v.2.
 
10
 *
 
11
 * You should have received a copy of the GNU General Public License
 
12
 * along with this program; if not, write to the Free Software Foundation,
 
13
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
14
 */
 
15
 
 
16
#ifndef _LVM_DISPLAY_H
 
17
#define _LVM_DISPLAY_H
 
18
 
 
19
#include "metadata.h"
 
20
 
 
21
#include <stdint.h>
 
22
 
 
23
typedef enum { SIZE_LONG = 0, SIZE_SHORT = 1, SIZE_UNIT = 2 } size_len_t;
 
24
 
 
25
uint64_t units_to_bytes(const char *units, char *unit_type);
 
26
 
 
27
/* Specify size in KB */
 
28
const char *display_size(struct cmd_context *cmd, uint64_t size, size_len_t sl);
 
29
char *display_uuid(char *uuidstr);
 
30
void display_stripe(const struct lv_segment *seg, uint32_t s, const char *pre);
 
31
 
 
32
void pvdisplay_colons(struct physical_volume *pv);
 
33
void pvdisplay_full(struct cmd_context *cmd, struct physical_volume *pv,
 
34
                    void *handle);
 
35
int pvdisplay_short(struct cmd_context *cmd, struct volume_group *vg,
 
36
                    struct physical_volume *pv, void *handle);
 
37
 
 
38
void lvdisplay_colons(struct logical_volume *lv);
 
39
int lvdisplay_segments(struct logical_volume *lv);
 
40
int lvdisplay_full(struct cmd_context *cmd, struct logical_volume *lv,
 
41
                   void *handle);
 
42
 
 
43
void vgdisplay_extents(struct volume_group *vg);
 
44
void vgdisplay_full(struct volume_group *vg);
 
45
void vgdisplay_colons(struct volume_group *vg);
 
46
void vgdisplay_short(struct volume_group *vg);
 
47
 
 
48
void display_formats(struct cmd_context *cmd);
 
49
void display_segtypes(struct cmd_context *cmd);
 
50
 
 
51
/*
 
52
 * Allocation policy display conversion routines.
 
53
 */
 
54
const char *get_alloc_string(alloc_policy_t alloc);
 
55
alloc_policy_t get_alloc_from_string(const char *str);
 
56
 
 
57
#endif