01-11-2008
Urgent : Help required
Hi all,
Could you please give me the command to know which is the default block size for a file on AIX ?
Thank a lot !
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I desperately wanted one of the UNIX Gurus to help me resolve my problem asap(I have to deliver the code to the client by Monday 08-oct).
I have a file with around 5 million records (50 lakhs). Now my original process was taking around 30 hours to read the complete file, process each and every... (4 Replies)
Discussion started by: kkumar1975
4 Replies
2. Programming
Hi,
I am writing a small 'C' program to add very large floating point numbers. Now the program should be capable of adding the maximum floating point number that is possible on Sun Solaris machine.
Can some let me know whether there is any extra logic that needs to applied for making sure... (2 Replies)
Discussion started by: kkumar1975
2 Replies
3. Programming
Hello,
I am doing a program in C on UNIX Platform. I am required to make it display the Machine Name, OS name and OS Release version using uname.
Now I went through the man pages and found out that uname can be implemented using -
#include <sys/utsname.h>
int uname (name)
struct... (2 Replies)
Discussion started by: rm1
2 Replies
4. Shell Programming and Scripting
How do I Ftp, and rename multiple files in one unix script. I have to send it with .tmp extension , then rename it to .txt after FTP is done . I need to do a Mass rename of more than 1 file in a shell script , Urgent help required. (1 Reply)
Discussion started by: Suppandi
1 Replies
5. UNIX for Dummies Questions & Answers
Hi UNIX Gurus,
I have got the following requirement and totally :confused: how to proceed.
A file is dummy.lst is there in the following format:--
ID NAME TYPE_ID
-------- --------- -----------
1947 Asia ... (1 Reply)
Discussion started by: rahul26
1 Replies
6. Shell Programming and Scripting
I have a text file, with a fixed format of certain data.
I have to extract certain fields of data.
Then store it in a structure.
Is it possible to use shell commands by making a system call from a C PROGRAM and then store the extracted data in the structure (which has been declared in the C... (1 Reply)
Discussion started by: umanglalani
1 Replies
7. Shell Programming and Scripting
Hello friends,
It will be great if we found some way to check this our:
we have some databases (teradata and oracle).
our applications(in java on weblogic) are using connection pools of these databases.
we have a pair of userID and password for every pool.
If we have any logic to test... (2 Replies)
Discussion started by: NIMISH AGARWAL
2 Replies
8. Shell Programming and Scripting
Hello everybody...
I am a Faculty trainer in Unix working in a firm.
Actually i needed around 800-1000 Linux related questions (Unix Commands,Shell Scripting,Unix Administration)...
Can anyone help me... (1 Reply)
Discussion started by: mraghunandanan
1 Replies
9. UNIX for Dummies Questions & Answers
HI All ,
Pardon me for asking some very basic questions,
I would be grateful if someone can help.
I am trying to execute a shell script which runs multiple processes in background. It includes various operations like copying , DB operations etc etc.
Now problem is that the complete... (1 Reply)
Discussion started by: gpta_varun
1 Replies
10. UNIX for Advanced & Expert Users
:eek:i hav a shell script in my linux server, i want to execute it everyday once automatically without using cron tabs as i dont hav permission to create one.
So wht sld i do??:confused: (1 Reply)
Discussion started by: Jay Thakkar
1 Replies
LEARN ABOUT FREEBSD
archive_write_get_bytes_in_last_block
ARCHIVE_WRITE_BLOCKSIZE(3) BSD Library Functions Manual ARCHIVE_WRITE_BLOCKSIZE(3)
NAME
archive_write_get_bytes_per_block, archive_write_set_bytes_per_block, archive_write_get_bytes_in_last_block,
archive_write_set_bytes_in_last_block -- functions for creating archives
LIBRARY
Streaming Archive Library (libarchive, -larchive)
SYNOPSIS
#include <archive.h>
int
archive_write_get_bytes_per_block(struct archive *);
int
archive_write_set_bytes_per_block(struct archive *, int bytes_per_block);
int
archive_write_get_bytes_in_last_block(struct archive *);
int
archive_write_set_bytes_in_last_block(struct archive *, int);
DESCRIPTION
archive_write_set_bytes_per_block()
Sets the block size used for writing the archive data. Every call to the write callback function, except possibly the last one, will
use this value for the length. The default is to use a block size of 10240 bytes. Note that a block size of zero will suppress
internal blocking and cause writes to be sent directly to the write callback as they occur.
archive_write_get_bytes_per_block()
Retrieve the block size to be used for writing. A value of -1 here indicates that the library should use default values. A value of
zero indicates that internal blocking is suppressed.
archive_write_set_bytes_in_last_block()
Sets the block size used for writing the last block. If this value is zero, the last block will be padded to the same size as the
other blocks. Otherwise, the final block will be padded to a multiple of this size. In particular, setting it to 1 will cause the
final block to not be padded. For compressed output, any padding generated by this option is applied only after the compression.
The uncompressed data is always unpadded. The default is to pad the last block to the full block size (note that
archive_write_open_filename() will set this based on the file type). Unlike the other ``set'' functions, this function can be called
after the archive is opened.
archive_write_get_bytes_in_last_block()
Retrieve the currently-set value for last block size. A value of -1 here indicates that the library should use default values.
RETURN VALUES
archive_write_set_bytes_per_block() and archive_write_set_bytes_in_last_block() return ARCHIVE_OK on success, or ARCHIVE_FATAL.
archive_write_get_bytes_per_block() and archive_write_get_bytes_in_last_block() return currently configured block size (-1 indicates the
default block size), or ARCHIVE_FATAL.
ERRORS
Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions.
SEE ALSO
tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5)
BSD
February 2, 2012 BSD