From: Ian=Brabham%CC%Monash@BANYAN.CC.MONASH.EDU.AU
Newsgroups: bit.listserv.banyan-l
Subject: re: Moving directory trees on VINES
Date: 19 Dec 92 04:42:11 GMT
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Content-transfer-encoding: 7BIT

Mike,

I guess what your asking for is some clever program that works much like the
unix mv command and moves the filenames without actually copying all the data
associated with them.  Vines support for the DOS rename call (int 21h ah=56h)
allows files to be renamed from one directory of a file service to another
directory of the same file service.

As a few people have responded WIN 3.1 File Mangler implements a move tree
function and it IS based on the DOS rename call so it WILL basically do what
you want.  That just leaves how to get the arls.  In rev 4 sorry I can't
help.  In rev 5 by using the new NODELETE attribute on all the directories in
the tree, file manager will duplicate the directory structure, "rename" all
the files to the new place, and of course won't be able to remove the old
directory.  You can then use the new vines VCOPY command to copy the now
empty old structure with it's ARL's over the top of the new structure
updating the ARLS as it goes.  Viola a copied tree without copying a byte
of user data.

Windoze file mangler is not the only program to use the rename call in
this way, Norton Commander (NC), XTree and PCTools also offer similar
functionality.

STOP PRESS:  John Jabusch has just loaded something called MVT onto CSUS
             which looks like what you might want.  Check it out.

Ian Brabham                 email: ian@banyan.cc.monash.edu.au
Micro Support Group         phone: +61 3 565 4742
Monash University           fax:   +61 3 565 4746
Melbourne Australia

>I guess I may have not clearly explained all of the issues in my previous
>request about directory renaming.  I realize that there are a number of ways
>to rename a subdirectory including TreeView.  There are also many convenient
>ways to move a subdirectory using Windows which in effect implement a
>COPY/DELETE function (I believe).

>My problem is that I want to re-organize our directory structure which
>contains CAD files.  Because of the size of these files and directories, it
>is not easily workable to COPY and then DELETE.  It would simply take a long
>time.  I am hoping to find a utility or command which would work with the
>UNIX file system on the VINES server to move the dierctories while not
>actually moving the files.  I believe that this involves changing some
>pointers, and is achievable using UNIX commands.  However, I want don't have
>access to the UNIX sub-system.

>Also, I would like a utility which would take the ARLs with the directories,
>however this is less critical.
=============================================================================
<I woulld like to be able to move a subdirectory tree from one branch to
<another on a VINES file volume, like this:
<
<         \                                       \
<  +------+------+                         +------+------+
< 123    WP     DATA                      123    WP     DATA
<  +        +----+----+              +-----+--           +----+
<  C        A    B   JOB             C    JOB            A    B
<                  +--+--+              +--+--+
<                  X  Y  Z              X  Y  Z
<
<The JOB subdirectory may have many files and further subdirectories under it.
<All of the data will remain on the file volume, it simply needs tobe
<rearranged a bit.

<I know that there are easy ways to do this if I had direct access to the
<UNIX system, but alas, I have no such ability.  Is there an easier way than
<multiple COPYs and DELs?
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU