Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-30-2009, 04:15 AM   #1
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

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

Rep: Reputation: 100Reputation: 100
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
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:34 PM.

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