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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
xdf_seek
XDF_SEEK(3) xdffileio library manual XDF_SEEK(3)
NAME
xdf_seek - move the sample pointer of a xDF file
SYNOPSIS
#include <xdfio.h>
off_t xdf_seek(struct xdf* xdf, off_t offset, int whence);
DESCRIPTION
xdf_seek() repositions the current sample pointer according to the couple (offset,whence) where whence can be:
SEEK_SET
The offset is set to offset bytes.
SEEK_CUR
The offset is set to its current location plus offset bytes.
SEEK_END
The offset is set to the size of the file plus offset bytes.
The file referenced by xdf should have been opened with mode XDF_READ and xdf_prepare_arrays(3) should have been successfully called on it.
RETURN VALUE
Upon successful completion, xdf_seek() returns the resulting offset location as measured in number of samples from the beginning of the
recording. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
EINVAL xdf is NULL or whence is none of the allowed values.
EPERM No successfull call to xdf_prepare_transfer(3) have been done on xdf or it has been opened using the mode XDF_WRITE.
ERANGE The requested offset is out of the range of the recording.
EINTR The call was interrupted by a signal before any data was read; see signal(7).
EIO A low-level I/O error occurred while reading from the inode.
ESTALE Stale file handle. This error can occur for NFS and for other file systems
SEE ALSO
xdf_define_arrays(3), xdf_prepare_transfer(3)
EPFL
2010 XDF_SEEK(3)