Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208652 - sys-fs/zfs-fuse: new "live" ebuild
Summary: sys-fs/zfs-fuse: new "live" ebuild
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 00:17 UTC by Joe Peterson (RETIRED)
Modified: 2008-09-25 16:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zfs-fuse-9999.ebuild (zfs-fuse-9999.ebuild,2.41 KB, text/plain)
2008-02-03 00:18 UTC, Joe Peterson (RETIRED)
Details
files/zfs-fuse-9999.rc (zfs-fuse-9999.rc,905 bytes, text/plain)
2008-02-03 00:19 UTC, Joe Peterson (RETIRED)
Details
files/zfs-fuse-9999-fix_zdb_path.patch (zfs-fuse-9999-fix_zdb_path.patch,510 bytes, text/plain)
2008-02-03 00:19 UTC, Joe Peterson (RETIRED)
Details
files/zfs-fuse-9999-fix_zfs-fuse_path.patch (zfs-fuse-9999-fix_zfs-fuse_path.patch,378 bytes, text/plain)
2008-02-03 00:19 UTC, Joe Peterson (RETIRED)
Details
files/zfs-fuse-9999-fix_ztest_path.patch (zfs-fuse-9999-fix_ztest_path.patch,458 bytes, text/plain)
2008-02-03 00:20 UTC, Joe Peterson (RETIRED)
Details
Edited patch for latest commits (zfs-fuse-9999-fix_zdb_path.patch,483 bytes, patch)
2008-06-25 01:40 UTC, Pascal Lim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:17:58 UTC
After emailing with the author of zfs-fuse, he strongly recommends using the latest development sources (more stable, and they support much more recent pool versions).

Attached is a live ebuild (and support files) to grab the sources from the "mercurial" source repo.  Note that the patches had to change a bit, and this needs to be watched in the case of the live build...  Also, I added code to unmount ZFS fs's before stopping.

Two issues remain if USE="debug" is set:

* The script returns failure even if the daemon starts
* The execuatable stays running on stop (could be due to its being
  a shell script)

(I tried different combinations of flags in the init.d script as well as 
leaving the --no-daemon switch on in the patch, but I never got it all to work right with debug.)

Also, when debug is not set:

* Using --make-pidfile seems to create a pid one off from real pid,
  so it doesn't work - also, the start returns a fail.  Not sure what
  is going on.  Removing this switch still works.
Comment 1 Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:18:44 UTC
Created attachment 142561 [details]
zfs-fuse-9999.ebuild
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:19:12 UTC
Created attachment 142563 [details]
files/zfs-fuse-9999.rc
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:19:32 UTC
Created attachment 142564 [details]
files/zfs-fuse-9999-fix_zdb_path.patch
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:19:54 UTC
Created attachment 142566 [details]
files/zfs-fuse-9999-fix_zfs-fuse_path.patch
Comment 5 Joe Peterson (RETIRED) gentoo-dev 2008-02-03 00:20:15 UTC
Created attachment 142567 [details]
files/zfs-fuse-9999-fix_ztest_path.patch
Comment 6 W. Elschner 2008-03-12 16:22:43 UTC
On my system emerge fails because the patches don't work with the actual trunk (maybe changes in upstream code?).
Comment 7 Joe Peterson (RETIRED) gentoo-dev 2008-03-12 16:28:35 UTC
It looks like upstream made some changes 5 days ago, so this may have invalidated the patches.  It should be easy to fix them, and I will do this next time I try to upgrade ZFS-FUSE; if you want to have a go of it, post the patches if you are successful.
Comment 8 Pascal Lim 2008-06-25 01:40:11 UTC
Created attachment 158343 [details, diff]
Edited patch for latest commits
Comment 9 Pascal Lim 2008-06-25 01:42:21 UTC
Anyone would know how to get the init script running? I keep getting 

 * Caching service dependencies ...                                       [ ok ]
 * Starting ZFS-FUSE ...
 * start-stop-daemon: did not create a valid pid in `/var/run/zfs-fuse.pi [ !! ]
Comment 10 Christian Parpart (RETIRED) gentoo-dev 2008-09-16 15:37:27 UTC
Hey Joe,

do you really feel fine with "live" ebuilds? especially where you mentioned that "i had to change a patch"-thing, I'd honestly recommend to bump snapshots of the head development tree (those proofed to compile and work) rather then leaving this experience up to the end user.

Any impressions?

To Pascal: did you check file permissions?
Comment 11 Joe Peterson (RETIRED) gentoo-dev 2008-09-18 05:10:04 UTC
(In reply to comment #10)
> Hey Joe,
> 
> do you really feel fine with "live" ebuilds? especially where you mentioned
> that "i had to change a patch"-thing, I'd honestly recommend to bump snapshots
> of the head development tree (those proofed to compile and work) rather then
> leaving this experience up to the end user.

Christian,

I agree.  There is indeed an issue with live ebuilds that needs patches [that can break when the code changes].  I have not been following zfs-fuse development lately, so I do not know if the author still recommends the dev sources rather than snapshots.  If not, then it is certainly better, at this point, to stick with the snapshots.

For btrfs (another fs - I maintain those ebuilds), I have live ebuilds as well as release snapshots.  This gives users the option of the live sources (but we do not have similar patch issues there).  Also, I have hard-masked the live ebuilds, so regular users will not get them.
Comment 12 Christian Parpart (RETIRED) gentoo-dev 2008-09-25 16:34:41 UTC
have a look at the portage CVS.
i've tweaked the files a little, and package.mask'ed it. however, once found some reasonable good state, we could bump a snapshot for ~testing and stable, too.

we've been using zfs-fuse for quite some time in some office-related production systems, this were quite stable for us, however, when should we go into `stable` masking anyway? (for such ebuilds)

p.s.: please test the ebuild, if you can
Comment 13 Christian Parpart (RETIRED) gentoo-dev 2008-09-25 16:36:14 UTC
(In reply to comment #9)
> Anyone would know how to get the init script running? I keep getting 
> 
>  * Caching service dependencies ...                                       [ ok
> ]
>  * Starting ZFS-FUSE ...
>  * start-stop-daemon: did not create a valid pid in `/var/run/zfs-fuse.pi [ !!
> ]
> 

shall be fixed, though. please test the ebuild in the latest tree (unmask =sys-fs/zfs-fuse-9999 before)