HAT | 7 May 2012 18:21
Picon
Gravatar

How to reproduce: Ubuntu afpd Signal 11 (ID:3418627, 3519622)

Hi,

>afpd[5736]: ===============================================================
>afpd[5736]: INTERNAL ERROR: Signal 11 in pid 5736 (2.2.1)
>afpd[5736]: ===============================================================
>afpd[5736]: BACKTRACE: 3 stack frames:
>afpd[5736]:  #0 /usr/sbin/afpd(netatalk_panic+0x1c) [0x7f2b8da09aec]
>afpd[5736]:  #1 /usr/sbin/afpd(+0x50bec) [0x7f2b8da09bec]
>afpd[5736]:  #2 /lib/x86_64-linux-gnu/libc.so.6(+0x364c0) [0x7f2b8c9c64c0]

I succeeded in making this problem reproduce.
Ubuntu 12.04 *Desktop* has no problem.
Ubuntu 12.04 *Server* causes this problem.

Both differ in /etc/pam.d/common-auth .

Ubuntu 12.04 Desktop:
>auth    [success=1 default=ignore]      pam_unix.so nullok_secure
>auth    requisite                       pam_deny.so
>auth    required                        pam_permit.so
>auth    optional                        pam_cap.so 

Ubuntu 12.04 Server:
>auth    [success=2 default=ignore]      pam_unix.so nullok_secure
>auth    [success=1 default=ignore]      pam_winbind.so krb5_auth krb5_ccache_type=FILE cached_login try_first_pass
>auth    requisite                       pam_deny.so
>auth    required                        pam_permit.so
>auth    optional                        pam_smbpass.so migrate
>auth    optional                        pam_cap.so 

(Continue reading)

Frank Lahm | 15 May 2012 16:19

Re: In case of read only, log message is annoying

2012/4/24 HAT <hat <at> fa2.so-net.ne.jp>:
> In case of read only, log message is annoying.
>
> [test volume]
>    path = /export/test1
>    read only = yes
>
>  Apr 24 22:07:35.899782 netatalk[26828] {netatalk.c:281} (N:Default): Netatalk AFP server starting
>  Apr 24 22:07:35.901871 cnid_metad[26830] {netatalk_conf.c:180} (N:AFPDaemon): read-only volume
'test volume', can't test for EA support, assuming yes
>  Apr 24 22:07:35.906141 cnid_metad[26830] {cnid_metad.c:518} (N:AFPDaemon): CNID Server
listening on localhost:4700
>  Apr 24 22:07:36.398342 afpd[26829] {afp_config.c:108} (N:AFPDaemon): Netatalk AFP/TCP listening
on 192.168.1.130:548
>  Apr 24 22:07:36.398564 afpd[26829] {netatalk_conf.c:180} (N:AFPDaemon): read-only volume 'test
volume', can't test for EA support, assuming yes
>  Apr 24 22:07:40.166103 afpd[26834] {auth.c:242} (N:AFPDaemon): AFP3.3 Login by hat
>  Apr 24 22:07:40.166884 afpd[26834] {netatalk_conf.c:180} (N:AFPDaemon): read-only volume 'test
volume', can't test for EA support, assuming yes
>  Apr 24 22:07:41.693658 cnid_metad[26830] {cnid_metad.c:294} (N:CNID): set_dbdir: volume:
/export/test1, db path: /usr/local/var/netatalk/CNID//test volume/
>  Apr 24 22:07:41.696269 cnid_dbd[26835] {netatalk_conf.c:180} (N:AFPDaemon): read-only volume
'test volume', can't test for EA support, assuming yes
>
> Although I tried "appledouble = v2", it was still annoying.
> Although I tried "ea = none", it was still annoying.
>
> When I tried both of "appledouble = v2" and "ea = none", it became quiet.
>
> [test volume]
(Continue reading)

Jeremiah Johnson | 21 May 2012 14:44
Picon

Re: Netatalk 2.2.2 sluggish downloading while uploading files compared to samba

 Netatalk 2.2.2 takes a longer compared to samba to load a file if a
 lot of uploads to the server are done at the same time. Samba does not
 have this problem in the same situation. When I'm not uploading lots
 of small files Netatalk behaves similarly to Samba. I'm at no where
 near the throughput capacity of my disks, near my my memory capacity
 limits and the CPU for afpd bounces between 10%-15% of a quad core i5
 at 3.3 Ghz. The cnid process is < %1.

