<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">vilobh meshram</b> <span dir="ltr"><<a href="mailto:meshram.vilobh@gmail.com">meshram.vilobh@gmail.com</a>></span><br>

Date: Thu, May 5, 2011 at 2:37 AM<br>Subject: Question on path name resolution in Lustre<br>To: lustre-discuss <<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>>, <a href="mailto:lusre-devel@lists.lustre.org">lusre-devel@lists.lustre.org</a><br>

<br><br>Hi,<br><br>I have noticed that for file or directory kind of operation in Lustre, the Lock Manager grabs an EX (Exclusive lock) on the parent directory and then creates a directory or file inside it.Is there a specific reason behind this logic or implementation.<br>


<br>e.g. : If we want to create foo.txt in /d1/d2/d3/d4/d5/foo.txt<br><br>We grab the lock on /d1<br>then we grab the lock on /d1/d2<br>then we grab the lock on /d1/d2/d3<br>then we grab the lock on /d1/d2/d3/d4<br>then we grab the lock on /d1/d2/d3/d4/d5<br>


then we create the file.<br>This is what I have seen in logs.<br><br>Is this the correct method followed during first time file access or file creation ? <br><br>If yes then how is the performance when the directory depth is very high ?<br>


<br>If no can you explain me how it happens.<br><br>Thanks,<br><font color="#888888">Vilobh<br>
</font></div><br>