9 Jun 2012 16:46
Re: FUSE support broken when called without debug
Paul Alfille <paul.alfille <at> gmail.com>
2012-06-09 14:46:51 GMT
2012-06-09 14:46:51 GMT
Yes, I think I know the problem.
Background is accomplished by a fork and I added "close-on-fork" to the file handles for, I thought, security. I'll fix it.
Your work was very helpful!
Paul
On Sat, Jun 9, 2012 at 12:23 AM, Otavio Salvador <otavio <at> ossystems.com.br> wrote:
On Tue, Jun 5, 2012 at 12:43 AM, Otavio Salvador <otavio <at> ossystems.com.br> wrote:On Tue, Jun 5, 2012 at 12:34 AM, Paul Alfille <paul.alfille <at> gmail.com> wrote:What happens with owhttpd?
owhttpd I didn't test but owserver with owdir works fine.With background it fails:root <at> ossystems:~# owfs --w1 -m /owfs --debug --backgroundDEBUG MODElibow version:2.8p15CONNECT: owfs.c:(96) fuse mount point: /owfsCONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loadedCONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't foundCALL: ow_parsename.c:(98) path=[]DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)DEBUG: fuse_line.c:(82) Added FUSE option 0 OWFSDEBUG: fuse_line.c:(82) Added FUSE option 1 /owfsDEBUG: fuse_line.c:(82) Added FUSE option 2 -oDEBUG: fuse_line.c:(82) Added FUSE option 3 direct_ioDEBUG: owfs.c:(121) fuse_mnt_opt=[(null)]DEBUG: owfs.c:(123) fuse_open_opt=[(null)]NLMSGHDR: len=48 type=3 (NLMSG_DONE) flags=5 seq=0|1 pid=531CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=1 len=12 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=0 id=0W1_NETLINK_CMD: NULL w1c fieldNULL dataNLMSGHDR: len=56 type=3 (NLMSG_DONE) flags=0 seq=0|1 pid=0CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=0 len=20 flags=12143W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=8 id=0W1_NETLINK_CMD: NULL w1c fieldByte buffer Data, length=8--000: 02 00 00 00 01 00 00 00<........>NLMSGHDR: len=48 type=3 (NLMSG_DONE) flags=0 seq=0|1 pid=0CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=1 len=12 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=0 id=0W1_NETLINK_CMD: NULL w1c fieldNULL dataWithout --background, it works:root <at> ossystems:~# owfs --w1 -m /owfs --debugDEBUG MODElibow version:2.8p15CONNECT: owfs.c:(96) fuse mount point: /owfsCONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loadedCONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't foundCALL: ow_parsename.c:(98) path=[]DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)DEBUG: fuse_line.c:(82) Added FUSE option 0 OWFSDEBUG: fuse_line.c:(82) Added FUSE option 1 /owfsDEBUG: fuse_line.c:(82) Added FUSE option 2 -oDEBUG: fuse_line.c:(82) Added FUSE option 3 direct_ioDEBUG: fuse_line.c:(82) Added FUSE option 4 -fDEBUG: fuse_line.c:(82) Added FUSE option 5 -dDEBUG: owfs.c:(121) fuse_mnt_opt=[(null)]DEBUG: owfs.c:(123) fuse_open_opt=[(null)]FUSE library version: 2.8.6nullpath_ok: 0DEBUG: ow_w1_list.c:(54) Sending w1 bus master list messageDEBUG: ow_w1_send.c:(132) Netlink send -----------------NLMSGHDR: len=48 type=3 (NLMSG_DONE) flags=5 seq=0|1 pid=548CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=1 len=12 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=0 id=0W1_NETLINK_CMD: NULL w1c fieldNULL dataDEBUG: ow_w1_send.c:(143) NETLINK sent seq=1DEBUG: ow_w1_dispatch.c:(167) Dispatch loopDEBUG: ow_w1_parse.c:(113) Wait to peek at messageDEBUG: ow_w1_parse.c:(121) Pre-parse header: 16 bytes len=56 type=3 seq=0|1 pid=0DEBUG: ow_w1_parse.c:(142) Netlink read -----------------NLMSGHDR: len=56 type=3 (NLMSG_DONE) flags=0 seq=0|1 pid=0CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=0 len=20 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=8 id=0W1_NETLINK_CMD: NULL w1c fieldByte buffer Data, length=8--000: 02 00 00 00 01 00 00 00<........>DEBUG: ow_w1_dispatch.c:(88) Netlink message directed to root W1 masterDEBUG: ow_w1_dispatch.c:(126) Sending this packet to root busDEBUG: ow_w1_dispatch.c:(167) Dispatch loopDEBUG: ow_w1_parse.c:(113) Wait to peek at messageDEBUG: ow_w1_parse.c:(121) Pre-parse header: 16 bytes len=48 type=3 seq=0|1 pid=0DEBUG: ow_w1_parse.c:(142) Netlink read -----------------NLMSGHDR: len=48 type=3 (NLMSG_DONE) flags=0 seq=0|1 pid=0CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=1 len=12 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=8 id=0W1_NETLINK_CMD: NULL w1c fieldByte buffer Data, length=8--000: 02 00 00 00 01 00 00 00<........>DEBUG: ow_w1_dispatch.c:(88) Netlink message directed to root W1 masterDEBUG: ow_w1_dispatch.c:(126) Sending this packet to root busDEBUG: ow_w1_dispatch.c:(167) Dispatch loopDEBUG: ow_w1_parse.c:(113) Wait to peek at messageDEBUG: ow_w1_parse.c:(121) Pre-parse header: 16 bytes len=48 type=3 seq=0|1 pid=0DEBUG: ow_w1_parse.c:(142) Netlink read -----------------NLMSGHDR: len=48 type=3 (NLMSG_DONE) flags=0 seq=0|1 pid=0CN_MSG: idx/val=3/1 (CN_W1_IDX) seq=0|1 ack=1 len=12 flags=0W1_NETLINK_MSG: type=6 (W1_LIST_MASTERS) len=0 id=0W1_NETLINK_CMD: NULL w1c fieldNULL dataDEBUG: ow_w1_dispatch.c:(88) Netlink message directed to root W1 masterDEBUG: ow_w1_dispatch.c:(126) Sending this packet to root busDEBUG: ow_w1_dispatch.c:(167) Dispatch loopDEBUG: ow_w1_parse.c:(113) Wait to peek at messageDEBUG: ow_w1_scan.c:(54) Netlink (w1) list all bus mastersDEBUG: ow_w1_list.c:(64) W1 List 2 mastersCALL: ow_parsename.c:(98) path=[]DEBUG: ow_w1_addremove.c:(52) Setup structure for w1_bus_master2DEBUG: ow_w1_addremove.c:(76) Request master be added: w1_bus_master2.DEBUG: ow_add_inflight.c:(26) Request master be added: w1_bus_master2CALL: ow_parsename.c:(98) path=[]DEBUG: ow_w1_addremove.c:(52) Setup structure for w1_bus_master1DEBUG: ow_w1_addremove.c:(76) Request master be added: w1_bus_master1.DEBUG: ow_add_inflight.c:(26) Request master be added: w1_bus_master1DEBUG: ow_w1_scan.c:(54) Netlink (w1) list all bus mastersDEBUG: ow_w1_list.c:(64) W1 List 0 mastersunique: 1, opcode: INIT (26), nodeid: 0, insize: 56INIT: 7.14flags=0x0000007bmax_readahead=0x00020000INIT: 7.12flags=0x00000011max_readahead=0x00020000max_write=0x00020000unique: 1, success, outsize: 40Any idea how to fix it?--
Otavio Salvador O.S. Systems
E-mail: otavio <at> ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Owfs-developers mailing list Owfs-developers <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
RSS Feed