Hi Swâmi, did you check with lsof that no process has an open file descriptor in that directory? Regards, Karsten 2015-08-21 10:19 GMT+02:00 Swâmi Petaramesh <swami@xxxxxxxxxxxxxx>: > Hello, > > BTRFS refuses to remove an empty dir and pretends it is not empty (and there > is no BTRFS subvolume involved in there...) > > # uname -r > 4.1.5-1-ARCH > > > # ls -alnR .dropbox-old/ > .dropbox-old/: > total 0 > drwx------ 1 1000 1000 18 21 août 09:59 . > drwxr-x--- 1 1000 1000 2624 21 août 10:09 .. > drwx------ 1 1000 1000 416 21 août 09:59 instance1 > > .dropbox-old/instance1: > total 0 > drwx------ 1 1000 1000 416 21 août 09:59 . > drwx------ 1 1000 1000 18 21 août 09:59 .. > > > # rm -rf .dropbox-old > rm: cannot remove ‘.dropbox-old/instance1’: Directory not empty > > # ls -alnR .dropbox-old/instance1/ > .dropbox-old/instance1/: > total 0 > drwx------ 1 1000 1000 416 21 août 09:59 . > drwx------ 1 1000 1000 18 21 août 09:59 .. > > # rm -rf .dropbox-old/instance1/ > rm: cannot remove ‘.dropbox-old/instance1/’: Directory not empty > > > How could this be fixed ? > > TIA, kind regards. > > -- > Swâmi Petaramesh <swami@xxxxxxxxxxxxxx> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
