How does cephfs ensure client cache consistency?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

There are 2 clients, A and B. There is a directory /a/b/c/d/.

Client A create a file /a/b/c/d/a.txt.

Client B move the folder d to /a/.

Now, this directory looks like this:/a/b/c/ and /a/d/.

/a/b/c/d is not exist any more.

Client A try to create a file /a/b/c/d/b.txt.

 

The result is, when use nfs-ganesha & mount -t nfs4,it successfully create a file but in /a/d/b.txt, of course it’s wrong. However, it failed to create a file when use mount -t ceph.

 

What I wonder is, Client A saved the Session and Dentry when create the first file. Why it failed the second time? How does cephfs prevent it? I am a student and I read the Client.cc but get no answer.

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux