~ubuntu-branches/ubuntu/vivid/lvm2/vivid

« back to all changes in this revision

Viewing changes to tools/pvcreate.c

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2012-05-01 20:27:50 UTC
  • mto: (3.1.23 sid)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: package-import@ubuntu.com-20120501202750-gljjjtblowwq9mw8
Tags: upstream-2.02.95
ImportĀ upstreamĀ versionĀ 2.02.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                if (!id_read_format(&pp->id, uuid))
57
57
                        return 0;
58
58
                pp->idp = &pp->id;
 
59
                lvmcache_seed_infos_from_lvmetad(cmd); /* need to check for UUID dups */
59
60
        }
60
61
 
61
62
        if (arg_count(cmd, restorefile_ARG)) {
77
78
                release_vg(vg);
78
79
        }
79
80
 
80
 
        if (arg_sign_value(cmd, physicalvolumesize_ARG, 0) == SIGN_MINUS) {
 
81
        if (arg_sign_value(cmd, physicalvolumesize_ARG, SIGN_NONE) == SIGN_MINUS) {
81
82
                log_error("Physical volume size may not be negative");
82
83
                return 0;
83
84
        }
110
111
                        return ECMD_FAILED;
111
112
                }
112
113
 
113
 
                unescape_colons_and_at_signs(argv[i], NULL, NULL);
 
114
                dm_unescape_colons_and_at_signs(argv[i], NULL, NULL);
114
115
 
115
116
                if (!(pv = pvcreate_single(cmd, argv[i], &pp, 1))) {
116
117
                        stack;
117
118
                        ret = ECMD_FAILED;
118
119
                }
119
120
 
120
 
                free_pv_fid(pv);
121
121
                unlock_vg(cmd, VG_ORPHANS);
122
122
                if (sigint_caught())
123
123
                        return ret;