--

-- 
Jeremiah Johnson
Phone: 517-488-7393

------------------------------------------------------------------------------
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/
Frank Lahm | 21 May 2012 18:30

Release planning: 2.2.3 and 3.0-beta1

any cons againt releasing 2.2.3 and 3.0-beta1 tomorrow?
-f

------------------------------------------------------------------------------
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/
Riccardo Magliocchetti | 21 May 2012 19:43
Picon

[PATCH] Fix a couple of leaks in bin/psorder/pa.c

Hello,

don't leak h->buf and h on read error. Reported by cppcheck. Diffed 
against branch product-2-2.

thanks,
riccardo
------------------------------------------------------------------------------
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/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
Riccardo Magliocchetti | 21 May 2012 20:05
Picon

[PATCH] Fix resource leak in iniparser

Hello,

if dictionary_new fails we are fclose()ing the wrong variable which is 
undefined so not a reccomended thing to do :)

Spotted by cppcheck, diffed against master.

thanks,
riccardo
------------------------------------------------------------------------------
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/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
Giovanni Lovato | 21 May 2012 22:04
Gravatar

Current user quota status

What's the current status of user quotas in netatalk?
I'm running 2.2.1 and while quotas are enforced, the disk free space on a mounted share only reports the
total free blocks of the volume as opposed to the blocks available to that user (which is what samba does,
for example). I need the share to report as free space the user remaining quota. This will also help Time
Machine to clean the old backups when reaching the available quota.

Giovanni

------------------------------------------------------------------------------
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/
Frank Lahm | 22 May 2012 11:28

Re: Current user quota status

2012/5/21 Giovanni Lovato <heruan <at> aldu.net>:
> What's the current status of user quotas in netatalk?

Afair it should work. I'd check

$ ./configure --help | grep quota
  --enable-quota           Turn on quota support (default=auto)
$ ./etc/afpd/afpd -V | grep Quota
         Quota support:	Yes

-f

------------------------------------------------------------------------------
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/
Giovanni Lovato | 22 May 2012 11:37
Gravatar

Re: Current user quota status

On 22/mag/2012, at 11:28, Frank Lahm <franklahm <at> googlemail.com> wrote:
> 2012/5/21 Giovanni Lovato <heruan <at> aldu.net>:
>> What's the current status of user quotas in netatalk?
> 
> Afair it should work. I'd check
> 
> $ ./configure --help | grep quota
>  --enable-quota           Turn on quota support (default=auto)
> $ ./etc/afpd/afpd -V | grep Quota
>         Quota support:	Yes
> 
> -f

Thank you Frank.

Quota support is enabled and quotas are enforced (a user gets "No space left on device" if he's reached his
quota), the problem is that the free space Finder shows on the share infos is the total disk space on the
physical disk, not the maximum quota for the user. Is it supposed to be so?

Giovanni

------------------------------------------------------------------------------
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/
Frank Lahm | 22 May 2012 11:52

Re: Current user quota status

2012/5/22 Giovanni Lovato <heruan <at> aldu.net>:
> On 22/mag/2012, at 11:28, Frank Lahm <franklahm <at> googlemail.com> wrote:
>> 2012/5/21 Giovanni Lovato <heruan <at> aldu.net>:
>>> What's the current status of user quotas in netatalk?
>>
>> Afair it should work. I'd check
>>
>> $ ./configure --help | grep quota
>>  --enable-quota           Turn on quota support (default=auto)
>> $ ./etc/afpd/afpd -V | grep Quota
>>         Quota support:        Yes
>>
>> -f
>
>
> Thank you Frank.
>
> Quota support is enabled and quotas are enforced (a user gets "No space left on device" if he's reached his
quota), the problem is that the free space Finder shows on the share infos is the total disk space on the
physical disk, not the maximum quota for the user. Is it supposed to be so?

No, but it works for me:

Server:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
...
/test                    50G   19G   32G  38% /test
...

(Continue reading)


Gmane