upas/fs: handle ramfs and hjfs "file locked" error
This commit is contained in:
parent
52c1f712ec
commit
9841f7f3f5
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ retry:
|
|||
fd = open(mb->path, OREAD);
|
||||
if(fd < 0){
|
||||
rerrstr(err, sizeof(err));
|
||||
if(strstr(err, "file is locked") != nil
|
||||
if(strstr(err, "locked") != nil
|
||||
|| strstr(err, "exclusive lock") != nil)
|
||||
if(n++ < 20){
|
||||
sleep(500); /* wait for lock to go away */
|
||||
|
|
Loading…
Reference in a new issue