Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 234253 Details for
Bug 291540
sys-fs/zfs-fuse: new devolopers / new beta version
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Goes into files/zfs-fuse.rc
zfs-fuse.rc.upload (text/plain), 1.33 KB, created by
devsk
on 2010-06-05 22:55:27 UTC
(
hide
)
Description:
Goes into files/zfs-fuse.rc
Filename:
MIME Type:
Creator:
devsk
Created:
2010-06-05 22:55:27 UTC
Size:
1.33 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-fuse/files/0.5.0/zfs-fuse.rc,v 1.1 2008/09/25 17:03:20 trapni Exp $ > >depend() { > need root > before net >} > >PIDFILE="/var/run/zfs/zfs-fuse.pid" >EXEFILE="/usr/sbin/zfs-fuse" > >checksystem() { > # check if kstat is mounted > mntp=`grep /zfs-kstat /proc/mounts | awk '{if ($2 == v1) {print $2}}' v1=/zfs-kstat | tail -1` > if [ "$mntp" != "/zfs-kstat" ] > then > # if kstat is not mounted, and /zfs-kstat exists, its from an abnormal termination > # delete it, otherwise the virtual folder mount fails and "Transport endpoint is not connected" > [ -d /zfs-kstat ] && rmdir /zfs-kstat > fi > return 0 # TODO >} > >start() { > ebegin "Starting ZFS-FUSE" > checksystem || return 1 > > start-stop-daemon --start --exec ${EXEFILE} \ > --user root --group disk -- --pidfile ${PIDFILE} > rv=$? > eend $rv > > # sleep a little > sleep 2 > if [[ $rv -eq 0 ]]; then > ebegin "Mounting ZFS filesystems" > zfs mount -a > eend $? > fi >} > >stop() { > ebegin "Unmounting ZFS filesystems" > zfs umount -f -a > eend $? > > # Unmounting may be slow > sleep 2 > ebegin "Stopping ZFS-FUSE" > checksystem || return 2 > start-stop-daemon --stop --pidfile ${PIDFILE} \ > --exec ${EXEFILE} --retry TERM/1/TERM/2/TERM/4/TERM/8/KILL > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 291540
:
212198
|
212200
|
212431
|
230213
|
232949
|
232963
|
233105
|
233107
|
233173
|
233525
|
233553
|
234029
|
234245
|
234247
|
234249
|
234251
| 234253