Frank Lahm | 6 Jan 2011 18:24

2.2

> Changes in 2.2alpha6? or 2.2beta1?
> ====================

I think we could roll out beta1 now. The alphas have been downloaded
frequently without any bad feedback.

> * FIX: composition of Surrogate Pair

Great!

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Marc Haisenko | 7 Jan 2011 17:37
Favicon
Gravatar

Very poor read perfomance on OpenSolaris

Hi folks,
I recently upgraded my OpenSolaris server to snv_134 (uname -a: "SunOS opensolaris 5.11 snv_134b i86pc
i386 i86pc Solaris"). I also upgraded netatalk from 2.0.5 to 2.1.5. Since then, I'm experiencing
extremely bad read perfomance. Copying a 9.9MB file from my Mac to the AFP share takes 1.6 seconds, but
copying it back takes 45.4 seconds !

The share is on a ZFS pool, so I had a look whether that might be the issue, but at over 400MB/s the read
performance of the pool is not an issue. I also tried older versions of netatalk (2.1.4, 2.1.1 and 2.0.5),
all showing the same behaviour. Quick debugging via compiling with "-pg" and using gprof didn't help
pinpoint the problem, neither did "truss" (tool like "strace").

I don't know where to start debugging, any pointers at what functions to inspect are appreciated.

Regards,
	Marc

--
Marc Haisenko
marc <at> darkdust.net

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
HAT | 9 Jan 2011 04:01
Picon
Gravatar

`echo ${HOSTNAME}|cut -d. -f1` is bashism?

Hi,

In case of Ubuntu, ATALK_NAME is empty.
They applying the following patch.

-ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
+ATALK_NAME=`/bin/hostname --short`

Each OS gets the hostname in various methods.

FreeBSD
http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/netatalk/files/netatalk.in?rev=1.3
ATALK_NAME="`/bin/hostname -s`"

SuSE
:BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation

After all, which method is general?

--

-- 
HAT

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
Frank Lahm | 9 Jan 2011 09:55

Re: `echo ${HOSTNAME}|cut -d. -f1` is bashism?

> `echo ${HOSTNAME}|cut -d. -f1` is bashism?

Afaict it's not a bashism: ${..} variable expansion, `...` command
substition and cut are POSIX compliant.

2011/1/9 HAT <hat <at> fa2.so-net.ne.jp>:
> In case of Ubuntu, ATALK_NAME is empty.
> They applying the following patch.
>
> -ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
> +ATALK_NAME=`/bin/hostname --short`

Because HOSTNAME is not set at the time the netatalk script is called ?

> Each OS gets the hostname in various methods.
>
> FreeBSD
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/netatalk/files/netatalk.in?rev=1.3
> ATALK_NAME="`/bin/hostname -s`"
>
> SuSE
> :BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation
>
> After all, which method is general?

There exists no portable method. Anyway, ATALK_NAME is only used for
Appletalk stuff, isn't it? I'm planning to remove all Appletalk stuff
from Netatalk 3 anyway... ;)

-f
(Continue reading)

HAT | 9 Jan 2011 18:23
Picon
Gravatar

Re: `echo ${HOSTNAME}|cut -d. -f1` is bashism?

Hi,

Frank Lahm <franklahm <at> googlemail.com>,  Sun, 9 Jan 2011 09:55:21 +0100
>> `echo ${HOSTNAME}|cut -d. -f1` is bashism?
> 
> Afaict it's not a bashism: ${..} variable expansion, `...` command
> substition and cut are POSIX compliant.

I heard that Ubuntu's sh is symlink to dash, not bash.
It might be spec of dash.

>> In case of Ubuntu, ATALK_NAME is empty.
>> They applying the following patch.
>>
>> -ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
>> +ATALK_NAME=`/bin/hostname --short`
> 
> Because HOSTNAME is not set at the time the netatalk script is called ?

See netatalk-2.1.5/distrib/initscripts/rc.atalk.sysv.tmpl .

| # netatalk.conf expects hostname in $HOSTNAME by default
| HOSTNAME=`hostname`

HOSTNAME seems not to be certain.

>> Each OS gets the hostname in various methods.
>>
>> FreeBSD
>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/netatalk/files/netatalk.in?rev=1.3
(Continue reading)

Mark Davies | 11 Jan 2011 02:27
Picon
Picon

problems deleting files with EA's

On netbsd with netatalk-2.1.5 (and 2.1.4 and 2.1.3) on a volume with 
EA support using adouble files (ea:ad), if we try to drag a file that 
has EA's to the trash we get the error:

  The operation can't be completed because one or more
  required items can't be found 
  (Error Code -43)

The original files look like:

-rw-r--r--  1 cliffe  operator  4158131 Jan 11 12:57 
Downloads/ccc-3-1.3.7.dmg
-rw-rw-rw-  1 cliffe  operator  741 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg
-rw-rw-rw-  1 cliffe  operator   74 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA
-rw-rw-rw-  1 cliffe  operator  115 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA::com.apple.metadata:3akMDItemWhereFroms
-rw-rw-rw-  1 cliffe  operator   74 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA::com.apple.quarantine

After the error these files remain:
-rw-rw-rw-  1 cliffe  operator   74 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA
-rw-rw-rw-  1 cliffe  operator  115 Jan 11 12:57 
Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA::com.apple.metadata:3akMDItemWhereFroms

and .Trash contains

-rw-r--r--  1 cliffe  operator  4158131 Jan 11 
(Continue reading)

Frank Lahm | 11 Jan 2011 10:26

Re: problems deleting files with EA's

Mark,

I'd stay away from ea:ad and use ea:sys.

2011/1/11 Mark Davies <mark <at> ecs.vuw.ac.nz>:
> On netbsd with netatalk-2.1.5 (and 2.1.4 and 2.1.3) on a volume with
> EA support using adouble files (ea:ad), if we try to drag a file that
> has EA's to the trash we get the error:

Mac OS 9 clients? There's no network trash for OS X clients, with OS X
files from network mount get deleted immediately. How comes your
deleted files are in some .Trash folder ?

>  The operation can't be completed because one or more
>  required items can't be found
>  (Error Code -43)
>
> The original files look like:
>
> -rw-r--r--  1 cliffe  operator  4158131 Jan 11 12:57
> Downloads/ccc-3-1.3.7.dmg
> -rw-rw-rw-  1 cliffe  operator  741 Jan 11 12:57
> Downloads/.AppleDouble/ccc-3-1.3.7.dmg
> -rw-rw-rw-  1 cliffe  operator   74 Jan 11 12:57
> Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA
> -rw-rw-rw-  1 cliffe  operator  115 Jan 11 12:57
> Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA::com.apple.metadata:3akMDItemWhereFroms
> -rw-rw-rw-  1 cliffe  operator   74 Jan 11 12:57
> Downloads/.AppleDouble/ccc-3-1.3.7.dmg::EA::com.apple.quarantine
>
(Continue reading)

Mark Davies | 11 Jan 2011 11:21
Picon
Picon

Re: problems deleting files with EA's

On Tuesday 11 January 2011 22:26:06 Frank Lahm wrote:
> I'd stay away from ea:ad and use ea:sys.

Its actually ea:auto but that is deciding to use ad

Jan 11 13:45:23.229150 afpd[13859] {volume.c:1907} (W:AFPDaemon): 
volume "Test" does not support Extended Attributes, using ea:ad 
instead
Jan 11 13:45:23.231939 afpd[13859] {vfs.c:1023} (D5:AFPDaemon): 
initvol_vfs: enabling EA support with adouble files

> 2011/1/11 Mark Davies <mark <at> ecs.vuw.ac.nz>:
> > On netbsd with netatalk-2.1.5 (and 2.1.4 and 2.1.3) on a volume 
with
> > EA support using adouble files (ea:ad), if we try to drag a 
file that
> 
> > has EA's to the trash we get the error:
> Mac OS 9 clients? There's no network trash for OS X clients, with 
OS X
> files from network mount get deleted immediately. How comes your
> deleted files are in some .Trash folder ?

No this is OS X, the users home directory is a network mount 
so the .Trash is _the_ Trash folder for that user.

cheers
mark

------------------------------------------------------------------------------
(Continue reading)

Mark Davies | 12 Jan 2011 04:34
Picon
Picon

Re: problems deleting files with EA's

On Tue, 11 Jan 2011, Mark Davies wrote:
> On Tuesday 11 January 2011 22:26:06 Frank Lahm wrote:
> > I'd stay away from ea:ad and use ea:sys.
>
> Its actually ea:auto but that is deciding to use ad

So I think there are several issues here:

Looks like the configure is not detecting the extattr support.

Even if it did, I think depending on the underlying filesystem being 
used it may need to be enabled explicitly for a filesystem.

My original report indicates there is some bug in the ea:ad case that 
should be fixed if its going to be offered as an option.

What do I lose if I disable EA  (ea:none)?

cheers
mark

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
HAT | 13 Jan 2011 08:57
Picon
Gravatar

AppleDouble is broken by long fileneme (>255 UTF8-MAC chars)

When a file of a long name is copied from Mac OS X to netatalk,
AppleDouble is broken.
I checked netatalk 2.0.3, 2.0.4, 2.0.5, 2.1.5 and 2.2alpha5.
All results are same.

AFAIR, early Mac OS X have no problem. The copying failed maybe.

I attached a file used to test.
File neme is 127 "ά" chars.

UTF8     : 127*2 = 254 Bytes 
UTF8-MAC : 127*3 = 381 Bytes
UTF16-MAC: 127*4 = 508 Bytes

# apple_dump άάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάά
/export/users/hat/xxx/.AppleDouble/άάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάάά:

-------------------------------------------------------------------------------
MagicNumber: 00051607                                        : AppleDouble
Version    : 00020000                                        : Version 2
Filler     : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 : ................
Num. of ent: 000D                                            : 13

-------------------------------------------------------------------------------
Entry ID   : 00000002 : Resource Fork
Offset     : 000002E5 : 741 
Length     : 00000000 : 0

-------------------------------------------------------------------------------
Entry ID   : 00000003 : Real Name
(Continue reading)


Gmane