Re: [zfs-discuss] grrr, How to get rid of mis-touched file named `-c'

2011-11-26 Thread Brandon High
On Wed, Nov 23, 2011 at 11:43 AM, Harry Putnam rea...@newsguy.com wrote:
 OK, I'm out of escapes.  or other tricks... other than using emacs but
 I haven't installed emacs as yet.

 I can just ignore them of course, until such time as I do get emacs
 installed, but by now I just want to know how it might be done from a
 shell prompt.

rm ./-c ./-O ./-k

-- 
Brandon High : bh...@freaks.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] grrr, How to get rid of mis-touched file named `-c'

2011-11-26 Thread Harry Putnam

[...]

Harry wrote:
  rm \-c
  rm: illegal option -- c
  usage: rm [-fiRr] file ...

 Ditto for:

  [\-]c
  '-c'
  *c
  '-'c
  \075c

 OK, I'm out of escapes.  or other tricks... other than using emacs but
 I haven't installed emacs as yet.

 I can just ignore them of course, until such time as I do get emacs
 installed, but by now I just want to know how it might be done from a
 shell prompt.

Will Murnane will.murn...@gmail.com writes:
 rm ./-O ./-c ./-k
 or pass an entire path.

Bryan Horstmann-Allen b...@mirrorshades.net writes:

[...]


 Use '--' to denote the end of arguments.


[...]

Brandon High bh...@freaks.com writes:

[...]

 rm ./-c ./-O ./-k

Thanks folks.  Both techniques work without fail.  Its always
something easy and usually the needed info is already flopping around
somewhere in my brain, but not put together.

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Confusing zfs error message

2011-11-26 Thread Ian Collins
I was trying to destroy a filesystem and I was baffled by the following 
error:


zfs destroy -r rpool/test/opt
cannot destroy 'rpool/test/opt/csw@2001_1405': dataset already exists

zfs destroy -r rpool/test/opt/csw@2001_1405
cannot destroy 'rpool/test/opt/csw@2001_1405': snapshot is cloned

It turns out there was a zfs receive writing to the filesystem.

A more sensible error would have been dataset is busy.

--
Ian.

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss