upas/fs: handle ramfs and hjfs "file locked" error

This commit is contained in:
cinap_lenrek 2014-11-14 10:09:29 +01:00
parent 52c1f712ec
commit 9841f7f3f5

View file

@ -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 */