From: Michael j T. <mt...@us...> - 2015-04-22 22:55:29
|
I would set up my CUSE device programs as a service. So if I want the device to be available, I do "service <service name> stop" and to stop it "service <service name> stop". So this would involve your service scripts probably sending a signal to that process, with the process having an appropriate signal handler to exit gracefully. Regards, Michael Theall "Christopher R. Hertel" <cr...@ub...> wrote on 04/22/2015 05:48:31 PM: > From: "Christopher R. Hertel" <cr...@ub...> > To: Kevin Vasko <va...@ti...> > Cc: fuse-devel <fus...@li...> > Date: 04/22/2015 05:49 PM > Subject: Re: [fuse-devel] "Unmounting" CUSE devices. > > Thanks, Kevin. I appreciate the reply. > > I did, however, try that. I tried several variations. > > # fusermount -u fooberry > fusermount: failed to unmount /root/fooberry: No such file or directory > # fusermount -u /dev/fooberry > fusermount: failed to unmount /dev/fooberry: Invalid argument > # fusermount -u /dev/cuse > fusermount: failed to unmount /dev/cuse: Invalid argument > # cd /dev > # fusermount -u fooberry > fusermount: failed to unmount /dev/fooberry: Invalid argument > > The pathname of the device node being created is /dev/fooberry (this is > test code, hence the funny name). > > Chris -)----- > > > On Wed, Apr 22, 2015 at 5:10 PM, Kevin Vasko <va...@ti...> > wrote: > > > You might have already tried this but since you didn't mention it, did you > > try to specifiy the mount? > > > > fusermount -u <mount_path> > > > > e.g. > > > > fusermount -u /tmp/fuse > > > > -Kevin > > > > -----Original Message----- > > From: Christopher R. Hertel [mailto:cr...@ub...] > > Sent: Wednesday, April 22, 2015 5:06 PM > > To: fuse-devel > > Subject: [fuse-devel] "Unmounting" CUSE devices. > > > > I have a rudimentary CUSE device working. There's a lot of work to do to > > make it useful, but it does, at least, create the device node and run. > > > > I don't know how to politely shut it down. I tried variations of > > "fusermount -u", but that generates "Invalid argument" or "No such file or > > directory" errors. "kill -HUP" does the job, but that seems kludgey. > > > > Is there a better way? > > > > Chris -)----- > > > > -- > > "Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X > > Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel > > jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, > > uninq. > > ubiqx Team -- http://www.ubiqx.org/ -)----- cr...@ub... > > OnLineBook -- http://ubiqx.org/cifs/ -)----- cr...@ub... > > > > > ------------------------------------------------------------------------------ > > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your > > own process in accordance with the BPMN 2 standard Learn Process modeling > > best practices with Bonita BPM through live exercises > > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > > event?utm_ > > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > _______________________________________________ > > fuse-devel mailing list > > fus...@li... > > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > > > > > -- > "Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X > Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel > jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq. > ubiqx Team -- http://www.ubiqx.org/ -)----- cr...@ub... > OnLineBook -- http://ubiqx.org/cifs/ -)----- cr...@ub... > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > |