HAT | 1 Aug 2007 17:47
Picon
Gravatar

MAX_CHARSETS and NUM_CHARSETS

What do the following two macros mean?

#define MAX_CHARSETS in libatalk/unicode/charcnv.c
#define NUM_CHARSETS in include/atalk/unicode.h

Using netatalk 2.0.3, all maccharsets can be mounted.
However, when netatalk 2.1dev (CVS HEAD) is used, some maccharsets
cannot be mounted.

Is the value of MAX_CHARSETS or NUM_CHARSETS small?

NETATALK 2.0.3 =============================================
#define MAX_CHARSETS 10   in libatalk/unicode/charcnv.c
#define NUM_CHARSETS 5    in include/atalk/unicode.h
--- AppleVolumes.default -----------------------------------
/export/test01 "test01" maccharset:MAC_CENTRALEUROPE
/export/test02 "test02" maccharset:SHIFT_JIS
/export/test03 "test03" maccharset:MAC_ROMAN
/export/test04 "test04" maccharset:MAC_HEBREW
/export/test05 "test05" maccharset:MAC_TURKISH
/export/test06 "test06" maccharset:MAC_CYRILLIC
--- log ----------------------------------------------------
afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_CENTRALEUROPE with handle 5
afpd[2840][charcnv.c:238]: D5:Default: Added charset SHIFT_JIS with handle 6
afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_HEBREW with handle 7
afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_TURKISH with handle 8
afpd[2840][charcnv.c:238]: D5:Default: Added charset MAC_CYRILLIC with handle 9

NETATALK 2.1dev ============================================
#define MAX_CHARSETS 10   in libatalk/unicode/charcnv.c
(Continue reading)

Didier | 1 Aug 2007 22:24
Picon
Favicon

Re: MAX_CHARSETS and NUM_CHARSETS

Hi,
On Thu, 02 Aug 2007 00:47:57 +0900, HAT wrote
> What do the following two macros mean?
> 
> #define MAX_CHARSETS in libatalk/unicode/charcnv.c
> #define NUM_CHARSETS in include/atalk/unicode.h
> 
> Using netatalk 2.0.3, all maccharsets can be mounted.
> However, when netatalk 2.1dev (CVS HEAD) is used, some maccharsets
> cannot be mounted.
> 
> Is the value of MAX_CHARSETS or NUM_CHARSETS small?
NUM_CHARSETS is the number of predefined charsets. Charsets always open by
netatalk. eg:

CH_UCS2=0, CH_UTF8=1, CH_MAC=2, CH_UNIX=3, CH_UTF8_MAC

MAX_CHARSETS is the maximum number of charset that afp can open.

You're right for netatalk 2.1dev it's too small, it should be at least the
number of charset defined in netatalk. 

Didier

> NETATALK 2.0.3 =============================================
> #define MAX_CHARSETS 10   in libatalk/unicode/charcnv.c
> #define NUM_CHARSETS 5    in include/atalk/unicode.h
> --- AppleVolumes.default -----------------------------------
> /export/test01 "test01" maccharset:MAC_CENTRALEUROPE
> /export/test02 "test02" maccharset:SHIFT_JIS
(Continue reading)

hat | 2 Aug 2007 07:16
Picon
Gravatar

Re: MAX_CHARSETS and NUM_CHARSETS

Hi,

> NUM_CHARSETS is the number of predefined charsets. Charsets always open by
> netatalk. eg:
> 
> CH_UCS2=0, CH_UTF8=1, CH_MAC=2, CH_UNIX=3, CH_UTF8_MAC

When netatalk.mac_greek.patch is applied, NUM_CHARSETS was changed from
5 to 6.
Is it a mistake?

--

-- 
HAT

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
Bill Fellows | 3 Aug 2007 20:46
Picon
Favicon

can't umount Linux volume after all netatalk users are disconnected

Hi,
 
