Sponsored Content
Top Forums Shell Programming and Scripting File representing the hard disk storage device Post 302750205 by tamer11007 on Monday 31st of December 2012 06:15:33 AM
Old 12-31-2012
Linux File representing the hard disk storage device

I want example of a file representing the hard disk storage device In UNIX ?
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

get Hard disk load in .txt file

Hello guys, i m coming from germany and i am new to all this unix stuff. i need an pearl script which saves the hard disk load (free space in vg and lv) from a few servers. The Servers are all in the same network and got their own IP adresses. But the Problem is, that they got different... (1 Reply)
Discussion started by: christophST
1 Replies

2. Shell Programming and Scripting

crontab; copy most recent *.mpg file from local machine to smb storage device

Hello, I've been searching your forum for an answer to the following question and whilst I've seen several which may help I'm afraid my inexperience with UNIX systems has got the better of me and I'm incapable of piecing your considerable expertise together. Problem: I have a linux box which... (5 Replies)
Discussion started by: julezsht
5 Replies

3. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

4. Shell Programming and Scripting

Age of file in storage / disk

Hello all, Below is scripts to find the file following by: 30 days <- How many total file space within 30 days and not quantity 90 days 120 days 1 year From here also I can get data space to put on PIE Chart. Following this scripts can I do some enhance from this scripts like do... (1 Reply)
Discussion started by: sheikh76
1 Replies

5. UNIX for Dummies Questions & Answers

Hard disk and file management?

Dear experts, I have to write a small project named "Hard disk management and file management in Unix/Linux". I have absolutely NO idea about what Unix/Linux is, except that it is operational system. My question to you is: Whats is the difference between Unix and Linux and since the title of my... (3 Replies)
Discussion started by: makara
3 Replies

6. AIX

Command to check the busy % for a hard disk device like hdisk5

Please help with command to check the busy % for a hard disk device like hdisk5 Best regards, Vishal (7 Replies)
Discussion started by: Vishal_dba
7 Replies
FSYNC(2)						     Linux Programmer's Manual							  FSYNC(2)

NAME
fsync, fdatasync - synchronize a file's complete in-core state with that on disk SYNOPSIS
#include <unistd.h> int fsync(int fd); int fdatasync(int fd); DESCRIPTION
fsync copies all in-core parts of a file to disk, and waits until the device reports that all parts are on stable storage. It also updates metadata stat information. It does not necessarily ensure that the entry in the directory containing the file has also reached disk. For that an explicit fsync on the file descriptor of the directory is also needed. fdatasync does the same as fsync but only flushes user data, not the meta data like the mtime or atime. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
EBADF fd is not a valid file descriptor open for writing. EROFS, EINVAL fd is bound to a special file which does not support synchronization. EIO An error occurred during synchronization. NOTES
In case the hard disk has write cache enabled, the data may not really be on permanent storage when fsync/fdatasync return. When an ext2 file system is mounted with the sync option, directory entries are also implicitly synced by fsync. On kernels before 2.4, fsync on big files can be inefficient. An alternative might be to use the O_SYNC flag to open(2). CONFORMING TO
POSIX.1b (formerly POSIX.4) SEE ALSO
bdflush(2), open(2), sync(2), mount(8), update(8), sync(8) Linux 1.3.85 2001-04-18 FSYNC(2)
All times are GMT -4. The time now is 12:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy