… | |
… | |
903 | int memlen = 4096; |
903 | int memlen = 4096; |
904 | int memofs = 0; |
904 | int memofs = 0; |
905 | int res = 0; |
905 | int res = 0; |
906 | |
906 | |
907 | X_LOCK (wrklock); |
907 | X_LOCK (wrklock); |
|
|
908 | /* the corresponding closedir is in ETP_WORKER_CLEAR */ |
908 | self->dirp = dirp = opendir (req->ptr1); |
909 | self->dirp = dirp = opendir (req->ptr1); |
909 | req->flags |= EIO_FLAG_PTR2_FREE; |
910 | req->flags |= EIO_FLAG_PTR2_FREE; |
910 | req->ptr2 = names = malloc (memlen); |
911 | req->ptr2 = names = malloc (memlen); |
911 | X_UNLOCK (wrklock); |
912 | X_UNLOCK (wrklock); |
912 | |
913 | |