Increasing total data size per file system request for block drivers
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
Here, the total_bytes i.e the amount of data per request sent/received by file system is always <= 4KB.Hence it affects the card's read/write performance for large file size as the process needs to be repeated for every 4KB.
Is it like, the linux file system block size is limited to 4KB?
Is there any way to increase the transfer size per request?
How do i increase the filesystem size on a root partition?
There is a slice with root on it, its like 2 gigs and nothing else is broken out except home.
I want to increase root filesystem (and slice) and break out /usr and /var.
This is solaris 9, only has solaris volume manager on it.
... (6 Replies)
Hi
I am a bit green to AIX - but when our backup operator tries to do a restore from one AIX box to another, he get's the error:
'A file cannot be larger than the value set by ulimit'
I am wondering what is the impact of increasing the AIX filesize limit of 2 gb to unlimited. And how would... (1 Reply)
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
AIX 5.3 / KSH
I have a Java application which creates a log file a.log. I have a KSH script which does the following action
cp a.log /directory2/b.log
> a.log
After this the file size goes to 0 as per "ls -l"
Then next time when the application writes into this file, the file size... (4 Replies)
Hi,
I have recently taken up to support these SunOS 5.9 sun4u sparc SUNW,Sun-Fire-V240 boxes and got a request to increase the size of /backup01 as its getting filled up quickly and can't play much on it as these are production servers. As I have no idea about how to do this, can anyone let me... (0 Replies)
Hi Friends,
I want to cut space from one file system and add in another file system.
For example I have 100 gb space in /oracle/TST/oraarch
I wnat to cut 50 gb from this file system and add 50 in /oracle/TST/sapdata1.
Please hel, How I can do it.
Regards,
Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies
LEARN ABOUT FREEBSD
archive_write_set_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