public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* delete recursivly subvolumes?
@ 2019-07-05 19:39 Ulli Horlacher
  2019-07-05 19:47 ` Ulli Horlacher
  0 siblings, 1 reply; 5+ messages in thread
From: Ulli Horlacher @ 2019-07-05 19:39 UTC (permalink / raw)
  To: linux-btrfs

I am a master in writing unnecessary software :-}
"I have a great idea! I'll write a program for this!"
(some time and many lines of code later)
"ARGH... there is already such a program and it is better than mine!"

This time I ask BEFORE I do the coding:

Is there a command/script/whatever to remove subvolume which contains
(somewhere) other subvolumes?

Example:

root@xerus:/test# btrfs_subvolume_list /test/ | grep /tmp
/test/tmp
/test/tmp/xx/ss1
/test/tmp/xx/ss2
/test/tmp/xx/ss3

root@xerus:/test# btrfs subvolume delete /test/tmp
Delete subvolume (no-commit): '/test/tmp'
ERROR: cannot delete '/test/tmp': Directory not empty



-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20190705193945.GB23600@tik.uni-stuttgart.de>

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

end of thread, other threads:[~2019-07-05 20:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-05 19:39 delete recursivly subvolumes? Ulli Horlacher
2019-07-05 19:47 ` Ulli Horlacher
2019-07-05 19:51   ` Hugo Mills
2019-07-05 19:56     ` Ulli Horlacher
2019-07-05 20:02       ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox