Thread: support for ext4 filesystem

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    22

    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

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by rak1986 View Post
    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
    Your code doesn't actually include any kernel headers, right? The compatibility issue will be about the GNU C library itself, not the kernel. Eg, if you compile using libc-2.7 and the new system uses libc-2.9 there could be problems.

    Back-up/restore is a user-land activity. Why does it matter what the filesystem type is?

    Also, why do you want to compile the binaries and try to port those? Why don't you just compile from source on the new system?
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Make it completely library independent by statically linking all of your binaries. Eg, use BusyBox (a subdivision of BuildRoot) as your main dude.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. Dev-cpp - compiler options
    By tretton in forum C Programming
    Replies: 7
    Last Post: 01-06-2006, 06:20 PM
  4. The mistake of calling Toshiba's tech support
    By Scourfish in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-11-2001, 12:27 AM