From 52c34af5f4814b0b85efdc3c4d23638b6ca5514c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sun, 23 Aug 2009 22:35:36 +0000 Subject: performance/stat-prefetch: implement sp_rename. Signed-off-by: Anand V. Avati BUG: 221 (stat prefetch implementation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221 --- doc/stat-prefetch-design.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/stat-prefetch-design.txt b/doc/stat-prefetch-design.txt index 13abc52976a..6328875ac87 100644 --- a/doc/stat-prefetch-design.txt +++ b/doc/stat-prefetch-design.txt @@ -89,9 +89,16 @@ fops to be implemented: * rename 1. remove entry corresponding to oldname from cache stored in fd contexts of - old parent directory. - 2. remove entry corresponding to new parent directory from cache stored in - fd contexts of its parent directory. + oldparent. + 2. remove entry corresponding to newname from cache stored in fd contexts of + newparent. + 3. remove entry corresponding to oldparent from cache stored in + old-grand-parent. + 4. remove entry corresponding to newparent from cache stored in + new-grand-parent. + 5. if oldname happens to be a directory, remove entire cache from all fds + opened on it. + * create/mknod/mkdir/symlink/link Delete entry corresponding to basename of directory in which these operations -- cgit