NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD as a TimeCapsule?



On Mar 19, 2014, at 12:26 , Fredrik Pettai <pettai%nordu.net@localhost> wrote:
> On Mar 19, 2014, at 12:06 , Fredrik Pettai <pettai%nordu.net@localhost> wrote:
>> On Mar 19, 2014, at 10:30 , Fredrik Pettai <pettai%nordu.net@localhost> 
>> wrote:
>>> On Mar 19, 2014, at 01:34 , matthew sporleder 
>>> <msporleder%gmail.com@localhost> wrote:
>>>> On Tue, Mar 18, 2014 at 11:50 AM, Fredrik Pettai 
>>>> <pettai%nordu.net@localhost> wrote:
>>> 
>>> Now, lets see if netatalk can do some working shares too…
>> 
>> Ok, afpd (net/netatalk) isn't able to register itself with mdnsd 
>> (net/mDNSresponder).
>> 
>> Mar 19 09:57:49 xsrv1 afpd[18236]: AFP/TCP started, advertising 
>> 109.105.104.215:548 (2.2.5)
>> Mar 19 09:57:49 xsrv1 afpd[18236]: volume "TimeCapsule" does not support 
>> Extended Attributes, using ea:ad instead
>> Mar 19 09:57:52 xsrv1 afpd[18236]: Failed to add service: _afpovertcp._tcp, 
>> error=-65563
>> 
>> and from ktrace -t A :
>> 
>> […]
>> 
>> 18236      1 afpd     getpid()                    = 18236, 8346
>> 18236      1 afpd     __lstat50("org.netatalk.supports-eas.18236a", 
>> 0x7f7fffffb3f0) Err#2 ENOENT
>> 18236      1 afpd     geteuid()                   = 0
>> 18236      1 afpd     setxattr(0x7f7ff7b022e0, 0x6878a0, 0x4612e7, 0x4, 0) 
>> Err#86 ENOTSUP
>> 18236      1 afpd     __gettimeofday50(0x7f7fffff9d90, 0) = 0
>> 18236      1 afpd     getpid()                    = 18236, 8346
>> 18236      1 afpd     fcntl(0x7, 0x3, 0)          = 2
>> 18236      1 afpd     sendto(0x7, 0x7f7fffff9db0, 0x94, 0, 0, 0) = 148
>>      "<28>1 2014-03-19T09:57:49.667675+00:00 xsrv1.nordu.net afpd 18236 - - 
>> volume "TimeCapsule" does not support Extended Attributes, using ea:ad 
>> instead"
>> 18236      1 afpd     open("/usr/pkg/etc/netatalk/afp_voluuid.conf", 0, 
>> 0x1b6) = 9
>> 18236      1 afpd     __fstat50(0x9, 0x7f7fffffb360) = 0
>> 18236      1 afpd     read(0x9, 0x7f7ff7b4c000, 0x4000) = 163
>>      "# DON'T TOUCH NOR COPY THOUGHTLESSLY!\n# This file is auto-generated 
>> by afpd\n# and stores UUIDs for TM 
>> volumes.\n\n"TimeCapsule"\t5BB076DF-95E0-ADE5-497C-0A6820E01E4C\n"
>> 18236      1 afpd     close(0x9)                  = 0
>> 18236      1 afpd     read(0x3, 0x7f7ff7b0c000, 0x4000) = 0
>>      ""
>> 18236      1 afpd     close(0x3)                  = 0
>> 18236      1 afpd     __socket30(0x1, 0x1, 0)     = 3
>> 18236      1 afpd     setsockopt(0x3, 0xffff, 0x800, 0x7f7fffffd1cc, 0x4) = 0
>> 18236      1 afpd     connect(0x3, 0x7f7fffffd160, 0x6a) Err#20 ENOTDIR
>> 18236      1 afpd     __nanosleep50(0x7f7fffffd130, 0x7f7fffffd120) = 0
>> 18236      1 afpd     connect(0x3, 0x7f7fffffd160, 0x6a) Err#20 ENOTDIR
>> 18236      1 afpd     __nanosleep50(0x7f7fffffd130, 0x7f7fffffd120) = 0
>> 18236      1 afpd     connect(0x3, 0x7f7fffffd160, 0x6a) Err#20 ENOTDIR
>> 18236      1 afpd     __nanosleep50(0x7f7fffffd130, 0x7f7fffffd120) = 0
>> 18236      1 afpd     connect(0x3, 0x7f7fffffd160, 0x6a) Err#20 ENOTDIR
>> 18236      1 afpd     close(0x3)                  = 0
>> 18236      1 afpd     __gettimeofday50(0x7f7fffffbb40, 0) = 0
>> 18236      1 afpd     getpid()                    = 18236, 8346
>> 18236      1 afpd     fcntl(0x7, 0x3, 0)          = 2
>> 18236      1 afpd     sendto(0x7, 0x7f7fffffbb60, 0x7b, 0, 0, 0) = 123
>>      "<27>1 2014-03-19T09:57:52.694445+00:00 xsrv1.nordu.net afpd 18236 - - 
>> Failed to add service: _afpovertcp._tcp, error=-65563"
>> 18236      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbe0, 0) = 0
>> 18236      1 afpd     getrlimit(0x8, 0x7f7fffffdbd0) = 0
>> 18236      1 afpd     setrlimit(0x8, 0x7f7fffffdbd0) = 0
>> 18236      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbe0, 0) = 0
>> 18236      1 afpd     poll(0x7f7ff7b4c170, 0x1, 0xffffffff) Err#4 EINTR
>> 18236      1 afpd     SIGINT SIG_DFL
>> 
>> The connect() fails after setsockopt()
> 
> And wip/netatalk (version 3.1.0) also suffers the same problem with 
> net/mDNSresponder…
> 
> […]
> 
>  6768      1 afpd     __socket30(0x1, 0x1, 0)     = 8
>  6768      1 afpd     setsockopt(0x8, 0xffff, 0x800, 0x7f7fffffd85c, 0x4) = 0
>  6768      1 afpd     connect(0x8, 0x7f7fffffd7f0, 0x6a) Err#20 ENOTDIR
>  6768      1 afpd     __nanosleep50(0x7f7fffffd7c0, 0x7f7fffffd7b0) = 0
>  6768      1 afpd     connect(0x8, 0x7f7fffffd7f0, 0x6a) Err#20 ENOTDIR
>  6768      1 afpd     __nanosleep50(0x7f7fffffd7c0, 0x7f7fffffd7b0) = 0
>  6768      1 afpd     connect(0x8, 0x7f7fffffd7f0, 0x6a) Err#20 ENOTDIR
>  6768      1 afpd     __nanosleep50(0x7f7fffffd7c0, 0x7f7fffffd7b0) = 0
>  6768      1 afpd     connect(0x8, 0x7f7fffffd7f0, 0x6a) Err#20 ENOTDIR
>  6768      1 afpd     close(0x8)                  = 0
>  6768      1 afpd     __gettimeofday50(0x7f7fffffc1f0, 0) = 0
>  6768      1 afpd     getpid()                    = 6768, 15161
>  6768      1 afpd     fcntl(0x7, 0x3, 0)          = 2
>  6768      1 afpd     sendto(0x7, 0x7f7fffffc210, 0x7a, 0, 0, 0) = 122
>       "<27>1 2014-03-19T11:18:34.377201+00:00 xsrv1.nordu.net afpd 6768 - - 
> Failed to add service: _afpovertcp._tcp, error=-65563"
>  6768      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbd0, 0) = 0
>  6768      1 afpd     getrlimit(0x8, 0x7f7fffffdbc0) = 0
>  6768      1 afpd     setrlimit(0x8, 0x7f7fffffdbc0) = 0
>  6768      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbd0, 0) = 0

