<div><div dir="auto">Also, sometimes I have noticed, if I reconfigure and build the ndnfs application and restart the servers again, the first file copies to the mount directory and fails for the second file copy. Since I am working with a fixed set of files, could this be an issue with the SQLite dB? Can Is there a way to empty the file database and restart the ndnfs server? Should just unmounting the mount directory work? (It doesn't for me)</div><br><div class="gmail_quote"><div>On Sat, Jul 15, 2017 at 3:15 PM Ishita Dasgupta <<a href="mailto:ishita.dasgupta@gmail.com">ishita.dasgupta@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Thanks for sharing that information. </div><div dir="auto">Any possible explanation as to why a company to mount directory would fail with "<span style="font-family:tahoma,sans-serif"> </span><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(223,219,195);color:rgb(77,47,45);font-family:Courier;font-size:12px">cp: cannot create regular file ‘/tmp/ndnfs/file.txt’: No such file or directory</span>"</div><div dir="auto">Where /tmp/ndnfs is the mount directory? </div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Ishita </div></div><div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Sat, Jul 15, 2017 at 3:03 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Ishita</div><div dir="auto"><br></div><div dir="auto">I had an ndnfs-port deployment in 2015-2016, so I'll answer from user's perspective.</div><div class="gmail_quote" dir="auto"></div><div class="gmail_quote" dir="auto"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am trying to debug the error I am receiving while downloading files of different size on ndnfs. In according to do this, when I try to move files of different sizes to the mount directory(/tmp/ndnfs) AND root directory(/tmp/dir), I keep coming across following situations: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">1. If I move the new file to mount directory directly, it copies the files to both mount and root directory and I can see DEBUG logs of ndnfs_write and sign_segment logs on the ndnfs build window.</div></div></blockquote><div dir="auto"><br></div></div><div class="gmail_quote" dir="auto"><div dir="auto">This is just how FUSE works. The files are physically stored in the root directory, but it can be seen from both locations. Only one copy is stored on the disk.</div><div dir="auto">You should modify mount directory only, and never directly modify root directory.</div></div><div class="gmail_quote" dir="auto"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:tahoma,sans-serif"></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2. Sometimes when I try to move a file to mount directory directly, it would give me <span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(223,219,195);color:rgb(77,47,45);font-family:Courier;font-size:12px">cp: cannot create regular file ‘/tmp/ndnfs/100KB.txt’: No such file or directory</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"></div></div></blockquote><div dir="auto"><br></div></div><div class="gmail_quote" dir="auto"><div dir="auto">In my experience, copying with 'cp' on the terminal always works, uploading via sftp or scp never works.</div><div dir="auto">This may have something to do with how ndnfs-port monitors and reacts to file changes.</div></div><div class="gmail_quote" dir="auto"><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">3. In situations of 2, if I try to copy to root directory instead, it would copy to both mount and root directories, but I can't see DEBUG logs of ndnfs_write and sign_segment logs anymore like in 1 anymore. I need the logs as I am trying to overcome another anomaly where the last segment of a file gets set to 0. So, being able to see the sign_segment logs is necessary.</div></div></blockquote><div dir="auto"><br></div></div><div class="gmail_quote" dir="auto"><div dir="auto">You should never modify root directory directly, even when ndnfs is not running. It causes inconsistency between file system and ndnfs's database which stores the signatures.</div></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I do not understand why sometimes copying data directly to mount directory works and sometimes doesn't. Does Anyone has an possible explanation to all of this? It would be great if someone could explain why the application works differently in similar situations.</div></div></blockquote><div dir="auto"><br></div></div><div class="gmail_quote" dir="auto"><div dir="auto">Closing words: I wish there's another app that can serve files from filesystem directly, without relying on FUSE.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:tahoma,sans-serif"></div></div></blockquote></div>
</blockquote></div></div><div>-- <br></div><div data-smartmail="gmail_signature"><div><div><div><div><div><font face="tahoma, sans-serif"><span style="font-size:12.8000001907349px">Regards,</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Ishita Dasgupta</span><br style="font-size:12.8000001907349px"><i style="font-size:12.8000001907349px">Graduate Student<br></i><i><font size="2"><span>College</span> of <span>Information</span> and <span>Computer</span> <span>Sciences</span></font></i><i style="font-size:12.8000001907349px">,<br>UMass Amherst</i><br style="font-size:12.8000001907349px"><i style="font-size:12.8000001907349px">Email</i><span style="font-size:12.8000001907349px">: <a href="mailto:ishitadg@cs.umass.edu" target="_blank">ishitadg@cs.umass.edu</a></span></font><br></div></div></div></div></div></div></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="tahoma, sans-serif"><span style="font-size:12.8000001907349px">Regards,</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Ishita Dasgupta</span><br style="font-size:12.8000001907349px"><i style="font-size:12.8000001907349px">Graduate Student<br></i><i><font size="2"><span>College</span> of <span>Information</span> and <span>Computer</span> <span>Sciences</span></font></i><i style="font-size:12.8000001907349px">,<br>UMass Amherst</i><br style="font-size:12.8000001907349px"><i style="font-size:12.8000001907349px">Email</i><span style="font-size:12.8000001907349px">: <a href="mailto:ishitadg@cs.umass.edu" target="_blank">ishitadg@cs.umass.edu</a></span></font><br></div></div></div></div></div></div>