samba shadow_copy vfs module is broken

Bug #466678 reported by Chetan Chauhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nexenta Operating System
Incomplete
Undecided
Unassigned

Bug Description

I am trying to use samba on 5.11 NexentaOS_20090926 .

When the shadow_copy vfs module is enabled in smb.conf and i browse the share i can't see ANY files . the share hows up blank.
However if i try to create a new directory then samba will not allow me if the directory exists in the zfs mount.

I can see files in /mnt/home just fine via ssh . also /mnt/home/.zfs/snapshots exists and i can see the snapshots.

------------- BEGIN smb.conf --------------
[global]
workgroup=HOME

[home]
  path=/mnt/home
  vfs objects = shadow_copy
  writeable = yes
  browseable = yes
  shadow_copy: path = .zfs/snapshot
  shadow_copy: prefix = GMT-
  shadow_copy: sort = desc

------------- END smb.conf --------------

The bug matches exactly with the info in http://www.edplese.com/samba-with-zfs.html

According to the site you need to apply http://www.edplese.com/files/samba-3.0.25-1-dirent-fix.patch to samba to fix a bug in the shadow_copy vfs module

I don't know if samba 3.2 has already applied the patch upstream , but since we are stuck with 3.0.x in nexenta i would urge the nexenta maintainers to apply the patch. Without it shadow_copy module is useless.

Revision history for this message
anilg (anil-verve) wrote :
Changed in nexenta:
status: New → Incomplete
Revision history for this message
Chetan Chauhan (chetan) wrote :

Going away to gurgaon for a few days . will check this ASAP once i get back.

Revision history for this message
Oliver Feilner (nexenta-nospam) wrote :

Hello,

I'm not the creator of this incident report but I have tested it.
But it did not work!

How I did it I took a brand new installation of NexentaCore 3 Beta 2, downloaded all mentioned .deb files and installed them via "dpkg -i -R ." afterwards I fixed the dependencies by "apt-get -f install".

I also applied the changes to smb.conf and created several snapshots before and after changing data
 zfs snapshot /pool/daten@GMT-`date -u +%Y.%m.%d-%H.%M.%S`

Please FIX!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.