LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2010, 09:07 AM   #1
VGM
Member
 
Registered: Apr 2009
Posts: 33

Rep: Reputation: 15
Able to access the mounted folder though the actual folder is moved


We have a server and target board both running on linux. We mounted a folder in the server on the target board.i.e say a folder /A/B on the server was mounted on the target to /mnt by:

mount -t nfs -o nolock IP:/A/B /mnt

We were able to access /A/B through /mnt.

Now on the server move folder B to some other location say

mv /A/B /A/B_1

But still I am able to access B (now B_1) through /mnt on board.
1)If I delete a file in /mnt, I can see it deleted in /A/B_1
2) If I create a file /A/B_1, I can view it in /mnt

What is the reason for this..?

To check that I have moved the file properly,I had mounted the path on another board.There it shows "No such file or directory".

One thing I can guess is, "mv" just renames the folder,but doesnt change any other attributes.Is that the reason?
 
Old 09-16-2010, 09:10 AM   #2
VGM
Member
 
Registered: Apr 2009
Posts: 33

Original Poster
Rep: Reputation: 15
But if I keep it for some time,and access /mnt,I get the following error

nfs_statfs: statfs error = 116
nfs_statfs: statfs error = 116
nfs_statfs: statfs error = 116
nfs_statfs: statfs error = 116
nfs_statfs: statfs error = 116
 
Old 09-16-2010, 01:10 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
After a mv or even rm the original file is not deleted until all applications that are currently using it have "released" the file.

Try this: Open a video or music file. Whilst it is playing, delete the file on your HDD. It continues to play until it has finished, or you close your player. Then it is gone.

Linux is often smart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access file after FS mounted on parent folder mslootweg Linux - Software 2 10-12-2009 07:28 AM
[SOLVED] Life expectancy of a thread moved to a folder. stf92 LQ Suggestions & Feedback 1 08-18-2009 12:24 PM
Apache access to mounted folder pancakes Linux - Server 2 04-13-2009 01:53 PM
i moved my /etc to an other folder (/home) Casanogab General 10 04-01-2006 01:20 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration