Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2005 21:41:46 -0400
From:      munn <munn@umd.edu>
To:        freebsd-questions@freebsd.org
Subject:   mount_smbfs issue
Message-ID:  <42606D5A.10007@umd.edu>

next in thread | raw e-mail | index | archive | help
I am getting an inconsistency when I try to use perl to access file in a 
smbfs mounted Win XP directory structure
My kernel is at 4.11p3.  Any help in resolving this problem would be 
much appreciated.

# smbfs mount command which mounts a WinXP share ShareDir on my FreeBSD
# box.  The directory ~/ShareDir has rwx permissions for ugo.

sudo mount_smbfs -N -I dodo -u me -g ggg //guest@dodo/SharedDir ~/SharedDir

# directory/file structure is correct

ls -FCR SharedDir/

DirOne/     DirThree/   DirTwo/

SharedDir/DirOne:
DSCN1090.JPG*   DSCN1091.JPG*   DSCN1092.JPG*

SharedDir/DirThree:
DSCN0820.JPG*   ParkStreet.JPG* VicRooms.JPG*

SharedDir/DirTwo:
Oeuvre17.JPG*

# now look at the directory/file structure with find
# looks good
find SharedDir -print

SharedDir
SharedDir/DirOne
SharedDir/DirOne/DSCN1090.JPG
SharedDir/DirOne/DSCN1091.JPG
SharedDir/DirOne/DSCN1092.JPG
SharedDir/DirThree
SharedDir/DirThree/DSCN0820.JPG
SharedDir/DirThree/ParkStreet.JPG
SharedDir/DirThree/VicRooms.JPG
SharedDir/DirTwo
SharedDir/DirTwo/Oeuvre17.JPG

# translate the find command to perl and run the perl script
# PROBLEM the files no longer appear

find2perl SharedDir -print > testcase.pl
perl testcase.pl

SharedDir
SharedDir/DirOne
SharedDir/DirThree
SharedDir/DirTwo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42606D5A.10007>