Re: [ogfs-dev]Suggestion: Reorganize the source tree
On Thu, Jul 03, 2003 at 09:20:49AM +0800, Stanley Wang wrote:
> On Wed, 2003-07-02 at 21:15, Brian Jackson wrote:
> > > 1. Since the only OS that OpenGFS supports now is Linux (no further
> > > plan for porting work against other OS), we could combine the
> > > common codes and architecture dependent codes into one directory
> > > ??? "ogfs". And place it into the vanilla linux kernel source
> > > tree.
> >
> > we talked about this before, and (I think) decided it would be better to
> > combine all the code like you say, and use #if's like so:
> > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
> It may be very difficult due to the big changes between Linux 2.4 and
> 2.5(or later). And many #if's would mess the codes :)
The right way (TM) to deal with ifdefs is to isolate them in *one*
separate file for each difference between 2.4 and 2.5/6. Keep the
ifdefs as local as possible. (Of course there can be one big file
with all the ifdefs).
Bye
Dominik ^_^ ^_^
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Opengfs-devel mailing list
Opengfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opengfs-devel
[Kernel]
[Security]
[Bugtraq]
[Photo]
[Yosemite]
[MIPS Linux]
[ARM Linux]
[Linux Clusters]
[Linux RAID]
[Yosemite Hiking]
[Linux Resources]