{"push_id":1066209530,"size":2,"distinct_size":2,"ref":"refs/heads/evelu-scratch","head":"47c3a26b17e4d91c97a27b22288476e14ab10591","before":"0be7e767a991786cb93bcd32b97fb0d6caf9c141","commits":[{"sha":"7e9548a71fc1564be140e5c8b174c15df229ce0b","author":{"email":"9949cc68615082c237e6af925cacbd2ea7f2e953@redhat.com","name":"Erwan Velu"},"message":"misc: Adding function to test block devices\n\nAdding remove_invalid_block_devices() which call is_block_device_valid() for\neach block devices passed.\n\nIf make a quick test to check if the disk is readable by reading 1MB of data in\nO_DIRECT (to avoid any caching).\n\nSigned-off-by: Erwan Velu <erwan@redhat.com>","distinct":true,"url":"https://api.github.com/repos/ErwanAliasr1/teuthology/commits/7e9548a71fc1564be140e5c8b174c15df229ce0b"},{"sha":"47c3a26b17e4d91c97a27b22288476e14ab10591","author":{"email":"9949cc68615082c237e6af925cacbd2ea7f2e953@redhat.com","name":"Erwan Velu"},"message":"misc: re-implementing get_scratch_devices()\n\nThis commit does reimplement the same feature but now by using the new set of\nfunctions.\n\nBy using get_used_block_devices(), get_root_device(), translate_block_UUID(),\nexpand_dm_devices(), translate_block_devices_path(),\npartitions_to_block_device(), get_free_block_devices(),\nremove_invalid_block_devices(),\n\nwe gain the following features :\n- listing all present block devices and not only sda or vda\n- supporting more than 26 disks per host : sdaa vs sda\n- auto-detecting the backing device of the root system by reading /proc/cdmline\n- inspecting dm devices to detect more used devices\n- expanding UUIDs & symlinks to understand the underlying block devices\n- return no free block devices if known was detected as used to avoid damaging\n  data\n- return no free block devices if we cannot get intersections between the list\n  of available devices and used devices to avoid damaging data\n- compute the list of free devices by removing the detected used device from the\n  complete list\n\nAs a result, a block reported to be free is a detected block devices which is\nproven not being used by : the root fs, a dm device or a user mounted\nfilesystem.\n\nSigned-off-by: Erwan Velu <erwan@redhat.com>","distinct":true,"url":"https://api.github.com/repos/ErwanAliasr1/teuthology/commits/47c3a26b17e4d91c97a27b22288476e14ab10591"}]}