With the mdnsd included in NetBSD, it (kinda) works…

[…]
 26282      1 afpd     __socket30(0x1, 0x1, 0)     = 8
 26282      1 afpd     setsockopt(0x8, 0xffff, 0x800, 0x7f7fffffd85c, 0x4) = 0
 26282      1 afpd     connect(0x8, 0x7f7fffffd7f0, 0x6a) = 0
 26282      1 afpd     sendto(0x8, 0x7f7ff7b20160, 0x41, 0, 0, 0) = 65
       
"\0\0\0\^A\0\0\0%\0\0\0\0\0\0\0\^E\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0xsrv1\0_afpovertcp._tcp\0\0\0\^B$\0\0"
 26282      1 afpd     recvfrom(0x8, 0x7f7fffffd85c, 0x4, 0, 0, 0) = 4
       "\0\0\0\0"
 26282      1 afpd     mmap(0, 0x400000, 0x3, 0x16001002, 0xffffffff, 0, 0) = 
0x7f7ff0000000
 26282      1 afpd     mprotect(0x7f7ff0001000, 0x1000, 0) = 0
 26282      1 afpd     _lwp_self()                 = 1
 26282      1 afpd     __sigprocmask14(0x1, 0x7f7fffffd850, 0x7f7fffffd880) = 0
 26282      1 afpd     __sigprocmask14(0x3, 0x7f7fffffd880, 0) = 0
 26282      1 afpd     getcontext(0x7f7ff0000a88)  = 0
 26282      1 afpd     _lwp_create(0x7f7ff0000a88, 0x40, 0x7f7ff0000180) = 0
 26282      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbd0, 0) = 0
 26282      1 afpd     getrlimit(0x8, 0x7f7fffffdbc0) = 0
 26282      1 afpd     setrlimit(0x8, 0x7f7fffffdbc0) = 0
 26282      1 afpd     __sigprocmask14(0x2, 0x7f7fffffdbd0, 0) = 0
 26282      2 afpd     _lwp_ctl(0x1, 0x7f7ff0000208) = 0
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fcc000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fcb000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fca000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fc9000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fc8000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fc7000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fc6000
 26282      2 afpd     mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0) = 
0x7f7ff7fc5000
 26282      2 afpd     mmap(0, 0x100000, 0x3, 0x14001002, 0xffffffff, 0, 0) = 
0x7f7ff7700000
 26282      2 afpd     poll(0x7f7ff7701078, 0x1, 0xffffffff) = 1
 26282      2 afpd     recvfrom(0x8, 0x7f7ff03ffd00, 0x1c, 0, 0, 0) = 28
       "\0\0\0\^A\0\0\0+\0\0\0\0\0\0\0A\0\0\0\0\0\0\0\0\0\0\0\0"
 26282      2 afpd     recvfrom(0x8, 0x7f7ff7702050, 0x2b, 0, 0, 0) = 43
       "\0\0\0\^B\0\0\0\0\0\0\0\0xsrv1\0_afpovertcp._tcp.\0local.\0"
 26282      2 afpd     __select50(0x9, 0x7f7ff03ffd30, 0, 0, 0x7f7ff03ffd50) = 0


But you get warnings in /var/log/messages:

Mar 19 12:00:14 xsrv1 mdnsd:  10: WARNING: setsockopt - SO_NOSIGPIPE 22 
(Invalid argument)


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail



Home | Main Index | Thread Index | Old Index