Sponsored Content
Operating Systems Linux Increasing total data size per file system request for block drivers Post 302452819 by jim mcnamara on Monday 13th of September 2010 07:11:27 AM
Old 09-13-2010
statvfs() or fstatvfs() will tell you block size for a given filesystem/file descriptor. There is no way to change it that I am aware of.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

increasing file system

Hi, on /dev1 I have 50Gb, on /dev2 I have 5Gb. How can I give the 50Gb to /dev2 and give back 5Gb to /dev1. Many thanks. PS : OS is AIX (1 Reply)
Discussion started by: big123456
1 Replies

2. UNIX for Dummies Questions & Answers

increasing ufs file system size in solaris

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)
Discussion started by: BG_JrAdmin
6 Replies

3. AIX

Increasing File Size on AIX

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)
Discussion started by: Rosie C
1 Replies

4. Solaris

Increasing File system

Dear all.... I want to increase the file system /u01 from 5 GB to 8GB. So what would be the command... Thanx in Advance.... (1 Reply)
Discussion started by: rosyblue
1 Replies

5. Solaris

command to find out total size of a specific file size (spread over the server)

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)
Discussion started by: abhinov
3 Replies

6. UNIX for Dummies Questions & Answers

Trying to empty file using > but the file size increasing when next append

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)
Discussion started by: firdousamir
4 Replies

7. Solaris

increasing file system size

Hi Can anyone explain me how to increase the filesystem size. We can do it when the system is running? It needs an reboot? (8 Replies)
Discussion started by: rogerben
8 Replies

8. Solaris

Help with increasing file system size in Sun OS 5.9

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)
Discussion started by: phanidhar6039
0 Replies

9. UNIX for Dummies Questions & Answers

find block size of ocfs2 file system

please some one help me to find the block size of ocfs2 file system in rehat linux 4 (4 Replies)
Discussion started by: robo
4 Replies

10. HP-UX

Increasing space in file system

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
statvfs(2)							System Calls Manual							statvfs(2)

NAME
statvfs, fstatvfs - Gets file system information SYNOPSIS
#include <sys/statvfs.h> int statvfs ( const char *path, struct statvfs *buffer ); int fstatvfs ( int file_descriptor, struct statvfs *buffer ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: fstatvfs(): POSIX.1, XSH5.0 statvfs(): POSIX.1, XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies any file within the mounted file system. Specifies a file descriptor obtained by a successful open() or fcntl() function. Points to a statvfs buffer to hold the returned information for the statvfs() or fstatvfs() function. DESCRIPTION
The statvfs() and fstatvfs() functions return descriptive information about a mounted file system. The returned information is in the for- mat of a statvfs structure, which is defined in the sys/statvfs.h header file. RETURN VALUES
Upon successful completion, either function returns 0 (zero). Otherwise, it returns -1, sets errno to indicate the error. If the statvfs() function fails, errno may be set to one of the following values: Search permission is denied for a component of the path prefix [Tru64 UNIX] The requested address is invalid. An I/O error occurred while reading the file system. A signal was caught during execution of the function. [Tru64 UNIX] The value returned by statvfs is invalid. Too many symbolic links were encountered in translat- ing the path parameter detected. The length of a component of the path parameter exceeds NAME_MAX characters, or the length of the path parameter exceeds PATH_MAX characters. The file referred to by the path parameter does not exist. A component of the path prefix of the path parameter is not a directory. If the fstatvfs() function fails, errno may be set to the following values: The file descriptor parameter is not a valid file descriptor. [Tru64 UNIX] The requested address is invalid. [Tru64 UNIX] The value returned by fstatvfs is invalid. RELATED INFORMATION
Functions: stat(2) Standards: standards(5) delim off statvfs(2)
All times are GMT -4. The time now is 03:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy