|
|
#1 |
|
Major Leaguer
Join Date: Feb 2004
Location: Lincoln, NE
Posts: 278
|
rm -W
Hi, does anyone know how the -W flag works for rm? The man page specifies:
Code:
Attempt to undelete the named files. Currently, this option can only be used to recover files covered by whiteouts. When I create a file, rm it, and then try to rm -W it I get a "No such file or directory" error. If I attempt it on an already existant file, I get a "File exists" error. Is this an option that's available in other systems but not in Mac or am I misunderstanding it's purpose/use?
__________________
~Jayson <www.kempinger.us> |
|
|
|
|
|
#2 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,956
|
I believe that the "-W" flag only applies when a filesystem has been mounted as a layer over another one using a "union" mount. (This is highly unusual and I don't think you'll see it in normal OS X use.)
Here's an article on union mounts: http://www.usenix.org/publications/l...ers/mckusick.a It explains the "whiteout" operation.
__________________
hayne.net/macosx.html |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|