Fixed bug in the disk sizing, the share was showing up as an 80Mb disk, it now shows up as an 80Gb disk.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2764 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-05-04 15:50:15 +00:00
parent 8c40b60e23
commit 07e63009ff

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005 Alfresco, Inc.
* Copyright (C) 2005-2006 Alfresco, Inc.
*
* Licensed under the Mozilla Public License version 1.1
* with a permitted attribution clause. You may obtain a
@@ -306,7 +306,7 @@ public class ContentDiskDriver implements DiskInterface, IOCtlInterface
// Default the filesystem to look like an 80Gb sized disk with 90% free space
context.setDiskInformation(new SrvDiskInfo(2560, 64, 512, 2304));
context.setDiskInformation(new SrvDiskInfo(2560000, 64, 512, 2304000));
// Set parameters
@@ -333,28 +333,8 @@ public class ContentDiskDriver implements DiskInterface, IOCtlInterface
}
}
// Load the I/O control handler, if available
// Check if the client side drag and drop appliction has been enabled
try
{
// Load the I/O control handler class
Object ioctlObj = Class.forName("org.alfresco.filesys.server.smb.repo.ContentIOControlHandler").newInstance();
// Verify that the class is an I/O control interface
if ( ioctlObj instanceof IOControlHandler)
{
// Set the I/O control handler, and initialize
m_ioHandler = (IOControlHandler) ioctlObj;
m_ioHandler.initialize( this, cifsHelper, transactionService, nodeService, checkInOutService);
}
// Initialize the drag and drop pseudo application, if the I/O support has been enabled
if ( m_ioHandler != null)
{
ConfigElement dragDropElem = cfg.getChild( "dragAndDrop");
if ( dragDropElem != null)
{
@@ -379,13 +359,24 @@ public class ContentDiskDriver implements DiskInterface, IOCtlInterface
PseudoFile dragDropPseudo = new LocalPseudoFile( pseudoName.getValue(), appFile.getAbsolutePath());
context.setDragAndDropApp( dragDropPseudo);
}
}
}
// Initialize the custom I/O handler
try
{
m_ioHandler = new ContentIOControlHandler();
m_ioHandler.initialize( this, cifsHelper, transactionService, nodeService, checkInOutService);
}
catch (Exception ex)
{
if ( logger.isDebugEnabled())
logger.debug("No I/O control handler available");
// Log the error
logger.error("Failed to initialize I/O control handler", ex);
// Rethrow the exception
throw new DeviceContextException("Failed to initialize I/O control handler");
}
}
// Check if URL link files are enabled