|
From: | Yury Umanets |
Subject: | Re: HFS / HFS+ implementation in GNU Parted |
Date: | Tue, 08 Apr 2003 04:00:50 +0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 |
K.G. wrote:
I don't know such libs too. That is why I said you should implement libhfs which may be used by anybody. Not only the parted.Oh, its realy cool! What about to implement it as libhfs and let parted link aginst it? It would be reasonable.Here is the first experimental HFS resize support for GNU Parted (and still HFS+ detection) : http://xilun666.free.fr/parted-1.6.5-hfs.patch This need code cleanup and lots of ASSERT to make it really usable, but it seems to work. Right now you should do 2 resize command to make it works properly. Don't forget to save your data if you are crazy (courageous ?) enough to try it. I continue working on it.--Yury Umanets We're flying high, we're watching the world passes by...I didn't know neither libhfs nor libhfs+ when i started this code,
so I will continue to both integrate it into and write HFS+ support for GNU Parted, because my code use different schemes than theses two libraries, and switching to the (maybe better for long run support) separated library and wrapper approach would take more time than I have.
Okay, probably one will have more time on day than you have.
Probably you have not comprehend me. I talking about not only resize support, but rather about implementing all functions parted need them.Anyway implementation in libhfs(+) could be quite fast for someone who has some previous knowledge of these libraries : all you have to do is to relocate every extents to send free space at the end of the volume and change block number in Master Directory Block / Volume Header.
--- Guillaume Knispel
--Yury Umanets We're flying high, we're watching the world passes by...
[Prev in Thread] | Current Thread | [Next in Thread] |