Sponsored Content
Full Discussion: block size
Special Forums Hardware Filesystems, Disks and Memory block size Post 21565 by linuxpenguin on Sunday 19th of May 2002 06:04:26 AM
Old 05-19-2002
Error Re: block size

df -v gives the blocks status of the file system. But what i want to know is, how many bytes make one block in a file system. I hope I have clarified my question. Someone, please respond.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

os block size

AIX 4.3.3 How can I find the os block size? How can I change the OS Block Size? When and where does the os block size get set? I am running oracle 8.1.7 and am under the impression I need to set my os block size = oracle block size which is 8k. Any insight on this would be... (1 Reply)
Discussion started by: kburrows
1 Replies

2. Solaris

block size

how do you determine block size for a file system? In solaris 5.8 (3 Replies)
Discussion started by: csaunders
3 Replies

3. UNIX for Dummies Questions & Answers

How to know the OS Block size

Hello Unix guru's I want to check my OS Block size for the Solaris 8 Following is one of the line from df -g command. Can anybody help to interpret the same. /u03 (/dev/vx/dsk/oradg/vol03): 8192 block size 8192 frag size 205463552 total blocks 50433792... (1 Reply)
Discussion started by: Dilippatel
1 Replies

4. Shell Programming and Scripting

block size and du output

i wrote this code to figure if two identical directories on different devices one on a partition and one on a loop had the same total size for -size +0 file only in recrusive tree form.: awk '$1 ~ /^-/{total=i;i<=NR;i+=$5;print $0}END{print total}' file1.... . the output of du -hb was slightly... (2 Replies)
Discussion started by: moxxx68
2 Replies

5. UNIX for Dummies Questions & Answers

Convert block size to mb

If I execute this command: $ ls -lt | awk '{print $5}' | sort -nr |head -1 it returns the following value 57441881 If I execute this command: $ ls -s | sort -nr | head -1 | cut -d" " -f1 it returns the same file but now in block size 112208 Is there... (1 Reply)
Discussion started by: mh53j_fe
1 Replies

6. UNIX for Dummies Questions & Answers

block size

Hi All, drwxr-xr-x 2 root root 4096 May 31 14:47 test Please let me know here 4096 indicating what? Thanks & Regards, Bache (1 Reply)
Discussion started by: bache_gowda
1 Replies

7. AIX

Block Size

Hi, I try to change the block size from 512 to 0, but it send this message: 0514-068 Cause not know Can someone help me whith this? (3 Replies)
Discussion started by: Ruben78
3 Replies

8. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

9. Red Hat

O/s block size

Hi Guys, I am running Linux 2.6.18-164.el x86_64 how do i check the block size? Thanks in advance... (1 Reply)
Discussion started by: Phuti
1 Replies

10. HP-UX

About Block Size and Fragment Size

Accordingly a lot of manuals - if you have block size 8KB and trying to write a 1KB file to the block, as result you waste 7KB of the block space. But recently I noticed about Fragments of File Block. In same case if you have File Block 8KB and Fragment size 1KB - you can save your block space,... (6 Replies)
Discussion started by: jess_t03
6 Replies
statfs(2)							System Calls Manual							 statfs(2)

NAME
statfs, fstatfs - get file system statistics SYNOPSIS
DESCRIPTION
returns status information for a mounted file system. returns similar information for an open file. The parameters for the and functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a structure, which is where the file system status information is stored. fildes is a file descriptor for an open file, which is created with the successful completion of an or system call (see open(2), creat(2), dup(2), fcntl(2), or pipe(2)). The structure contains the following members: int32_t f_bavail; /* free blocks available to non-superusers or users without the LIMIT privilege */ int32_t f_bfree; /* free blocks */ int32_t f_blocks; /* total blocks in file system */ int32_t f_bsize; /* fundamental file system block size in bytes */ int32_t f_ffree; /* free file nodes in file system */ int32_t f_files; /* total file nodes in file system */ int32_t f_type; /* type of info, zero for now */ fsid_t f_fsid /* file system ID. f_fsid[1] is the file system type; see sysfs(2) */ The fields and are expressed in terms of blocks of size A file node is a structure in the file system hierarchy that describes a file. Fields that are undefined for a particular file system are set to -1. Security Restrictions The field is the number of free blocks available to non-superusers or users without the privilege. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
and return 0 upon successful completion; otherwise, they return -1 and set to indicate the error. ERRORS
If fails, is set to one of the following values: Search permission is denied for a component of the path prefix. buf or path point to an invalid address. An I/O error occurred while reading from or writing to the file system. Too many symbolic links are encountered during path-name translation. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. The named file does not exist (for example, path is null or a component of path does not exist). A component of the path prefix is not a directory. Result would overflow one or more fields of the struct. If fails, is set to one of the following values: fildes is not a valid open file descriptor. buf points to an invalid address. An I/O error occurs while reading from or writing to the file system. WARNINGS
is deprecated and should be used only by legacy 32-bit applications. or are the recommended replacements. AUTHOR
and were developed by Sun Microsystems, Inc. SEE ALSO
df(1M), stat(2), statvfs(2), ustat(2), privileges(5). statfs(2)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy