def METHOD_NAME(dev):
    file_name = "sg_write_same.sh"
    guest_dir = "/tmp/"
    deps_dir = virttest_data_dir.get_deps_dir() + "/thin-provision/"
    host_file = os.path.join(deps_dir, file_name)
    guest_file = guest_dir + file_name
    vm.copy_files_to(host_file, guest_dir)
    status, output = session.cmd_status_output(
        "$SHELL " + guest_file + " " + dev)
    if status != 0:
        test.fail("run sg_write_same failed:" + output)
    test.log.debug(output)