smb

How do I keep NUL bytes from appearing throughout my GIT repository and commit messages?

北慕城南 提交于 2019-12-04 19:58:29
问题 I have a relatively clean install of Mac OS X Mavericks 10.9 running git version 1.8.5.1; my files are on a mounted SMB share, and I am no longer able to work properly with my GIT repositories because NULL bytes (\0's) keep appearing in all of my version-controlled files... and even in files generated on the fly by GIT. Typing git commit -m "Test message" by hand, gives me: error: a NULL byte in commit log message not allowed. fatal: failed to write commit object And if I attempt to git

Mounting SMB network share on desktop

隐身守侯 提交于 2019-12-04 18:02:08
I am trying to mount a smb network share onto the desktop via python, I don't want the share to be mounted in a folder, but were all the other mounted shares are (if I use 'connect to Server' in OSX I want my python mount to be mounted in the same location). Here is the current python code: directory = os.path.expanduser('~/Desktop') directory = os.path.normpath(directory) os.system("mount_smbfs //server/servershare " + directory) When I run the above, something strange happens. In finder, my home, which has the icon of a house and my username changes to the mount name, it screws it up a bit.

CTDB Samba failover not highly available

萝らか妹 提交于 2019-12-04 17:07:27
My Setup 3 nodes running ceph + cephfs 2 of these nodes running CTDB & Samba 1 client (not one of the 3 servers) It is a Lab setup, so only one nic per server=node, one subnet as well as all Ceph components plus Samba on the same servers. I'm aware, that this is not the way to go. The problem I want to host a clustered Samba file share on top of Ceph with ctdb. I followed the CTDB documentation ( https://wiki.samba.org/index.php/CTDB_and_Clustered_Samba#Configuring_Clusters_with_CTDB ) and parts of this: https://wiki.samba.org/index.php/Samba_CTDB_GPFS_Cluster_HowTo . The cluster is running

Create smb server in order to share files

只愿长相守 提交于 2019-12-04 16:17:21
Most of the places online explain how to connect and read data hosted by a smb server. Wikipedia explains more about smb at: http://en.wikipedia.org/wiki/Server_Message_Block So what I am trying to do is to be able to open a file (located on the internet) from windows eplorer as: I need to add this functionality to a program that I am creating. If it is to complicated to create such server I guess I will not do it but I want to try my best. I found this link which might help me do what I am looking for at: http://www.codeproject.com/Articles/309936/Csharp-NET-Network-File-System-NFS-Server But

How to stream video across LAN in android VideoView

风格不统一 提交于 2019-12-04 13:41:48
问题 Due to office constraints I have a LAN network without internet and have to stream a video into my android application. I can view the video in ES Explorer on the device through smb ok. But what's the best way to get it to play in my VideoView app? using "smb://192.168.x.x/Users/Public/.." as the URI doesn't work. Thanks. 回答1: I've been able to play smb:// shares over the network in a VideoView by: Using JCIFS to scan for and "see" the share: http://jcifs.samba.org/ Implementing a simple HTTP

How do you force a CIFS connection to unmount

孤街醉人 提交于 2019-12-04 07:20:02
问题 I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes to timeout, and is unkillable while you wait. I can't even run ls in my home directory because there is a symlink pointing inside the CIFS mount and ls tries to follow it to decide what color it should be. If I try to umount it (even with -fl), the umount process hangs just like ls does. Not even sudo kill -9 can kill

Copy files to network path or drive using python on OSX

。_饼干妹妹 提交于 2019-12-04 06:19:58
I have a similar question like the one asked here but I need it to work on OSX. How to copy files to network path or drive using Python So i want to save a file on a SMB network share. Can this be done? Thanks! Yes, it can be done. First, mount your SMB network share to the local filesystem by calling a command like this from Python: mount -t smbfs //user@server/sharename share (You can do it using the subprocess module). share is the name of the directory where the SMB network share will be mounted to, and I guess it has to be writable by the user. After that, you can copy the file using

Reading file over network slow due to extra reads

瘦欲@ 提交于 2019-12-04 05:47:32
I'm reading a file and I either read a row of data (1600 sequential reads of 17 bytes) or a column of data (1600 reads of 17 bytes separated by 1600*17=27,200 bytes). The file is either on a local drive or a remote drive. I do the reads 10 times so I expect in each case to read in 272,000 bytes of data. On the local drive, I see what I expect. On the remote drive when reading sequentially I also see what I expect but when reading a column, I see a ton of extra reads being done. They are 32,768 bytes long and don't seem to be used but they make the amount of data being read jump from 272,000

How do I use JCIFS with apache VFS to access an SMB URL?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:19:27
问题 I am trying to access a folder on my local computer using an smb URL. my project is using the jars: commons-vfs2-2.0.jar and jcifs-1.3.17.jar (and all the other required jars). The code in it's entirety is: public static void main(String[] args) throws FileSystemException { jcifs.Config.registerSmbURLHandler(); StaticUserAuthenticator auth = new StaticUserAuthenticator(<domain>,<user>,<password>); FileSystemOptions opts = new FileSystemOptions(); DefaultFileSystemConfigBuilder.getInstance()

Using NSNetService class to make an SMB tcp ip connection to a folder shared on windows machine

瘦欲@ 提交于 2019-12-03 14:09:07
问题 I have been trying to figure out a way to access my windows shared folder using iPhone. The desired functionality is part of bigger enterprise app I am building. Here is someone who has already asked a similar question but no luck - Does iOS support file operations via SMB? Now, I have found apple developer tutorial called "SimpleNetworkStreams" which employs NSNetService to use x-SNSUpload protocol over tcp by setting type of NSNetService instance to protocol x-SNSUpload._tcp Here is how