On Fri, Aug 21, 2015 at 10:19:54AM +0200, Swâmi Petaramesh wrote: > 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 ? There was a bug long ago that produced subdirectories like that. btrfs check should be able to deal with them. Hugo. -- Hugo Mills | "What's so bad about being drunk?" hugo@... carfax.org.uk | "You ask a glass of water" http://carfax.org.uk/ | Arthur & Ford PGP: E2AB1DE4 | The Hitch-Hiker's Guide to the Galaxy
Attachment:
signature.asc
Description: Digital signature
