Lines Matching refs:mode
62 local mode="$3"
90 if [ "$mode" = 'w' ]
122 if [ "$mode" = 'w' ]
158 local mode=$(canonicalise_mode "$2")
162 if [ "x$mode" = 'x!' ]
167 result=$(check_sharing "$type" "$dev" "$mode")
171 do_ebusy "Device $dev is mounted " "$mode" "${result%% *}"
188 local mode="$3"
193 result=$(check_sharing "$type" "$dev" "$mode" "$inode")
198 which is mounted " "$mode" "${result%% *}"
213 local mode="$2"
225 if [ "$mode" = 'w' ]
243 mode=$(xenstore_read "$XENBUS_PATH/mode")
276 check_device_sharing "$dev" "$mode"
287 mode=$(canonicalise_mode "$mode")
300 if [ "$mode" = 'w' ] && ! stat "$file" -c %A | grep -q w
308 if [ "x$mode" != 'x!' ]
317 check_file_sharing "$file" "$dev" "$mode" "$inode"
329 roflag="-$mode"; roflag="${roflag#-w}"; roflag="${roflag#-!}"