support for ext4 filesystem

This is a discussion on support for ext4 filesystem within the Linux Programming forums, part of the Platform Specific Boards category; I need to write a backup/restore utility for Linux. Even the ext4 file-system will be supported. While I download Fedora ...

  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, 02:49 PM
  3. Dev-cpp - compiler options
    By tretton in forum C Programming
    Replies: 7
    Last Post: 01-06-2006, 05: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-10-2001, 11:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21