static bool qemu_gluster_test_seek(struct glfs_fd *fd)

{

    off_t ret, eof;



    eof = glfs_lseek(fd, 0, SEEK_END);

    if (eof < 0) {

        /* this should never occur */

        return false;

    }



    /* this should always fail with ENXIO if SEEK_DATA is supported */

    ret = glfs_lseek(fd, eof, SEEK_DATA);

    return (ret < 0) && (errno == ENXIO);

}

static bool qemu_gluster_test_seek(struct glfs_fd *fd)

{

    off_t ret, eof;



    eof = glfs_lseek(fd, 0, SEEK_END);

    if (eof < 0) {

        

        return false;

    }



    

    ret = glfs_lseek(fd, eof, SEEK_DATA);

    return (ret < 0) && (errno == ENXIO);

}

static bool FUNC_0(struct glfs_fd *fd)

{

    off_t ret, eof;



    eof = glfs_lseek(fd, 0, SEEK_END);

    if (eof < 0) {

        

        return false;

    }



    

    ret = glfs_lseek(fd, eof, SEEK_DATA);

    return (ret < 0) && (errno == ENXIO);

}

static bool FUNC_0(struct glfs_fd *fd)
{ off_t ret, eof; eof = glfs_lseek(fd, 0, SEEK_END); if (eof < 0) { return false; } ret = glfs_lseek(fd, eof, SEEK_DATA); return (ret < 0) && (errno == ENXIO); }