Sponsored Content
Full Discussion: offset - informix chunk
Top Forums UNIX for Dummies Questions & Answers offset - informix chunk Post 33944 by shibz on Monday 27th of January 2003 07:34:03 AM
Old 01-27-2003
offset - informix chunk

Hello all,

I am trying to add chunks to my informix dataspace. I have one dataspace ( the rootdbs ) and the new chunk is a raw device. Precisely slice1 on my new external harddisk.

The question is, what should be the offset value. The document says, the offset is used by the engine to identify the beginning of the file. Can I give some arbitary value, so that it skips the initial blocks ( like 300 ). Or is there any logical method to identify the best offset ?

The informix version is 5.1 and platform is Sun OS 5.5.1

Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Surrounding a chunk of code by #ifdef and #endif

Hello the great gurus :) I'm quite new to this, so perhaps I'm asking a simple and trivial question (which is good, because you'll answer for sure :)))) Anyway. I have an amount of *.c files (about 100), and what I want to do, is to surround a specific function call with #ifdef and #endif. ... (6 Replies)
Discussion started by: xxxaxa
6 Replies

2. Programming

Negative Offset

Function: int fcntl(int fd, int cmd, struct flock * lock) Data Type: struct flock This structure is used with the fcntl function to describe a file lock. It has these members: off_t l_start This specifies the offset of the start of the region to which the lock applies, and... (1 Reply)
Discussion started by: DNAx86
1 Replies

3. Shell Programming and Scripting

Read Write byte range/chunk of data from specific location in file

I am new to Unix so will really appreciate if someone can guide me on this. What I want to do is: Step1: Read binary file - pick first 2 bytes, convert from hex to decimal. Read the next 3 bytes as well. 2 bytes will specify the number of bytes 'n' that I want to read and write... (1 Reply)
Discussion started by: Kbenipel
1 Replies

4. Shell Programming and Scripting

print chunk of lines only if there is a pattern match in between them

Hi All, Please find the sample file below: NAME ID NUMBER -------------------------------------------------------------------------------------------------- --------- abcdefgheija;lksdf ... (13 Replies)
Discussion started by: niel.verty
13 Replies

5. Shell Programming and Scripting

Delete chunk of text if contains certain strings

Using awk how to delete chunk of text if it contains certain strings? As in the following, delete a reference chunk, i.e. everything from <reference attribute = "value"> to </reference> inclusive, if within it "Group ID" value is 7 or 96 or 103 or 1005. <reference attribute = "value"> ... (3 Replies)
Discussion started by: pioavi
3 Replies

6. UNIX for Advanced & Expert Users

chunk server implementation

How unix file can be put in the hash table and how to write a program in which the chunk server acts as a client and server . Can you give me a comprehensive idea of implementation. (0 Replies)
Discussion started by: kswapnadevi
0 Replies

7. Shell Programming and Scripting

Grabbing a chunk of text from a file

Hi, I have a Report.txt file. Say the contents of this file are : 1 2 3 4 5 7 df v g gf e r dfkf lsdk dslsdklsdk Report Start: xxxxxxdad asdffsdfsdfsdfasfasdffasdf sadfasdfsadffsfsdf Report End. sdfasdfasdf sdfasfdasdfasdfasdfasdf sadfasdfsdf I need to grab from Report Start... (3 Replies)
Discussion started by: mrskittles99
3 Replies

8. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies

9. Shell Programming and Scripting

Isolating a chunk of text using php

greetings, i'll start by stating; i am NOT looking for the EXACT syntax to my query but a simple yes or no of its possibility. and if you're feeling generous maybe the php function(s) that i'd use as a jump start. i could use bash but i really want to take a shot at doing this with php. the... (0 Replies)
Discussion started by: crimso
0 Replies
AFREADMISC(3)															     AFREADMISC(3)

NAME
afReadMisc, afWriteMisc, afSeekMisc - access miscellaneous metadata in an audio file SYNOPSIS
#include <audiofile.h> int afReadMisc (AFfilehandle file, int miscid, void *buffer, int nbytes); int afWriteMisc (AFfilehandle file, int miscid, const void *buffer, int nbytes); int afSeekMisc (AFfilehandle file, int miscid, int offbytes); DESCRIPTION
afReadMisc reads up to nbytes from the miscellaneous data chunk identified by miscid in file. afWriteMisc writes up to nbytes to the miscellaneous data chunk identified by miscid in file. afSeekMisc changes the current offset within the miscellaneous data chunk identified by miscid to the offset offbytes. RETURN VALUE
afReadMisc returns the number of bytes read from the specified miscellaneous chunk into the buffer referred to by buffer. afWriteMisc returns the number of bytes written to the specified miscellaneous chunk from the buffer referred to by buffer. afSeekMisc returns the new location of the logical data pointer as measured as an offset in bytes from the beginning of the miscellaneous chunk's data area. ERRORS
afReadMisc, afWriteMisc, and afSeekMisc can produce the following error codes: o AF_BAD_READ o AF_BAD_WRITE o AF_BAD_MISCSEEK o AF_BAD_MISCID o AF_BAD_TRACKID o AF_BAD_FILEHANDLE AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFREADMISC(3)
All times are GMT -4. The time now is 02:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy