RE: Memo: Re: UV: How do I determine whether a file is using 64bitor 32 bit addressing

2004-04-07 Thread Chuck Mongiovi
Does anyone have the "magic" settings for UniData 6/Unix files?
-Chuck

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Logan, David (SST - Adelaide)
Sent: Tuesday, April 06, 2004 1:09 AM
To: U2 Users Discussion List
Subject: RE: Memo: Re: UV: How do I determine whether a file is using
64bitor 32 bit addressing


Hi Clif,

These 3 or 4 lines I worked out myself (it looks small and simple but it
took me a while) and then Glenn H. contributed the rest of the data
below. I use it for running a script every night that checks on the size
of the files and will alert us to any file growing over 1.5Gb so we can
ensure it is included in the next resize. This has saved our bacon a few
times now although due credit to FAST as it will automagically resize
the file to a 64bit once it reaches that limit. You could change the
output (eg. the Universe 32 Bit description) to anything you wish.
Glenns version is far more comprehensive but I only have one version of
universe to worry about.

I use it

$ file -m /usr/local/etc/magic *

The output being

&SAVEDLISTS&:   directory
BP: directory
BP.O:   directory
D_&SAVEDLISTS&: Universe 32 Bit
D_BP:   Universe 32 Bit
D_BP.O: Universe 32 Bit
D_MYTEST:   Universe 32 Bit
D_RESULT:   Universe 32 Bit
D_TEST: Universe 32 Bit
D_VOC:  Universe 32 Bit
D_VOCLIB:   Universe 32 Bit
MYTEST: Universe 32 Bit
RESULT: directory
STUFF:  commands text
TEST:   Universe 64 bit <--
VOC:Universe 32 Bit <--
VOC.bak:Universe 32 Bit
VOCLIB: Universe 32 Bit
W360LIVE:   ascii text
bin:directory
fast.tar:   data
man:directory
rcmd.log:   empty
rcopy.conf: ascii text
save_key_files.ksh: /bin/ksh script
update.hpadmin: /usr/bin/ksh script


Regards

#
#offset typeoperator+value  string to print
# Universe files
#
2   short   0xacef  Universe
>0  short   0x010c  32 Bit
>0  short   0x020c  64 bit

The next few lines were from Glenn Herbert via the list sometime ago
(9th of Jan 2003).

The magic file I set up and use for all the various universe data file 
types is as follows (note that this file does NOT support 64BIT files,
but 
could be readily done):

start of magic file===
#
# UniVerse magic file
#
0   short   0xacef  uniVerse file (unix:class8)
 >2 short   0x0104  v0104(4.3.1)
 >2 short   0x0105  v0105(5.3.1)
 >2 short   0x0106  v0106(6.3.4)
 >2 short   0x0107  v0107(7.3.1)
 >2 short   0x0108  v0108(7.3.2)
 >2 short   0x0109  v0109(8.3.1)
 >2 short   0x010a  v010a(9.3.1)
 >2 short   0x010b  v010b(9.3.2)
 >2 short   0x010c  v010c(9.5.1)
 >4 long>0  type %d
 >12long>0  mod %d
 >16long>0  sep %d
#
# Note that mod & sep are incorrect for values > 256 due to byte
ordering
#
0   short   0xefac  uniVerse file (xinu:class2)
 >2 short   0x0401  v0104(4.3.1)
 >2 short   0x0501  v0105(5.3.1)
 >2 short   0x0601  v0106(6.3.4)
 >2 short   0x0701  v0107(7.3.1)
 >2 short   0x0801  v0108(7.3.2)
 >2 short   0x0901  v0109(8.3.1)
 >2 short   0x0a01  v010a(9.3.1)
 >2 short   0x0b01  v010b(9.3.2)
 >2 short   0x0c01  v010c(9.5.1)
 >6 byte>0  mod %d
 >10byte>0  sep %d
 >14byte>0  type %d
#
# new class
#
2   short   0xacef  uniVerse file (ixun:class1)
 >0 short   0x0104  v0104(4.3.1)
 >0 short   0x0105  v0105(5.3.1)
 >0 short   0x0106  v0106(6.3.4)
 >0 short   0x0107  v0107(7.3.1)
 >0 short   0x0108  v0108(7.3.2)
 >0 short   0x0109  v0109(8.3.1)
 >0 short   0x010a  v010a(9.3.1)
 >0 short   0x010b  v010b(9.3.2)
 >0 short   0x010c  v010c(9.5.1)
 >4 long>0  mod %d
 >8 long>0  sep %d
 >12long>0  type %d
#
# Note that mod & sep are incorrect for values > 256 due to byte
ordering
#
2   short   0xefac  uniVerse file (ixnu:class1a)
 >0 short   0x0401  v0104(4.3.1)
 >0 short   0x0501  v0105(5.3.1)
 >0 short   0x0601  v0106(6.3.4)
 >0 short   0x0701  v0107(7.3.1)
 >0 short   0x0801  v0108(7.3.2)
 >0 short   0x0901  v0109(8.3.1)
 >0 short   0x0a01  v010a(9.3.1)
 >0 short   0x0b01  v010b(9.3.2)
 >0 short   0x0c01  v010c(9.5.1)
 >4 byte>0  mod %d
 >8 byte>0  sep %d
 >12byte>0  type %d

RE: Memo: Re: UV: How do I determine whether a file is using 64bitor 32 bit addressing

2004-04-05 Thread Josh Volosov (3)
I will be out of the office from 12:30PM on April 5th through April 7th.
  I will not have access to e-mail or voice mail.   If this cannot wait
until my return please e-mail [EMAIL PROTECTED], or call 410.691.2888.

I will be available via, e-mail or voice mail on April 8th and 9th. 

Thank you,
Josh
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users