Searched refs:expected_flag (Results 1 – 1 of 1) sorted by relevance
666 int expected_flag = read_only ? 1 : 0; in SetBlockDeviceReadOnly() local669 if (rc == 0 && read_only_flag == expected_flag) in SetBlockDeviceReadOnly()672 rc = ioctl(fd, BLKROSET, &expected_flag); in SetBlockDeviceReadOnly()675 << expected_flag; in SetBlockDeviceReadOnly()