#include <afsconfig.h>
#include <afs/param.h>
-#ifdef AFS_NAMEI_ENV
+#if defined(AFS_NAMEI_ENV) && !defined(AFS_NT40_ENV)
#include <sys/types.h>
#include <stdio.h>
#ifdef AFS_PTHREAD_ENV
struct VnodeExtract *e;
afs_uint32 size;
afs_uint32 offset;
- afs_uint32 vN;
*length = 0;
if (parent)
static afs_int32
copyDir(struct Msg *m, IHandle_t *inh, IHandle_t *outh)
{
- afs_int32 code;
FdHandle_t *infdP, *outfdP;
char *tbuf;
afs_size_t size;
afs_uint64 size;
afs_uint64 offset;
Inode ino, newino;
- afs_uint32 newVn;
fdP = IH_OPEN(vol->vnodeIndex[class].handle);
if (!fdP) {
FdHandle_t *infdP = 0;
FdHandle_t *outfdP = 0;
char *tbuf = malloc(2048);
- Inode nearInode;
#if defined(NEARINODE_HINT)
+ Inode nearInode;
V_pref(vol,nearInode)
#endif
return EIO;
}
FDH_SEEK(fdP2, 0, 0);
- sprintf(&symlink, "#%s", V_name(newvol));
+ sprintf(symlink, "#%s", V_name(newvol));
size = strlen(symlink) + 1;
- if (FDH_WRITE(fdP2, &symlink, size) != size) {
+ if (FDH_WRITE(fdP2, symlink, size) != size) {
Log("split volume: couldn't write mountpoint %u.%u.%u\n",
V_id(vol), newvN, vnode.uniquifier);
return EIO;
*blocks += (size + 0x3ff) >> 10;
ino = VNDISK_GET_INO(vnode);
if (ino) {
- IHandle_t *h, *newh;
+ IHandle_t *h;
IH_INIT(h, vol->device, V_parentId(vol), ino);
IH_DEC(h, ino, V_parentId(vol));
#ifdef AFS_RXOSD_SUPPORT
rx_Write(m->call, m->line, strlen(m->line));
}
code = findName(vol, parVnode, where, rootVnode->uniquifier,
- &name, sizeof(name));
+ name, sizeof(name));
if (code) {
sprintf(m->line,
"splitvolume: could'nt find name of %u in directory %u.%u.%u.\n",
SAFSVolSplitVolume(struct rx_call *acall, afs_uint32 vid, afs_uint32 new,
afs_uint32 where, afs_int32 verbose)
{
-#ifdef AFS_NAMEI_ENV
+#if defined(AFS_NAMEI_ENV) && !defined(AFS_NT40_ENV)
afs_int32 code, code2;
Volume *vol=0, *newvol=0;
struct volser_trans *tt = 0, *tt2 = 0;