I've got an itch to scratch in Samba. Specifically, I'd like to implement quota checks on sub-directories of the share's root, as opposed to (or in addition to) the volume quota checks normally done at the share's root.
I've skimmed through some of the vfs module docs enough to know the API is there for returning values (more than just the "quota command" scriptable version), but watching strace on smbd looks like smbd stays in the share root, and appears to do all I/O as a relative path from that directory. The documentation for the "quota command" config variable says one of the parameters sent is the path to check, but as others have reported, this value always seems to be "." and refers to the share's root. I've gone through some protocol specs produced by Microsoft on the SMB protocol, and sniffed out the traffic, and it sure looks like the only thing a client specifies is a list of SIDs to retrieve quota information about. There is a Quota Information button in win7, which I assume (for lack of experience) is used to get folder quota information out of FSRM on a windows server, but I haven't found any documentation that would back up my assumption. Does anyone have low-level samba and/or SMB experience, and have an idea of how I might divine the intended destination path of a large copy? Grazie, ;-Daniel /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
