Says it all really. I'm hoping there's some escape char trick I could do to make this work? Recursing through all the directories would obviously work, but this is for a script that runs over the WAN, so performance is a major issue - I literally just want to see if a file exists in one of the next layers down. Just getting the wildcard through (I think CIFS allows that?) would solve the problem. I could use mount.cifs - but this scripts runs massively in parallel and I dread mounting and unmounting on that scale - smbclient is the perfect tool for the job (if only it worked ;-) I've tried this with 3.2.11, I'm assuming it still affects the current version Thanks! -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
On Wed, Mar 24, 2010 at 11:24:49AM +1300, Jason Haar wrote:> Says it all really. I'm hoping there's some escape char trick I could do > to make this work? Recursing through all the directories would obviously > work, but this is for a script that runs over the WAN, so performance is > a major issue - I literally just want to see if a file exists in one of > the next layers down. Just getting the wildcard through (I think CIFS > allows that?) would solve the problem. I could use mount.cifs - but this > scripts runs massively in parallel and I dread mounting and unmounting > on that scale - smbclient is the perfect tool for the job (if only it > worked ;-) > > I've tried this with 3.2.11, I'm assuming it still affects the current > versionActually I don't think this would work even to a Windows server. The wildcard is only allowable in the last component of a path. Otherwise it's incredibly expensive to do this search, and doesn't match a search within an open directory file handle (which is what Windows does internally when doing a FindFirst). Jeremy.
Reasonably Related Threads
- Cannot connect to Samba-3.0.23d (and earlier) from other trusted AD domains
- mount.cifs not reporting locking issues to Linux?
- Vista SP1-rc1 appears to break against Samba-3.0.27a
- ongoing problems with winbind since we rolled out RODCs
- Can Asterisk "proxy" a SIP phone to make it look like a Cisco skinny softphone?