Commit Graph

1410 Commits

Author SHA1 Message Date
Chantara Tith 7f61e77eb5 Add selected device to ResizeVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith f863a15a72 update partTable only when partition list update. 2016-08-15 17:38:00 +01:00
Chantara Tith 92cbb1f6dc Fix crash when smartStatus is nullptr. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 175ea6a5ed Do not attempt removing LVM VG if there are active LVs. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 33d38c9852 Move PE size spinbox constraints to .ui file. 2016-08-15 17:38:00 +01:00
Chantara Tith 2b25813040 Set PE Size spinBox minimum value to 1. 2016-08-15 17:38:00 +01:00
Chantara Tith ce9ad5559e Enable Smart Status for Disk Device only. 2016-08-15 17:38:00 +01:00
Chantara Tith 2ec6857064 Decouple Sector and Size informations update. 2016-08-15 17:38:00 +01:00
Chantara Tith c8844c91e9 Remove lvm2_pv from FileSystem comboBox when creating LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e44082a73 Total used sectors and total LV in volumeDialog only need to be updated once. 2016-08-15 17:38:00 +01:00
Chantara Tith 6a2663d4d5 Disable partTableWidget preview for create/resize volumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 12e373dd45 Remove redundant informations of LVM PV from infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 89d310e0c8 Use different seperator to avoid error with string handling. 2016-08-15 17:38:00 +01:00
Chantara Tith 34d6934a1b Fix typo. 2016-08-15 17:38:00 +01:00
Chantara Tith 906f85a54d Disable resize/remove volume group action when LVM device is not selected. 2016-08-15 17:38:00 +01:00
Chantara Tith da6cb2e4df Add more LVM infos to the infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 1a3cee45ff Add MiB suffix to PE size spinBox. 2016-08-15 17:38:00 +01:00
Chantara Tith 99e36d4e32 update total sector when PE size is changed. 2016-08-15 17:38:00 +01:00
Chantara Tith cbd61d90c0 Read and Display size of PV inside physical volumes list. 2016-08-15 17:38:00 +01:00
Chantara Tith e25b6aa784 Payload offset return in byte size instead of sector number. 2016-08-15 17:38:00 +01:00
Chantara Tith 9f3e3bc5f0 Add functionality to specify PE size when creating VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 475a677601 Disable moving for LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f50dbaf4d Change from isLegalSize to isValidSize. 2016-08-15 17:38:00 +01:00
Chantara Tith e437c46d45 Disable OK button when LV name is empty. 2016-08-15 17:38:00 +01:00
Chantara Tith 100277b0e1 Display warning message when trying to remove VG with existing LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 5f364befd8 Temporary disable changing volume type and PE size, until the features are implemented on KPMCore side. 2016-08-15 17:38:00 +01:00
Chantara Tith 2917317619 Update volumeDialog ok button status as the used and total size changes. 2016-08-15 17:38:00 +01:00
Chantara Tith e6834393ae Fix the hacky solution for the usedSize overflow. 2016-08-15 17:38:00 +01:00
Chantara Tith a9655d7fad FIX used size overflow when multiplied. 2016-08-15 17:38:00 +01:00
Chantara Tith 27882cdb6a Display device info on volume dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 01cb06a4a4 It makes more sense to display used size instead of the allocated sectors. 2016-08-15 17:38:00 +01:00
Chantara Tith b8be4f7c79 Add volume resizing dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith bc4321d105 Add totalAllocatedSectors to volume widget. 2016-08-15 17:38:00 +01:00
Chantara Tith f7d475d05c Initialize VG name if there is any. 2016-08-15 17:38:00 +01:00
Chantara Tith f84821ff9c Unclutter createVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 71a6cc761d Simplify if clause. 2016-08-15 17:38:00 +01:00
Chantara Tith 951cb925ea Move to using static lvm2_pv methods. 2016-08-15 17:38:00 +01:00
Chantara Tith a89dbbdd7d Add checkbox for selecting multiple partition when creating new volume. 2016-08-15 17:38:00 +01:00
Chantara Tith a1fe5dff56 Temporary Use selected Partition as PV for creating new VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 9a4e54fb42 Add remove and resize action to MainWindow. 2016-08-15 17:38:00 +01:00
Chantara Tith 80f32cd53a Add volume type ComboBox to VolumeWidget 2016-08-15 17:38:00 +01:00
Chantara Tith 46e509ba28 Use custom list widget for displaying PV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7a5f8fb1a8 Update CreateVolumeDialog OK button status. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e4d9fc849 Change volumeWidget's label default value. 2016-08-15 17:38:00 +01:00
Chantara Tith 3721b198bf Abstract createvolumewidget generic stuffs to volumedialog base class. 2016-08-15 17:38:00 +01:00
Chantara Tith 4f564d52f5 Initial work on createvolume widget and dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 0dd81709a1 Display DevicePropDialog totalsectors and type correctly 2016-08-15 17:38:00 +01:00
Chantara Tith 975e005ed2 Append all the remaining space for LVM resize dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 1673a9ddeb Hide sizeDetailsWidget for LVM device. This also fix crashes when trying to align LV 2016-08-15 17:38:00 +01:00
Chantara Tith e9cfc151f7 Hide freeSpace Before and After Label for LVM resize. 2016-08-15 17:38:00 +01:00