11-08-2007
What metadata are you worried about?
Are you on an XFS system?
What is the actual requirement here?
Quote:
Originally Posted by
the_learner
But no matter what calculation you do or whatever program you write, you cannot get the blocks occupied by data.
That cannot be true because a disk file system driver is a program which does calculations.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
I need to create 100kb,1000kb,10000kb etc files of no particular substance but I need them a exact size.
I think they are .dat's I need but im unsure of the command I issue to create them
Any help appreciated :)
Mr Pink (4 Replies)
Discussion started by: Mr Pink
4 Replies
2. Programming
Hi,
In Linux how to find out what will be the stack size allocated for a process?
Actually i have to fork n number of processess, and will call exec. I will be execing an executable which is already multithreaded and each thread size is defined. My doubt is how to know if the size of the... (2 Replies)
Discussion started by: rvan
2 Replies
3. Solaris
Hi,
I have setup 2 Sun Solaris server at my home. I put them in network..
Network is ok. How can I find that how much data is transfered between these 2 servers and on specific port ?
Thanks
NeeleshG (7 Replies)
Discussion started by: neel.gurjar
7 Replies
4. Solaris
Hi,
I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris
For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/.
Say if I want to see how much % the files &... (2 Replies)
Discussion started by: weblogicsupport
2 Replies
5. Linux
Hi,
I'm using SLES10, I want to know the user size of the data that is downloaded or uploaded the data who connects to the server. In other words, a user utilization of my server in terms of size.
Thanks,
Kris (1 Reply)
Discussion started by: krisdasword
1 Replies
6. Shell Programming and Scripting
I want to extend this script.
This must also be able to show me that a port is already assigned to a service but not running now
there must be three different messages
port 8949 is open but not listening
port 8959 is open
port 8999 hasn't been assigned to any service.
I know that... (1 Reply)
Discussion started by: charan314
1 Replies
7. UNIX for Dummies Questions & Answers
Guys,
Can some one help me?
I need to find the total percent of space occupied by core files on my unix system.
I know df -k will give me the percent space utilization for a directory but how do we replicate the space for a file? (3 Replies)
Discussion started by: yabhi_22
3 Replies
8. Cybersecurity
Hi There,
I wonder if any one can help me.
I want to transfer a file from one site to another over an encrypted link. I want to know if there will be any imcrease in the data that will travel on the link? For example, I want to transfer a 1 GB file from one site to another, using an encrypted... (4 Replies)
Discussion started by: ahmerin
4 Replies
9. Shell Programming and Scripting
I have long list of file wanna processed by a program:
data_1.txt
data_2.txt
data_3.txt
data_4.txt
data_5.txt
data_6.txt
data_7.txt
data_8.txt
.
.
data_1_2.txt
data_2_2.txt
data_3_2.txt
data_4_2.txt
data_5_2.txt
data_6_2.txt
. (12 Replies)
Discussion started by: perl_beginner
12 Replies
10. Programming
I want to create a form with data values in a dropdown list. The values in the dropdown list need to be generated on the fly from max, min and increment values contained in a mysql database.
Hopefully this makes sense, I really have no idea where to start :confused:
Thanks (6 Replies)
Discussion started by: barrydocks
6 Replies
xfs_bmap(8) System Manager's Manual xfs_bmap(8)
NAME
xfs_bmap - print block mapping for an XFS file
SYNOPSIS
xfs_bmap [ -adlpv ] [ -n num_extents ] file
DESCRIPTION
xfs_bmap prints the map of disk blocks used by files in an XFS filesystem. The map lists each extent used by the file, as well as regions
in the file that do not have any corresponding blocks (holes). Each line of the listings takes the following form:
extent: [startoffset..endoffset]: startblock..endblock
Holes are marked by replacing the startblock..endblock with hole. All the file offsets and disk blocks are in units of 512-byte blocks, no
matter what the filesystem's block size is.
OPTIONS
-a If this option is specified, information about the file's attribute fork is printed instead of the default data fork.
-d If portions of the file have been migrated offline by a DMAPI application, a DMAPI read event will be generated to bring those por-
tions back online before the disk block map is printed. However if the -d option is used, no DMAPI read event will be generated for
a DMAPI file and offline portions will be reported as holes.
-l If this option is used, then
<nblocks> blocks
will be appended to each line. nblocks is the length of the extent described on the line in units of 512-byte blocks.
This flag has no effect if the -v option is used.
-n num_extents
If this option is given, xfs_bmap obtains the extent list of the file in groups of num_extents extents. In the absence of -n,
xfs_bmap queries the system for the number of extents in the file and uses that value to compute the group size.
-p If this option is used, xfs_bmap obtains all unwritten (preallocated) extents that do not contain written data. With the -v option,
the flags column will show which extents are preallocated/unwritten.
-v Shows verbose information. When this flag is specified, additional AG specific information is appended to each line in the following
form:
agno (startagoffset..endagoffset) nblocks flags
A second -v option will print out the flags legend.
SEE ALSO
xfs_fsr(8), xfs(5).
xfs_bmap(8)