filefilesystemsmountnfsnfsclient

NFS or SSHFS : How to disable client writes to server?


[EDIT] NFS or any other similar software like SSHFS.

  1. client mounts from server
  2. client modifies/writes contents of mounted FS

now i don't want to reflect those changes to the server. Is it possible?

Or is there any other FS. Thank you.


Solution

  • If I understand the question correctly, you are looking for a distributed/networked FileSystem

    1. you can mount on a Client
    2. make changes to the FileSystem
    3. do not report these changes back to the server hosting the FileSystem.

    Why have a distributed FileSystem, then? This FS would need to track all changes for all users and isolate them against each other. I am not aware, that such an FS exists, and why would it, as I do not see the usecase for it.

    Edit: If you want a working copy to mess around with/alter just rsync the directory from the server to your local machine. In case anything goes wrong, purge it and rsync again.