C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-30-2009, 03:12 AM   #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
rak1986 is offline   Reply With Quote
Old 06-30-2009, 06:17 AM   #2
Eternally Earnest
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 4,608
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?
__________________

BEING HELPFUL SHOULD MEAN SHARING KNOWLEDGE, NOT WITHHOLDING IT. ==mk27
A truly creative person rids him or her self of all self-imposed limitations. ==recent fortune cookie
MK27 is offline   Reply With Quote
Old 06-30-2009, 07:31 AM   #3
Jaxom's & Imriel's Dad
 
Kennedy's Avatar
 
Join Date: Aug 2006
Location: Alabama
Posts: 853
Make it completely library independent by statically linking all of your binaries. Eg, use BusyBox (a subdivision of BuildRoot) as your main dude.
Kennedy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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