LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-30-2009, 04:15 AM   #1
info1686
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Rep: Reputation: 0
support for ext4 filesystem


I need to write a backup/restore utility for Linux. Even the ext4 file-system will be supported. While I download Fedora 11 using the ext4 file-system I had a question.

Will the existing API's on Linux support ext4 or the new kernel has a different set of API's to identify the ext4 file-system ? This is because I would be building the binaries on an older kernel version

Thanks
 
Old 06-30-2009, 07:50 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
As far as I know, you won't even need to "know" that ext4 is the underlying filing system...

I. e. if your binary runs in a kernel that has ext4 support, and that kernel is running in a system that has drives formatted as ext4, the kernel will read and write, as ext4, whatever your binary tells it to read and write. That's the point of the operating system - it does the nitty gritty of managing diskspace for you (among many, many other things - memory, interrupts, basic I/O, etc.).

So unless you want to do something very weird or very specialised, or you will be working with file sizes or directory structures in the terabyte size range, you can just write your app and forget about what exact underlying filing system it is going to have to work with - since the Linux kernel does that for you already...?
 
Old 06-30-2009, 11:49 PM   #3
info1686
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
As part of supporting ext4 filesystem, I need to identify it as an ext4 FS and then proceed with backup/restore.
Now that it supports very very large files, I too need to support backup/restore of those.

Hence, I wanted to know if the existing API's will identify it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Ubuntu 9.04 Receives EXT4 Support LXer Syndicated Linux News 0 01-11-2009 11:00 AM
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 02:58 PM
How can I add support for another filesystem? wilsonsamm Linux - General 3 05-27-2007 09:18 PM
LXer: Linux: ext4 Filesystem LXer Syndicated Linux News 0 06-30-2006 11:33 AM
Adding Filesystem Support jovix Linux - Newbie 2 08-27-2004 09:37 AM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration