Page 2 of 3

Re: On all things GUI!

PostPosted: Wed Jul 02, 2014 8:52 am
by ilovezfs
jeremychu wrote:Cool, see you on #openzfs-osx.
Hadn't considered Swift although now you mention it I don't see why not.

Only issue I see so far is that it's restricted to 10.9+. Not sure we should care.

Re: On all things GUI!

PostPosted: Sun Jul 06, 2014 5:28 pm
by zigmoo
ilovezfs wrote:
jeremychu wrote:I'm comfortable with Cocoa development if anyone is looking for volunteers.

Yes, of course. Come talk in #openzfs-osx some time. Any thoughts on doing it in Swift?


Building the 3 parts lundman mentioned should be do-able with just one line of swift code for each GUI component, right?

Re: On all things GUI!

PostPosted: Wed Jul 09, 2014 9:15 pm
by Surfer
ilovezfs wrote:
jeremychu wrote:I'm comfortable with Cocoa development if anyone is looking for volunteers.
Would I be correct in thinking a ZFS GUI would just be calling the command line tools? If so, then maybe a browser based tool might be better (although I'm not a fan of php these days). Would it be crazy to suggest node.js?

That is one approach, but mostly it will probably be better to link directly to libzfs and to lean on zed.


Where would I find the relevant APIs a GUI should use? Are there sample (also non GUI) clients?

Re: On all things GUI!

PostPosted: Thu Jul 10, 2014 12:26 am
by lundman
http://open-zfs.org might be a good stop, but really, looking at the sources for cmd/zpool cmd/zfs is also a good idea. The main commands are fairly small stubs, calling into libzfs.

Re: On all things GUI!

PostPosted: Mon Sep 15, 2014 7:32 pm
by tangles
RocketRaid use http://localhost:someport to interface with their HBAs.

If you want to have something that's unified, then this might be a base to explore for all platforms?

On all things GUI!

PostPosted: Mon Sep 15, 2014 8:23 pm
by ilovezfs
I think in our case, there is zero, or at best very close to zero, advantage in attempting to create a cross platform GUI, so those who only like working on cross-platform code should probably avoid GUI development and work on one of the many other facets of OpenZFS on OS X.

Re: On all things GUI!

PostPosted: Fri Feb 13, 2015 10:32 am
by armdn
Im also started to create OpenZFS fronted GUI, but things get slowly, Xcode 6 is a little pain for me :D :
Снимок экрана 2015-02-13 в 21.33.56.png
First step
Снимок экрана 2015-02-13 в 21.33.56.png (250.38 KiB) Viewed 36247 times


Compatability is planned 10.7+ (but if everything goes normally, there is also may be a PowerPC version for 10.5 with MacZFS).

Re: On all things GUI!

PostPosted: Fri Feb 13, 2015 10:35 am
by ilovezfs
Awesome! You should post the code on GitHub!

Re: On all things GUI!

PostPosted: Sat Feb 14, 2015 3:14 am
by lundman
Lookin' sweet

Re: On all things GUI!

PostPosted: Fri Feb 20, 2015 7:38 pm
by AlexWasserman
lundman wrote:http://open-zfs.org might be a good stop, but really, looking at the sources for cmd/zpool cmd/zfs is also a good idea. The main commands are fairly small stubs, calling into libzfs.


Does anyone have a good tutorial on ObjC and how to do this?

Currently I'm using runCommand calls out to shell to run zpool for status, and srubbing: https://github.com/alexwasserman/ZFSStatus

Would love to know how to link to an existing lib, however, ObjC isn't my language.