createLvmLv createLvmVg
createLvmLv
/**
1892 * Create a LVM logical volume
1893 *
1894 * @param vg name of volume group
1895 * @param name of logical volume
1896 * @param sizeK size of logical volume in kilobytes
1897 * @param stripes stripe count of logical volume (use 1 unless you know
1898 * exactly what you are doing)
1899 * @param device is set to the device name of the new LV
1900 * @return zero if all is ok, a negative number to indicate an error
1901 */
1902 virtual int createLvmLv( const string& vg, const string& name,
1903 unsigned long long sizeK, unsigned stripes,
1904 string& SWIG_OUTPUT(device) ) = 0;
createLvmVg
/**
1849 * Create a LVM volume group
1850 *
1851 * @param name name of volume group, must not contain blanks, colons
1852 * and shell special characters (e.g. system)
1853 * @param peSizeK physical extent size in kilobytes
1854 * @param lvm1 flag if lvm1 compatible format should be used
1855 * @param devs list with physical devices to add to that volume group
1856 * @return zero if all is ok, a negative number to indicate an error
1857 */
1858 virtual int createLvmVg( const string& name,
1859 unsigned long long peSizeK, bool lvm1,
1860 const deque<string>& devs ) = 0;