public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* confusing snapshot error
@ 2014-04-06 13:18 Russell Coker
  0 siblings, 0 replies; only message in thread
From: Russell Coker @ 2014-04-06 13:18 UTC (permalink / raw)
  To: linux-btrfs

ERROR: cannot snapshot '/home' - Read-only file system

The above error occurs when a read-only snapshot already exists.

I think it would be better if the target name had to be fully qualified and 
gave an error "path already 
exists" or something similar.  While the current behavior mimics the operation 
of mv and is surely 
considered a feature by some people, I don't think that mimicing mv is that 
great a feature and the 
current operation gives misleading errors when a snapshot exists.  I just had 
errors from a bunch of 
systems when daylight savings ended and it would have saved me some time if 
the error was clearer.

If we are going to mimic traditional Unix commands then I think it would be 
good to have functionality 
analogous to "mkdir -p" so that next year my cron jobs just quietly don't try 
to make snapshots twice.


Thanks

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-06 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 13:18 confusing snapshot error Russell Coker

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