File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ To <dfn for="file system entry">take a lock</dfn> with a |value| of
135
135
136
136
1. Let |lock| be the |entry|'s [=file system entry/lock=] .
137
137
1. Let |count| be the |entry|'s [=file system entry/shared lock count=] .
138
- 1. If |entry| is a [=directory entry=] :
139
- 1. Let |descendantLockStatus| be the result of [=file system entry/lock/ checking for a descendant lock=] on |entry|.
138
+ 1. If |entry| is a [=directory entry=] :
139
+ 1. Let |descendantLockStatus| be the result of [=file system entry/checking for a descendant lock=] on |entry|.
140
140
1. If |descendantLockStatus| is "`taken`":
141
141
1. Return "`failure`".
142
142
1. If |value| is "`exclusive`":
@@ -158,15 +158,15 @@ Note: These steps have to be run on the [=file system queue=].
158
158
</div>
159
159
160
160
<div algorithm>
161
- To <dfn for="file system entry/lock ">check for a descendant lock</dfn> on a given
161
+ To <dfn for="file system entry">check for a descendant lock</dfn> on a given
162
162
[=directory entry=] |directory|:
163
163
164
164
1. [=set/For each=] |child| of |directory|'s [=directory entry/children=] :
165
165
1. Let |lock| be the |child|'s [=file system entry/lock=] .
166
166
1. If |lock| is not "`open`":
167
167
1. Return "`taken`".
168
168
1. If |child| is a [=directory entry=] :
169
- 1. Let |descendantLockStatus| be the result of [=file system entry/lock/ checking for a descendant lock=] on |child|.
169
+ 1. Let |descendantLockStatus| be the result of [=file system entry/checking for a descendant lock=] on |child|.
170
170
1. If |descendantLockStatus| is "`taken`":
171
171
1. Return "`taken`".
172
172
1. Return "`open`".
You can’t perform that action at this time.
0 commit comments