Re: [osol-discuss] Regarding CDDL - using ufs code

2007-08-03 Thread amol
Thanks Darren for the suggestion. I'll anyways have to get in touch with my 
superiors for this case, decide on the options, and then go ahead.

Amol
 
 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Regarding CDDL - using ufs code

2007-08-03 Thread amol
Thank you Frank for the pieces of information. I found the solution.
 
 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Regarding CDDL - using ufs code

2007-08-03 Thread Frank Hofmann
On Fri, 3 Aug 2007, amol wrote:

 Hi,

 I want to use the struct direct datastructure from the file ufs_fsdir.h - 
 just that
 data structure in a proprietary code. I read the CDDL  CDDL FAQ and i know I 
 am allowed to do that, but I am not sure how much source code I need to 
 release under CDDL.

 Am I allowed to do the following?:
 - take the data structure
 - save it in a .h file, which will have the required license text present.
 - make just this .h file open source and leave the .c files that use the data 
 structure closed-source.

 Thanks,
 Amol

If you're so horridly worried about licensing nits, I suggest to sidestep 
_that_ problem.


Compare struct direct from:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/ufs_fsdir.h
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/ufs/ufs/dir.h?rev=1.12

The first one, CDDL/OpenSolaris, is:

struct  direct {
uint32_td_ino;  /* inode number of entry */
ushort_td_reclen;   /* length of this record */
ushort_td_namlen;   /* length of string in d_name */
chard_name[MAXNAMLEN + 1];  /* name must be no longer than this */
};

The second one, BSD/FreeBSD, is:

struct  direct {
u_int32_t d_ino;/* inode number of entry */
u_int16_t d_reclen; /* length of this record */
u_int8_t  d_type;   /* file type, see below */
u_int8_t  d_namlen; /* length of string in d_name */
char  d_name[MAXNAMLEN + 1];/* name with length = MAXNAMLEN */
};


Layout compatible, but the second one is BSD licensed.


Finally:
For the real license zealots, pick:

http://lxr.linux.no/source/include/linux/ufs_fs.h#L326



In short, you have all options.

FrankH.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Regarding CDDL - using ufs code

2007-08-03 Thread Darren J Moffat
amol wrote:
 Hi,
 
 I want to use the struct direct datastructure from the file ufs_fsdir.h - 
 just that
 data structure in a proprietary code. I read the CDDL  CDDL FAQ and i know I 
 am allowed to do that, but I am not sure how much source code I need to 
 release under CDDL.
 
 Am I allowed to do the following?:
 - take the data structure
 - save it in a .h file, which will have the required license text present.
 - make just this .h file open source and leave the .c files that use the data 
 structure closed-source.

This list is not for legal advice.  You are creating a derivative work 
and should seek qualified formal legal advice.

What you have said sounds correct to me based on my understanding of the 
CDDL.  However I am not a qualified legal professional and this is not 
legal advice.

-- 
Darren J Moffat
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org