accre / lstore

LStore - A fault-tolerant, performant distributed data storage framework.
http://www.lstore.org
Apache License 2.0
4 stars 5 forks source link

lio_open doesn't properly return error codes #127

Open PerilousApricot opened 8 years ago

PerilousApricot commented 8 years ago

@tacketar When trying to open files in a non-existent directory, the following doesn't catch an error:

    int retval = gop_sync_exec(lio_open_op(lio_gc,                                 
                                lio_gc->creds,                                     
                                path_copy,                                         
                                open_flags,                                        
                                NULL,                                              
                                &(h->fd), 60));                                    
    if (retval != OP_STATE_SUCCESS) {                                              
        goto error_open;                                                                                                           
    }