HomeSort by: relevance | last modified time | path
    Searched defs:vg (Results 1 - 25 of 45) sorted by relevancy

1 2

  /src/external/gpl2/lvm2/dist/tools/
vgextend.c 23 struct volume_group *vg = NULL; local
48 vg = vg_read_for_update(cmd, vg_name, NULL, 0);
49 if (vg_read_error(vg)) {
50 vg_release(vg);
57 unlock_and_release_vg(cmd, vg, vg_name);
61 if (!archive(vg))
64 /* extend vg */
65 if (!vg_extend(vg, argc, argv, &pp))
72 /* store vg on disk(s) */
73 if (!vg_write(vg) || !vg_commit(vg)
    [all...]
pvcreate.c 34 struct volume_group *vg; local
56 if (!(vg = backup_read_vg(cmd, NULL, pp->restorefile))) {
61 if (!(existing_pv = find_pv_in_vg_by_uuid(vg, pp->idp))) {
69 vg_release(vg);
vgcreate.c 24 struct volume_group *vg; local
58 /* Create the new VG */
59 vg = vg_create(cmd, vp_new.vg_name);
60 if (vg_read_error(vg))
63 if (!vg_set_extent_size(vg, vp_new.extent_size) ||
64 !vg_set_max_lv(vg, vp_new.max_lv) ||
65 !vg_set_max_pv(vg, vp_new.max_pv) ||
66 !vg_set_alloc_policy(vg, vp_new.alloc) ||
67 !vg_set_clustered(vg, vp_new.clustered))
76 if (!vg_extend(vg, argc, argv, &pp)
    [all...]
lvrename.c 34 struct volume_group *vg = NULL; local
107 vg = vg_read_for_update(cmd, vg_name, NULL, 0);
108 if (vg_read_error(vg)) {
109 vg_release(vg);
114 if (!(lvl = find_lv_in_vg(vg, lv_name_old))) {
128 unlock_and_release_vg(cmd, vg, vg_name);
vgrename.c 24 struct volume_group *vg; local
28 vg = vg_read_for_update(cmd, vg_name_old, vgid, READ_ALLOW_EXPORTED);
29 if (vg_read_error(vg)) {
30 vg_release(vg);
34 if (lvs_in_vg_activated_by_uuid_only(vg)) {
35 unlock_and_release_vg(cmd, vg, vg_name_old);
41 return vg;
78 struct volume_group *vg = NULL; local
104 log_error("Found more than one VG called %s. "
105 "Please supply VG uuid.", vg_name_old)
    [all...]
lvcreate.c 61 * If VG not on command line, try -n arg and then
80 * different VG.
128 * need the vg.
130 static int _update_extents_params(struct volume_group *vg,
137 !(lp->extents = extents_from_size(vg->cmd, lcp->size,
138 vg->extent_size)))
142 !(lp->voriginextents = extents_from_size(vg->cmd, lp->voriginsize,
143 vg->extent_size)))
151 if (!(lp->pvh = create_pv_list(vg->cmd->mem, vg,
572 struct volume_group *vg; local
    [all...]
polldaemon.c 101 struct volume_group *vg,
113 if (!(lvs_changed = lvs_using_lv(cmd, vg, lv))) {
118 parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed);
132 if (!(lvs_changed = lvs_using_lv(cmd, vg, lv))) {
139 if (!parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed))
142 if (!parms->poll_fns->update_metadata(cmd, vg, lv, lvs_changed,
145 parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed);
157 struct volume_group *vg; local
163 /* FIXME Also needed in vg/lvchange -ay? */
171 /* Locks the (possibly renamed) VG again *
    [all...]
pvchange.c 20 /* FIXME Locking. PVs in VG. */
25 struct volume_group *vg = NULL; local
56 /* If in a VG, must change using volume group. */
62 vg = vg_read_for_update(cmd, vg_name, NULL, 0);
63 if (vg_read_error(vg)) {
64 vg_release(vg);
68 if (!(pvl = find_pv_in_vg(vg, pv_name))) {
70 pv_name, vg->name);
73 if (tagarg && !(vg->fid->fmt->features & FMT_TAGS)) {
78 if (arg_count(cmd, uuid_ARG) && lvs_in_vg_activated(vg)) {
    [all...]
vgmerge.c 23 struct volume_group *vg; local
25 vg = vg_read_for_update(cmd, vg_name, NULL, 0);
26 if (vg_read_error(vg)) {
27 vg_release(vg);
30 return vg;
vgreduce.c 21 static int _remove_pv(struct volume_group *vg, struct pv_list *pvl, int silent)
25 if (vg->pv_count == 1) {
33 log_verbose("Removing PV with UUID %s from VG %s", uuid, vg->name);
38 "Can't remove from VG %s", uuid, vg->name);
42 vg->free_count -= pvl->pv->pe_count;
43 vg->extent_count -= pvl->pv->pe_count;
44 vg->pv_count--;
62 "dependencies)", lv->vg->name, lv->name)
464 struct volume_group *vg; local
    [all...]
lvresize.c 52 const struct volume_group *vg,
66 if (!(vg->fid->fmt->features & FMT_SEGMENTS))
68 else if (arg_uint_value(cmd, stripesize_ARG, 0) > vg->extent_size * 2) {
73 display_size(cmd, (uint64_t) vg->extent_size));
74 lp->stripe_size = vg->extent_size;
91 const struct volume_group *vg,
118 display_size(cmd, (uint64_t) lp->extents * vg->extent_size));
144 const struct volume_group *vg,
176 (uint64_t) lp->extents * vg->extent_size / 2) < 0) {
278 static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
670 struct volume_group *vg; local
    [all...]
  /src/external/gpl3/gcc/dist/contrib/
check_GNU_style.sh 144 vg (){ function
239 vg 'There should be exactly one space between function name and parenthesis.' \
  /src/external/gpl3/gcc.old/dist/contrib/
check_GNU_style.sh 144 vg (){ function
239 vg 'There should be exactly one space between function name and parenthesis.' \
  /src/external/gpl2/lvm2/dist/lib/format_text/
import.c 90 struct volume_group *vg = NULL; local
116 if (!(vg = (*vsn)->read_vg(fid, cft)))
125 return vg;
139 struct volume_group *vg = NULL; local
151 if (!(vg = (*vsn)->read_vg(fid, cft)))
157 return vg;
archive.c 39 * '(.*)_[0-9]*.vg' is a config file (see lib/config.[hc]), which
60 * Extract vg name and version number from a filename.
73 if (strcmp(".vg", dot))
158 /* is it the vg we're interested in ? */
227 int archive_vg(struct volume_group *vg,
239 * Write the vg out to a temporary file.
242 &vg->cmd->rand_seed)) {
254 if (!text_vg_export_file(vg, desc, fp)) {
264 * Now we want to rename this file to <vg>_index.vg
300 struct volume_group *vg = NULL; local
    [all...]
archiver.c 98 static int __archive(struct volume_group *vg)
102 if (!(desc = _build_desc(vg->cmd->mem, vg->cmd->cmd_line, 1)))
105 return archive_vg(vg, vg->cmd->archive_params->dir, desc,
106 vg->cmd->archive_params->keep_days,
107 vg->cmd->archive_params->keep_number);
110 int archive(struct volume_group *vg)
112 if (!vg->cmd->archive_params->enabled || !vg->cmd->archive_params->dir
281 struct volume_group *vg = NULL; local
355 struct volume_group *vg; local
    [all...]
import_vsn1.c 30 struct volume_group * vg, struct config_node * pvn,
52 * Checks that the config file contains vg metadata, and that it
156 struct volume_group *vg, struct config_node *pvn,
201 if (!(pv->vg_name = dm_pool_strdup(mem, vg->name)))
204 memcpy(&pv->vgid, &vg->id, sizeof(vg->id));
235 pv_dev_name(pv), vg->name);
240 vg->extent_count += pv->pe_count;
241 vg->free_count += pv->pe_count;
243 pv->pe_size = vg->extent_size
639 struct volume_group *vg; local
    [all...]
  /src/external/gpl2/lvm2/dist/test/api/
vgtest.c 29 vg_t vg; variable
36 printf("Creating VG %s\n", vg_name); \
37 vg = lvm_vg_create(handle, vg_name); \
38 if (!vg) { \
42 #define vg_extend(vg, dev) \
43 printf("Extending VG %s by %s\n", vg_name, dev); \
44 status = lvm_vg_extend(vg, dev); \
50 #define vg_commit(vg) \
51 printf("Committing VG %s to disk\n", vg_name); \
52 status = lvm_vg_write(vg); \
    [all...]
test.c 71 "List the PVs that exist in VG vgname\n");
73 "List the LVs that exist in VG vgname\n");
79 "Issue a lvm_vg_extend() API call on VG 'vgname'\n");
81 "Issue a lvm_vg_reduce() API call on VG 'vgname'\n");
83 "Issue a lvm_vg_open() API call on VG 'vgname'\n");
85 "Issue a lvm_vg_close() API call on VG 'vgname'\n");
87 "Issue a lvm_vg_create() to create VG 'vgname'\n");
89 "Issue a lvm_vg_remove() to remove VG 'vgname'\n");
140 /* FIXME: this should be per vg */
159 vg_t vg; local
208 vg_t vg; local
269 vg_t vg; local
298 vg_t vg; local
337 vg_t vg=NULL; local
352 vg_t vg; local
371 vg_t vg; local
390 vg_t vg; local
409 vg_t vg; local
444 vg_t vg; local
499 vg_t vg; local
573 vg_t vg; local
    [all...]
  /src/external/lgpl3/gmp/dist/mpn/generic/
gcdext_1.c 61 mp_limb_t vg; local
180 vg = s0 + s1;
183 vgh = vg/2 + (vg & 1);
197 ASSERT_ALWAYS (s0 <= vg);
200 if (s0 > vg - s0)
202 s0 -= vg;
  /src/external/gpl2/lvm2/dist/daemons/dmeventd/plugins/mirror/
dmeventd_mirror.c 148 char *vg = NULL, *lv = NULL, *layer = NULL; local
153 if (!dm_split_lvm_name(_mem_pool, device, &vg, &lv, &layer)) {
154 syslog(LOG_ERR, "Unable to determine VG name from %s",
160 if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "lvconvert --config devices{ignore_suspended_devices=1} --repair --use-policies %s/%s", vg, lv)) {
170 snprintf(cmd_str, CMD_SIZE, "vgreduce --removemissing %s", vg);
172 syslog(LOG_ERR, "Unable to remove failed PVs from VG %s", vg);
  /src/external/gpl2/lvm2/dist/lib/format_pool/
format_pool.c 108 struct volume_group *vg = NULL; local
112 if (!(vg = dm_pool_zalloc(smem, sizeof(*vg)))) {
117 vg->cmd = fid->fmt->cmd;
118 vg->vgmem = mem;
119 vg->fid = fid;
120 vg->name = NULL;
121 vg->status = 0;
122 vg->extent_count = 0;
123 vg->pv_count = 0
167 struct volume_group *vg = NULL; local
    [all...]
  /src/external/gpl2/lvm2/dist/lib/snapshot/
snapshot.c 65 if (!(cow = find_lv(seg->lv->vg, cow_name))) {
71 if (!(org = find_lv(seg->lv->vg, org_name))) {
187 struct volume_group *vg; local
192 vg = lv->vg;
195 if (!_get_snapshot_dso_path(vg->cmd, &dso))
198 if (!(name = build_dm_name(vg->cmd->mem, vg->name, seg->cow->name, NULL)))
225 struct volume_group *vg = seg->lv->vg; local
    [all...]
  /src/external/gpl2/lvm2/dist/liblvm/
lvm_vg.c 32 struct volume_group *vg; local
34 vg = vg_create((struct cmd_context *)libh, vg_name);
36 if (vg_read_error(vg)) {
37 vg_release(vg);
40 vg->open_mode = 'w';
41 return (vg_t) vg;
44 int lvm_vg_extend(vg_t vg, const char *device)
48 if (vg_read_error(vg))
51 if (!vg_check_write_mode(vg))
54 if (!lock_vol(vg->cmd, VG_ORPHANS, LCK_VG_WRITE))
163 struct volume_group *vg; local
    [all...]
  /src/external/gpl2/lvm2/dist/lib/format1/
format1.c 27 /* VG consistency checks */
40 * This means an active VG won't be affected if disks are inserted
41 * bearing an exported VG with the same name.
61 /* Remove any PVs with VG structs that differ from the first */
69 log_error("VG data differs between PVs %s and %s",
71 log_debug("VG data on %s: %s %s %" PRIu32 " %" PRIu32
86 log_debug("VG data on %s: %s %s %" PRIu32 " %" PRIu32
108 log_error("%d PV(s) found for VG %s: expected %d",
119 struct volume_group *vg = dm_pool_alloc(mem, sizeof(*vg)); local
172 struct volume_group *vg = NULL; local
    [all...]

Completed in 45 milliseconds

1 2