ITEM: AN3700L

What are the /etc/objrepos/*.vc files?



Question:

Env: 

AIX 4.1

Desc: 

What are the .vc files for in /etc/objrepos?

Action:

The .vc files are the files used to hold the vchar (variable sized 
character strings) for the odm.  Removing these files is the 
equivalent of removing the odm object class.  The files should NEVER
be deleted by the user to save space.

The variable length chars (vchars) are stored in a separate buffer
rather than in the ODM structure itself.  So the *.vc files are used
to store the actual data, while the ODM file actually contains the
offset to the data.  See /usr/include/odmi.h for the structures used
to build ODM files.

Here is an example that demonstrates how this works.

liz.cre:

  class liz {
          vchar name[256];
  };

liz.add:

  liz:
          name = "Elizabeth"

  liz:
          name = "Dee"

\# ODMDIR=/\; export ODMDIR
\# cd /\
\# odmcreate -p liz.cre
\# odmadd liz.add
\# odmget liz

  liz:
          name = "Elizabeth"

  liz:
          name = "Dee"

\# lquerypv -h liz 0 200

00000000   000DCFAC 00000002 00000000 000DCFAC  |................|
00000010   00000170 00000010 00000001 00000148  |...p...........H|
00000020   00000000 00000000 00000000 0000017C  |...............||
00000030   00000000 00000000 00000000 00000000  |................|
00000040   00000000 00000000 00000000 00000000  |................|
00000050   00000000 00000000 00000000 00000000  |................|
00000060   00000000 00000000 00000000 00000000  |................|
00000070   00000000 00000000 00000000 00000000  |................|
00000080   00000000 00000000 00000000 00000000  |................|
00000090   00000000 00000000 00000000 00000000  |................|
000000A0   00000000 00000000 00000000 00000000  |................|
000000B0   00000000 00000000 00000000 00000000  |................|
000000C0   00000000 00000000 00000000 00000000  |................|
000000D0   00000000 00000000 00000000 00000000  |................|
000000E0   00000000 00000000 00000000 00000000  |................|
000000F0   00000000 00000000 00000000 00000000  |................|
00000100   00000000 00000000 00000000 00000000  |................|
00000110   00000000 00000000 00000000 00000000  |................|
00000120   00000000 00000000 00000000 00000000  |................|
00000130   00000000 00000000 00000000 00000000  |................|
00000140   00000000 FFF23054 00000174 00000007  |......0T...t....|
00000150   0000000C 00000100 00000000 00000000  |................|
00000160   00000000 00000000 00000000 00000000  |................|
00000170   6C697A00 6E616D65 00000000 00000000  |liz.name........|
00000180   00000000 00000000 00000004 00000001  |................|
00000190   00000000 00000000 0000000E 00000000  |................|
000001A0   00000000 00000000 00000000 00000000  |................|
000001B0   00000000 00000000 00000000 00000000  |................|
000001C0   00000000 00000000 00000000 00000000  |................|
000001D0   00000000 00000000 00000000 00000000  |................|
000001E0   00000000 00000000 00000000 00000000  |................|
000001F0   00000000 00000000 00000000 00000000  |................|

\# lquerypv -h liz.vc

00000000   000CAA1C 00000012 00000000 00000028  |...............(|
00000010   00000000 00000000 00000030 00000000  |...........0....|
00000020   00000000 00000000 6C697A2E 76630000  |........liz.vc..|
00000030   00000000 456C697A 61626574 68004465  |....Elizabeth.De|
00000040   65000000 00000000 00000000 00000000  |e...............|
00000050   00000000 00000000 00000000 00000000  |................|
00000060   00000000 00000000 00000000 00000000  |................|
00000070   00000000 00000000 00000000 00000000  |................|
00000080   00000000 00000000 00000000 00000000  |................|
00000090   00000000 00000000 00000000 00000000  |................|
000000A0   00000000 00000000 00000000 00000000  |................|
000000B0   00000000 00000000 00000000 00000000  |................|
000000C0   00000000 00000000 00000000 00000000  |................|
000000D0   00000000 00000000 00000000 00000000  |................|
000000E0   00000000 00000000 00000000 00000000  |................|
000000F0   00000000 00000000 00000000 00000000  |................|


Support Line: What are the /etc/objrepos/*.vc files? ITEM: AN3700L
Dated: August 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:26
Comments or suggestions? Contact us