On Mon, Jul 11, 2011 at 03:21, huang jun <hjwsm1989@xxxxxxxxx> wrote: > hi, developers > we use ceph v0.30, kernel client 2.6.37 > mount ceph on /mnt > $ mkdir /mnt/a > $ cd a > $ seq 10 | xargs -i mkdir {} > $ cd .. > $ rm -rf a > from the debug log of mds.we find > if we want remove one subdirectory in "a", we must execute readdir " a > " operation each time > so we need read dir "a" 10 times. > but in normal way, it should readdir "a" once, and remove all the > subdirectories if we use "rm -rf a". > > we'd like to know how did ceph parse command "rm -rf " ? Was there an actual error from "rm -rf a"? What was the message? What did the mds debug log say? Please provide more detail. Ceph does not parse "rm -rf"; rm does a opendir(3)/readdir(3)/closedir(3) loop and within it, unlink(2)s the files (or recurses into subdirectories); Ceph receives these filesystem manipulation system calls via the Linux kernel's VFS subsystem. -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html