Searched refs:expected_flag (Results 1 – 1 of 1) sorted by relevance
527 int expected_flag = read_only ? 1 : 0; in SetBlockDeviceReadOnly() local530 if (rc == 0 && read_only_flag == expected_flag) in SetBlockDeviceReadOnly()533 rc = ioctl(fd, BLKROSET, &expected_flag); in SetBlockDeviceReadOnly()536 << " as read_only=" << expected_flag; in SetBlockDeviceReadOnly()