* nfs-utils and libnfsidmap
@ 2011-11-23 19:54 Tigran Mkrtchyan
2011-11-23 20:13 ` J. Bruce Fields
0 siblings, 1 reply; 6+ messages in thread
From: Tigran Mkrtchyan @ 2011-11-23 19:54 UTC (permalink / raw)
To: linux-nfs
Hi All,
today was tracing a bug in nfs-utils/libnfsidmap and after a log
debugging located it and
finally realized that it's already fixed by Steve Dickson (
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
). Nevertheless during
this procedure it turned out that there is quite some code duplicated
between nfs-utils and
libnfsidmap.
Questions:
a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
b) is there readon for code duplication? Licensing or so
c) what ww need to do to get rid of duplication
I expect the answer of 'c' will contain something like time and man power.
I am volunteering to to pend some time on it.
Regards,
Tigran.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nfs-utils and libnfsidmap
2011-11-23 19:54 nfs-utils and libnfsidmap Tigran Mkrtchyan
@ 2011-11-23 20:13 ` J. Bruce Fields
2011-11-28 14:48 ` Steve Dickson
0 siblings, 1 reply; 6+ messages in thread
From: J. Bruce Fields @ 2011-11-23 20:13 UTC (permalink / raw)
To: Tigran Mkrtchyan; +Cc: linux-nfs
On Wed, Nov 23, 2011 at 08:54:06PM +0100, Tigran Mkrtchyan wrote:
> Hi All,
>
> today was tracing a bug in nfs-utils/libnfsidmap and after a log
> debugging located it and
> finally realized that it's already fixed by Steve Dickson (
> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
> ). Nevertheless during
> this procedure it turned out that there is quite some code duplicated
> between nfs-utils and
> libnfsidmap.
>
> Questions:
> a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
> b) is there readon for code duplication? Licensing or so
> c) what ww need to do to get rid of duplication
>
> I expect the answer of 'c' will contain something like time and man power.
> I am volunteering to to pend some time on it.
I doubt there's any real reason for duplication.
Probably libnfsidmap should be part of nfs-utils, actually.
And maybe we don't need it at all--the original reason to split out
libnfsidmap was to share the code with libacl, so the posix getfacl
command could do v4->posix acl mapping, but those patches never made it
upstream.
--b.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nfs-utils and libnfsidmap
2011-11-23 20:13 ` J. Bruce Fields
@ 2011-11-28 14:48 ` Steve Dickson
2011-11-28 17:06 ` J. Bruce Fields
2011-12-02 14:41 ` Tigran Mkrtchyan
0 siblings, 2 replies; 6+ messages in thread
From: Steve Dickson @ 2011-11-28 14:48 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: Tigran Mkrtchyan, linux-nfs
On 11/23/2011 03:13 PM, J. Bruce Fields wrote:
> On Wed, Nov 23, 2011 at 08:54:06PM +0100, Tigran Mkrtchyan wrote:
>> Hi All,
>>
>> today was tracing a bug in nfs-utils/libnfsidmap and after a log
>> debugging located it and
>> finally realized that it's already fixed by Steve Dickson (
>> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
>> ). Nevertheless during
>> this procedure it turned out that there is quite some code duplicated
>> between nfs-utils and
>> libnfsidmap.
>>
>> Questions:
>> a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
>> b) is there readon for code duplication? Licensing or so
>> c) what ww need to do to get rid of duplication
>>
>> I expect the answer of 'c' will contain something like time and man power.
>> I am volunteering to to pend some time on it.
>
> I doubt there's any real reason for duplication.
Just curious as to what code we are talking about...
>
> Probably libnfsidmap should be part of nfs-utils, actually.
I guess we could roll the libnfsidmap git tree into the nfs-utils
tree... if that make senses... It probably would simply things..
>
> And maybe we don't need it at all--the original reason to split out
> libnfsidmap was to share the code with libacl, so the posix getfacl
> command could do v4->posix acl mapping, but those patches never made it
> upstream.
So you don't think this will every happen?
steved.
>
> --b.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nfs-utils and libnfsidmap
2011-11-28 14:48 ` Steve Dickson
@ 2011-11-28 17:06 ` J. Bruce Fields
2011-12-02 14:41 ` Tigran Mkrtchyan
1 sibling, 0 replies; 6+ messages in thread
From: J. Bruce Fields @ 2011-11-28 17:06 UTC (permalink / raw)
To: Steve Dickson; +Cc: Tigran Mkrtchyan, linux-nfs
On Mon, Nov 28, 2011 at 09:48:13AM -0500, Steve Dickson wrote:
> On 11/23/2011 03:13 PM, J. Bruce Fields wrote:
> > On Wed, Nov 23, 2011 at 08:54:06PM +0100, Tigran Mkrtchyan wrote:
> >> Hi All,
> >>
> >> today was tracing a bug in nfs-utils/libnfsidmap and after a log
> >> debugging located it and
> >> finally realized that it's already fixed by Steve Dickson (
> >> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
> >> ). Nevertheless during
> >> this procedure it turned out that there is quite some code duplicated
> >> between nfs-utils and
> >> libnfsidmap.
> >>
> >> Questions:
> >> a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
> >> b) is there readon for code duplication? Licensing or so
> >> c) what ww need to do to get rid of duplication
> >>
> >> I expect the answer of 'c' will contain something like time and man power.
> >> I am volunteering to to pend some time on it.
> >
> > I doubt there's any real reason for duplication.
> Just curious as to what code we are talking about...
Yes, maybe Tigran can demonstrate with a patch.
> > Probably libnfsidmap should be part of nfs-utils, actually.
> I guess we could roll the libnfsidmap git tree into the nfs-utils
> tree... if that make senses... It probably would simply things..
OK.
> > And maybe we don't need it at all--the original reason to split out
> > libnfsidmap was to share the code with libacl, so the posix getfacl
> > command could do v4->posix acl mapping, but those patches never made it
> > upstream.
> So you don't think this will every happen?
I don't know. If it's easy to keep it as a separate library, then maybe
we should just in case. But for now it seems unlikely.
--b.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nfs-utils and libnfsidmap
2011-11-28 14:48 ` Steve Dickson
2011-11-28 17:06 ` J. Bruce Fields
@ 2011-12-02 14:41 ` Tigran Mkrtchyan
2011-12-02 15:15 ` J. Bruce Fields
1 sibling, 1 reply; 6+ messages in thread
From: Tigran Mkrtchyan @ 2011-12-02 14:41 UTC (permalink / raw)
To: Steve Dickson; +Cc: J. Bruce Fields, linux-nfs
On Mon, Nov 28, 2011 at 3:48 PM, Steve Dickson <SteveD@redhat.com> wrote:
> On 11/23/2011 03:13 PM, J. Bruce Fields wrote:
>> On Wed, Nov 23, 2011 at 08:54:06PM +0100, Tigran Mkrtchyan wrote:
>>> Hi All,
>>>
>>> today was tracing a bug in nfs-utils/libnfsidmap and after a log
>>> debugging located it and
>>> finally realized that it's already fixed by Steve Dickson (
>>> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
>>> ). Nevertheless during
>>> this procedure it turned out that there is quite some code duplicated
>>> between nfs-utils and
>>> libnfsidmap.
>>>
>>> Questions:
>>> a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
>>> b) is there readon for code duplication? Licensing or so
>>> c) what ww need to do to get rid of duplication
>>>
>>> I expect the answer of 'c' will contain something like time and man power.
>>> I am volunteering to to pend some time on it.
>>
>> I doubt there's any real reason for duplication.
> Just curious as to what code we are talking about...
for example
nfs-utils/support/nfs/conffile.c => libnfsidmap/cfg.c
nfs-utils/utils/idmapd/queue.h => libnfsidmap/queue.h
probably some other files as well.
Tigran.
>
>>
>> Probably libnfsidmap should be part of nfs-utils, actually.
> I guess we could roll the libnfsidmap git tree into the nfs-utils
> tree... if that make senses... It probably would simply things..
>
>>
>> And maybe we don't need it at all--the original reason to split out
>> libnfsidmap was to share the code with libacl, so the posix getfacl
>> command could do v4->posix acl mapping, but those patches never made it
>> upstream.
> So you don't think this will every happen?
>
> steved.
>
>>
>> --b.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nfs-utils and libnfsidmap
2011-12-02 14:41 ` Tigran Mkrtchyan
@ 2011-12-02 15:15 ` J. Bruce Fields
0 siblings, 0 replies; 6+ messages in thread
From: J. Bruce Fields @ 2011-12-02 15:15 UTC (permalink / raw)
To: Tigran Mkrtchyan; +Cc: Steve Dickson, linux-nfs
On Fri, Dec 02, 2011 at 03:41:21PM +0100, Tigran Mkrtchyan wrote:
> On Mon, Nov 28, 2011 at 3:48 PM, Steve Dickson <SteveD@redhat.com> wrote:
> > On 11/23/2011 03:13 PM, J. Bruce Fields wrote:
> >> On Wed, Nov 23, 2011 at 08:54:06PM +0100, Tigran Mkrtchyan wrote:
> >>> Hi All,
> >>>
> >>> today was tracing a bug in nfs-utils/libnfsidmap and after a log
> >>> debugging located it and
> >>> finally realized that it's already fixed by Steve Dickson (
> >>> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=d22ef3f525d71b565fcc688557273a6cabeeb71a
> >>> ). Nevertheless during
> >>> this procedure it turned out that there is quite some code duplicated
> >>> between nfs-utils and
> >>> libnfsidmap.
> >>>
> >>> Questions:
> >>> a) why nfs-utils duplicates some part of libnfsidmap and still depends o it
> >>> b) is there readon for code duplication? Licensing or so
> >>> c) what ww need to do to get rid of duplication
> >>>
> >>> I expect the answer of 'c' will contain something like time and man power.
> >>> I am volunteering to to pend some time on it.
> >>
> >> I doubt there's any real reason for duplication.
> > Just curious as to what code we are talking about...
>
> for example
> nfs-utils/support/nfs/conffile.c => libnfsidmap/cfg.c
> nfs-utils/utils/idmapd/queue.h => libnfsidmap/queue.h
>
> probably some other files as well.
OK. I'm sure reasonable patches would be welcomed.
--b.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-02 15:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 19:54 nfs-utils and libnfsidmap Tigran Mkrtchyan
2011-11-23 20:13 ` J. Bruce Fields
2011-11-28 14:48 ` Steve Dickson
2011-11-28 17:06 ` J. Bruce Fields
2011-12-02 14:41 ` Tigran Mkrtchyan
2011-12-02 15:15 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).