LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2005, 10:45 PM   #1
okter
LQ Newbie
 
Registered: May 2005
Posts: 4

Rep: Reputation: 0
Inodes and File System Management


Hi
How can I manage the Inodes?
I mean.. What librarie may I use.. Because Im trying to use /usr/include/linux/fs.h but.. its not recognized in the .c file where i do the "#include <linux/fs.h>"
How can I get an Inode structure? or How can I make that librarie known?...
By compilation line?
Some kind of weird #import thing?
Plz.. I need u help guys.. I must get the Desfragmenter for next Tuesday.. but until today I got nothing.
Thx for u help
see ya around

okter

Last edited by okter; 05-13-2005 at 12:23 AM.
 
Old 05-13-2005, 06:01 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"How can I manage the Inodes?"

Include stat.h and unistd.h. Then use the stat, fstat, and lstat functions to read inodes and inode information. You use mknod to create an inode. you can change fields within an inode with a variety of functions such as chmod and fchmod.

-----------------------
Steve Stites
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing ext3 partitions (/usr) [file system management] xxx_anuj_xxx Red Hat 5 11-29-2005 03:35 AM
Document Management System saavik Linux - Software 1 10-06-2005 06:16 PM
What content management or file management software is best for the job? Niceman2005 Linux - Software 2 05-10-2005 10:02 PM
hosting management system newuser455 Programming 0 04-02-2005 01:24 AM
File Management System on MandrakeLinux 10.1 -newbie- moshpit Mandriva 5 01-11-2005 07:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration