All of lore.kernel.org
 help / color / mirror / Atom feed
* sub del: directory not empty, even though it is
@ 2014-04-14 16:50 Shaun Reich
  2014-04-14 18:48 ` Chris Mason
  0 siblings, 1 reply; 4+ messages in thread
From: Shaun Reich @ 2014-04-14 16:50 UTC (permalink / raw)
  To: linux-btrfs

attempting to restructure my fs snapshots the proper way, previous way
was like this:

(subvol=0)
boot
etc
var
...
SNAPSHOTS/01-16-14/{boot,etc,dev, proc..}
SNAPSHOTS/03-22-14... etc

i removed all but the 01-16-14 via sub del. i then thought 'i don't
want the data at top-level anyways as its a botched upgrade, so i'll
just revert to the last snapshot via a mv.

so i rm'd everything at top level except snapshots, cd
snapshots/01-16-14;mv * ../..

now an ls -a at the dated dir shows empty, my files are where they
should be so i really just want this to be gone. and a sub list on the
top-level mount path lists:

# btrfs sub list -ta /mnt/1
ID      gen     top level       path
--      ---     ---------       ----
291     199502  5               SNAPSHOTS/01-16-14

yet, oddly enough btrfs sub del really doesn't want to delete it, even
though it's entirely empty and not in use either.

# btrfs sub del /mnt/1/SNAPSHOTS/01-16-14
Transaction commit: none (default)
Delete subvolume '/mnt/1/SNAPSHOTS/01-16-14'
ERROR: cannot delete '/mnt/1/SNAPSHOTS/01-16-14' - Directory not empty


-- 
Shaun Reich,
KDE Software Developer (kde.org)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-14 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 16:50 sub del: directory not empty, even though it is Shaun Reich
2014-04-14 18:48 ` Chris Mason
2014-04-14 19:14   ` Chris Mason
2014-04-14 19:29     ` Shaun Reich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.