Coda Distributed File System
vutil.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 8
5
6 Copyright (c) 1987-2021 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15
16#*/
17
18/*
19 IBM COPYRIGHT NOTICE
20
21 Copyright (C) 1986
22 International Business Machines Corporation
23 All Rights Reserved
24
25This file contains some code identical to or derived from the 1986
26version of the Andrew File System ("AFS"), which is owned by the IBM
27Corporation. This code is provided "AS IS" and IBM does not warrant
28that it is free of infringement of any intellectual rights of any
29third party. IBM disclaims liability of any kind for any damages
30whatsoever resulting directly or indirectly from use of this software
31or of any derivative work. Carnegie Mellon University has obtained
32permission to modify, distribute and sublicense this code, which is
33based on Version 2 of AFS and does not contain the features and
34enhancements that are part of Version 3 of AFS. Version 3 of AFS is
35commercially available and supported by Transarc Corporation,
36Pittsburgh, PA.
37
38*/
39
40#ifndef _VUTIL_H_
41#define _VUTIL_H_ 1
42
43#include <coda_tsa.h>
44#include "voldefs.h"
45
46Volume *VCreateVolume(Error *ec, char *partition, VolumeId volumeId,
47 VolumeId parentId, VolumeId groupId,
49 int rvmlogsize = 0) REQUIRES_TRANSACTION;
51void AssignVolumeName(VolumeDiskData *vol, char *name, const char *ext);
54
55int ListViceInodes(char *devname, char *mountedOn, char *resultFile,
56 int (*judgeInode)(struct ViceInodeInfo *, VolumeId),
57 int judgeParam);
58int ListCodaInodes(char *devname, char *mountedOn, char *resultFile,
59 int (*judgeInode)(struct ViceInodeInfo *, VolumeId),
60 int judgeParam);
61int HashString(char *s, unsigned int size);
62void CloneVolume(Error *error, Volume *original, Volume *newv, Volume *old);
63
64#endif /* _VUTIL_H_ */
#define REQUIRES_TRANSACTION
Definition: coda_tsa.h:107
int verbose
Definition: mkcodabf.c:30
name
Definition: pwdtopdbtool.py:40
partition
Definition: volusage.py:25
void(* type)()
Definition: rp2main.c:424
Definition: viceinode.h:59
Definition: volume.h:108
Definition: volume.h:234
Error error
Definition: vol-create.cc:87
#define readwriteVolume
Definition: voldefs.h:46
bit32 Error
Definition: voltypes.h:62
void AssignVolumeName(VolumeDiskData *vol, char *name, const char *ext)
Definition: vutil.cc:170
Volume * MakeBackupVolume(Volume *vp, Volume *sacrifice, int verbose)
int HashString(char *s, unsigned int size)
Definition: util.c:77
int ListCodaInodes(char *devname, char *mountedOn, char *resultFile, int(*judgeInode)(struct ViceInodeInfo *, VolumeId), int judgeParam)
void CloneVolume(Error *error, Volume *original, Volume *newv, Volume *old)
Definition: clone.cc:77
Volume * VCreateVolume(Error *ec, char *partition, VolumeId volumeId, VolumeId parentId, VolumeId groupId, int type=readwriteVolume, int rvmlogsize=0) REQUIRES_TRANSACTION
Definition: vutil.cc:91
void ClearVolumeStats(VolumeDiskData *vol)
Definition: vutil.cc:211
void CopyVolumeHeader(VolumeDiskData *from, VolumeDiskData *to)
Definition: vutil.cc:184
int ListViceInodes(char *devname, char *mountedOn, char *resultFile, int(*judgeInode)(struct ViceInodeInfo *, VolumeId), int judgeParam)