I'm trying to umount a volume on a Linux server running netatalk-2.0.2 using the dbd database after disconnecting all the netatalk clients. I can't umount because the cnid_dbd database files (cnid2.db, db_errlog, lock and the _db.x files) are left open. A call is never made to dbif_close which is responsible for closing those files. Is there any way to close those files besides stopping the cnid_dbd daemon?
 
Thanks,
Bill Fellows

Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
Bill Fellows | 3 Aug 2007 22:16
Picon
Favicon

can't umount Linux volume after all netatalk users are disconnected - part II

Hi,
 
I'm trying to umount a volume on a Linux server running netatalk-2.0.2 using the cnid dbd database (use_safe_db) after disconnecting all the netatalk clients. I can't umount because the cnid_dbd database files (cnid2.db, db_errlog, lock and the _db.x files) are left open. A call is never made to dbif_close which is responsible for closing those files. It seems when the user disconnects from the Server the dbd databases should be shutdown by stopping the cnid_dbd daemon for that afpd instance but this doesn't seem to be happening. Any help that you can give me to figure out why the cnid_dbd daemon isn't being stopped will be greatly appreciated.
 
Thanks again,
Bill Fellows

Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
Didier | 6 Aug 2007 10:19
Picon
Favicon

Re: MAX_CHARSETS and NUM_CHARSETS

Hi,
On Thu, 2 Aug 2007 14:16:43 +0900 (JST), hat wrote
> Hi,
> 
> > NUM_CHARSETS is the number of predefined charsets. Charsets always open by
> > netatalk. eg:
> > 
> > CH_UCS2=0, CH_UTF8=1, CH_MAC=2, CH_UNIX=3, CH_UTF8_MAC
> 
> When netatalk.mac_greek.patch is applied, NUM_CHARSETS was changed from
> 5 to 6.
> Is it a mistake?
It seems to be one.

Didier

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
Didier | 6 Aug 2007 10:35
Picon
Favicon

Re: [Netatalk-admins] can't umount Linux volume after all netatalk users are disconnected - part II

Hi,
On Fri, 3 Aug 2007 13:16:49 -0700 (PDT), Bill Fellows wrote 
> Hi, 
>   
> I'm trying to umount a volume on a Linux server running netatalk-2.0.2 using
the cnid dbd database (use_safe_db) after disconnecting all the netatalk
clients. I can't umount because the cnid_dbd database files (cnid2.db,
db_errlog, lock and the _db.x files) are left open. A call is never made to
dbif_close which is responsible for closing those files. It seems when the
user disconnects from the Server the dbd databases should be shutdown by
stopping the cnid_dbd daemon for that afpd instance but this doesn't seem to
be happening. Any help that you can give me to figure out why the cnid_dbd
daemon isn't being stopped will be greatly appreciated. 
It'll exit after a while, by default 10 mn 

You can change it on a db basis in db_param file ( idle_timeout parameter).
Didier

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
Mailing Lists | 26 Aug 2007 00:59

Solaris 10 Netatalk

Does anyone have some input on the discussion that can be found here?



I am also very interested in getting this working with Solaris 10 like the author of this thread and I'm very hopeful that we can get some good feedback from you all as well.  This would be a tremendous asset to Solaris 10/11 due to ZFS.


Thanks much,

-George
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Netatalk-devel mailing list
Netatalk-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netatalk-devel
Thomas Kaiser | 26 Aug 2007 19:26
Picon

Re: Solaris 10 Netatalk

Mailing Lists wrote:

> Does anyone have some input on the discussion that can be found here?

Sure. Simply use a version of BerkeleyDB that is known to work with the
specific netatalk version you're trying to compile. There is a reason that
the documentation lists specific versions:

    http://netatalk.sourceforge.net/2.0/htmldocs/installation.html#id2837734

If you search the archives of the more appropriate list for end user
questions (netatalk-admins)

    <http://marc.info/?l=netatalk&w=2&r=1&s=db-%3Estat&q=b>

then you would've noticed that there exists already support for more recent
BerkeleyDB releases in CVS:

    <http://marc.info/?l=netatalk&m=117914484708301&w=2>

Regards,

Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Gmane