[jcifs] Soft Quota/Hard Quota definition in jCIFS

Michael B Allen ioplex at gmail.com
Wed Nov 30 12:00:46 MST 2011

On Wed, Nov 30, 2011 at 9:38 AM, Marianna Dorokhina
<marusya1004 at gmail.com> wrote:
> Hello Mike,
> Thanks again for your help finding
> jcifs.smb.SmbFile.getDiskFreeSpace()
> method to get Folder Quota.
> I was also wondering if there is a way
> within jCIFS library  to distinguish
> between soft and hard quota.

Hi Marianna,

I don't know without digging. That method ultimately makes a
Trans2QueryFSInformation call with info level
SMB_FS_FULL_SIZE_INFORMATION. Look for a document called [MS-CIFS].pdf
on Microsoft's website. It describes all of the possible bits of info
you can retrieve. But assuming there is a command that retrieves the
data of interest, you would have to add a new method like
getDiskFreeSpace to actually perform the operation.


Michael B Allen
Java Active Directory Integration

More information about the jCIFS mailing list