problems compiling NTFS on GRUB2
Quoted 1 line
Ok. But I assume you have to add something in order to link it to the library?
ah, yes indeed...
+ grub_setup_LDFLAGS = libntfs.a
+ grub_emu_LDFLAGS = libntfs.a
ntfs.mod: pre-ntfs.o mod-ntfs.o
-rm -f $@
- $(LD) -r -o $@ $^
+ $(LD) -r -o $@ $^ libntfs.a
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
Would you have suggestions on compile flags needed to compile libntfs for grub? (now they are -g -O2 -MT -MD -KP -MF )
Quoted 1 line
I don't think it is easy and clean to use libntfs.
I figure that libntfs was intended to be " a library to avoid code duplication and provide access to NTFS to other GPLed programs " therefore
I assume that using this effort would result in the better solution.
Quoted 2 lines
But the best way to implement NTFS is by writing it yourself. It is on my todo already, or do you want to do this?
I have no intention whatsoever to implement an ntfs driver... providing the glue between grub and libntfs is/should be a much smaller effort... Unless you're telling me trying to do this is a lost effort?
Quoted 1 line
Another thing to consider is its size.
ntfs.mod is 74KB . I don't thinks thats insurmountable...
-- lode
_________________________________________________________________
Don't just search. Find. http://search.msn.be
Quoted 2 lines · lode leroy
Would you have suggestions on compile flags needed to compile libntfs for grub? (now they are -g -O2 -MT -MD -KP -MF )
It looks fine to me.
Quoted 6 lines
Quoted 1 line
I don't think it is easy and clean to use libntfs.
I figure that libntfs was intended to be " a library to avoid code duplication
and provide access to NTFS to other GPLed programs " therefore I assume that using this effort would result in the better solution.
But would this be the right solution for GRUB?
Quoted 6 lines
Quoted 2 lines
But the best way to implement NTFS is by writing it yourself. It is on my todo already, or do you want to do this?
I have no intention whatsoever to implement an ntfs driver... providing the glue between grub and libntfs is/should be a much smaller effort... Unless you're telling me trying to do this is a lost effort?
Personally I don't like it much to link against an external library to get filesystem support. I would only consider doing such thing when the filesystem structure changes very often, like reiser4.
One problem is that external symbols are required by the library, many of which we do not have. Another problem is that the binary gets a lot bigger.
Okuji has to decide about this, this is not up to me.
Quoted 2 lines
Quoted 1 line
Another thing to consider is its size.
ntfs.mod is 74KB . I don't thinks thats insurmountable...
Most other filesystem modules are between 3 and 7KB.
--
Marco
Quoted 3 lines · Marco Gerards
Personally I don't like it much to link against an external library to get filesystem support. I would only consider doing such thing when the filesystem structure changes very often, like reiser4.
I don't like, either. External dependencies should be avoided, whenever possible. Glue code is really painful to maintain.
Quoted 3 lines
Quoted 1 line
ntfs.mod is 74KB . I don't thinks thats insurmountable...
Most other filesystem modules are between 3 and 7KB.
Yeah, 74KB is too big. It does not fit in the rescue mode. Why does it become so big?
Okuji