Re: [Samba] Samba 3.4.2 with Solaris ZFS Snaphots

2009-11-26 Thread Jean-Christophe Delaye

Ralf Hornik Mailings wrote:

Jean-Jacques Moulis j...@isy.liu.se wrote:


We use the patches from http://www.edplese.com/samba-with-zfs.html
this give us freedom in naming convention
they still can be applied (manuallly) to


Sure? On 3.4.2, when I try to apply this patches only dirent-fix.patch 
is applicable. The other two are being rejected.


Ralf




Hi,

I did it.
I have to substitute uppercase BOOL with lowercase bool in these 3 patch 
files.


Jean-Christophe.



File to patch: source3/modules/vfs_shadow_copy.c
Hunk #1 succeeded at line 0 (offset 1 line)
Hunk #2 succeeded at line 49 (offset 1 line)
Hunk #3 succeeded at line -25 (offset 1 line)
Hunk #4 succeeded at line 167 (offset 1 line)
Hunk #5 succeeded at line 223 (offset 1 line)
Hunk #6 succeeded at line 240 (offset 1 line)
Hunk #7 succeeded at line 251 (offset 1 line)
Hunk #8 succeeded at line 262 (offset 1 line)
  I can't seem to find a patch in there anywhere.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba 3.4.2 with Solaris ZFS Snaphots

2009-11-18 Thread Jean-Christophe Delaye

Hi,
I'm trying to make samba working with Solaris ZFS Snaphots.

Solaris 10 is running on a x64/X86 box which is both Samba (3.4.2) 
server and Zfs server.

I created home/delaye filesystem with home zfs pool.

# zpool list
NAME   SIZE   USED  AVAILCAP  HEALTH  ALTROOT
home  1.98G  2.60M  1.98G 0%  ONLINE  -

home/delaye  2.47M  1.95G  1.66M  /home/delaye

Snapshots are named with the syntax @GMT-`date -u +%Y.%m.%d-%H.%M.%S`
and created using
# zfs snapshot home/del...@gmt-`date -u +%Y.%m.%d-%H.%M.%S`

# zfs list
NAME  USED  AVAIL  REFER  MOUNTPOINT
home 1.80M  1.95G23K  /home
home/delaye  1.70M  1.95G  1.67M  /home/delaye
home/del...@gmt-2009.11.18-10.01.1331K  -  1.67M  -

samba supports shadow copy (and  zfs acl) as Build Options.
smbd -b

   vfs_shadow_copy2_init
   vfs_shadow_copy_init
   vfs_zfsacl_init

Builtin modules:
pdb_ldap pdb_smbpasswd pdb_tdbsam pdb_wbc_sam rpc_lsarpc rpc_winreg 
rpc_initshutdown rpc_dssetup rpc_wkssvc rpc_svcctl rpc_ntsvcs 
rpc_netlogon rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog rpc_samr 
idmap_ldap idmap_tdb idmap_passdb idmap_nss nss_info_template auth_sam 
auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin 
auth_netlogond vfs_default vfs_solarisacl


I tried to configure a share in smb.conf supporting zfs snapshot as 
shadow copy provider with the following:


[delaye]
comment = JCD
path = /home/delaye
read only = No
writable = yes
acl check permissions = No
hide dot files = No
oplocks = No
level2 oplocks = No
vfs objects = shadow_copy2
shadow:snapdir = /home/delaye/.zfs/snapshot
shadow:basedir = /home/delaye

but I never see any previous version for files from client PC running XP 
(SP3) accessing to this samba share.


Can anyone help to troubleshoot this? Does anybody have a running setup 
for Solaris zfs snapshots ?


Thanks
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Charset problem only on redirected folder Desktop.

2008-02-14 Thread Jean-Christophe Delaye

Hi,

We're currently using Samba server version 3.0.28 running on a Solaris 
10u4 box.
We share users's home directories between Unix and Windows clients and 
have to specify the smb.conf parameter unix charset to iso-8859-15 (or 
so-8859-1) to ensure correct names for files and folders (containing 
accents) from Windows and Unix everything is ok :

Windows Explorer looks ok, and ls in Solaris also.

We configured GPO in AD server (a windows machine) to redirect special 
folders (including Desktop) for user to subdirectories in their home 
directory, which is their samba share, and it works fine.
But, whe have problems with files names when creating files directly 
from the WinXP Desktop. It seems that the unix charset does not apply on 
this desktop redirect folder. Of course, it works if I browse the 
desktop folder with Windows Explorer and create files here


Windows Desktop show Testé.txt
ls /homes/user/Windesktop
-rwxr--r--   1 user  0 Feb 14 18:41 Testé.txt

Any ideas ?

Cheers.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba