Bug 7735 - shadow_copy2 module "Previous Version" not working in Windows Vista and Windows 7
shadow_copy2 module "Previous Version" not working in Windows Vista and Windo...
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: VFS Modules
3.5.6
x86 Windows 7
: P3 normal
: ---
Assigned To: Michael Adam
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-15 17:28 UTC by Long Li
Modified: 2010-11-19 17:41 UTC (History)
1 user (show)

See Also:


Attachments
Netmon capture - access previous versions from Windows 7 client to Samba server (36.64 KB, application/octet-stream)
2010-10-15 17:30 UTC, Long Li
no flags Details
smbd log file while reproducing the bug (457.67 KB, text/plain)
2010-10-15 17:31 UTC, Long Li
no flags Details
smb config file (502 bytes, text/plain)
2010-10-15 17:36 UTC, Long Li
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Long Li 2010-10-15 17:28:15 UTC
Samba is setup using shadow_copy2 on a share.

From a Windows 7 or Windows Vista client:

1)Select always available offline option on the share.
2)Right click on the share, select properties
3)Go to previous versions
Expected:- The user should be able to see the previous versions as before.
Actual:- You will not see the previous version.

Uncheck ‘Always available offline’ option.
Disconnect and reconnect to the share.
Actual:- We  still do not  see any previous versions.

This bug is due to Samba server fails to respond to the createandx request from client to open the shadow copy directory (with directory name only).

(from log.smbd)
[2010/10/15 14:54:43.649472, 10] modules/vfs_shadow_copy2.c:124(shadow_copy2_normalise_path)
  path=/home/test1/w7/snap/@GMT-2010.10.15-03.44.36/test1/, gmt_start=@GMT-2010.10.15-03.44.36/test1/, prefix_len=19
[2010/10/15 14:54:43.649518, 10] modules/vfs_shadow_copy2.c:162(shadow_copy2_normalise_path)
  shadow_copy2_normalise_path: /home/test1/w7/snap/@GMT-2010.10.15-03.44.36/test1/ -> @GMT-2010.10.15-03.44.36//home/test1/w7/snap/test1/
(the last converted path name is wrong)

The correct converted path name in this case should be @GMT-2010.10.15-03.44.36/
Comment 1 Long Li 2010-10-15 17:30:12 UTC
Created attachment 6014 [details]
Netmon capture - access previous versions from Windows 7 client to Samba server
Comment 2 Long Li 2010-10-15 17:31:20 UTC
Created attachment 6015 [details]
smbd log file while reproducing the bug
Comment 3 Long Li 2010-10-15 17:36:46 UTC
Created attachment 6016 [details]
smb config file
Comment 4 Long Li 2010-10-15 17:38:35 UTC
Comment on attachment 6014 [details]
Netmon capture - access previous versions from Windows 7 client to Samba server

226 and 227 are the failed request/response messages
Comment 5 Volker Lendecke 2010-11-03 12:20:49 UTC
It might already be fixed in the v3-4-ctdb branch we're maintaining on Michael Adam's (obnox) private repo. We're about to merge those in the next few days/weeks.
Comment 6 Jeremy Allison 2010-11-19 17:41:19 UTC
Michael, can you take a look at this and either confirm or deny Volker's statement ?

Thanks,

Jeremy.