mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V1.3 to HEAD (3021:3026)
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3021 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3026 . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3338 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,24 +40,24 @@ class FindInfoPacker
|
||||
|
||||
// File information levels
|
||||
|
||||
public static final int InfoStandard = 1;
|
||||
public static final int InfoQueryEASize = 2;
|
||||
public static final int InfoQueryEAFromList = 3;
|
||||
public static final int InfoDirectory = 0x101;
|
||||
public static final int InfoFullDirectory = 0x102;
|
||||
public static final int InfoNames = 0x103;
|
||||
public static final int InfoDirectoryBoth = 0x104;
|
||||
public static final int InfoMacHfsInfo = 0x302;
|
||||
public static final int InfoStandard = 1;
|
||||
public static final int InfoQueryEASize = 2;
|
||||
public static final int InfoQueryEAFromList = 3;
|
||||
public static final int InfoDirectory = 0x101;
|
||||
public static final int InfoFullDirectory = 0x102;
|
||||
public static final int InfoNames = 0x103;
|
||||
public static final int InfoDirectoryBoth = 0x104;
|
||||
public static final int InfoMacHfsInfo = 0x302;
|
||||
|
||||
// File information fixed lengths, includes nulls on strings.
|
||||
|
||||
public static final int InfoStandardLen = 24;
|
||||
public static final int InfoQueryEASizeLen = 28;
|
||||
public static final int InfoDirectoryLen = 64;
|
||||
public static final int InfoFullDirectoryLen = 68;
|
||||
public static final int InfoNamesLen = 12;
|
||||
public static final int InfoDirectoryBothLen = 94;
|
||||
public static final int InfoMacHfsLen = 120;
|
||||
public static final int InfoStandardLen = 24;
|
||||
public static final int InfoQueryEASizeLen = 28;
|
||||
public static final int InfoDirectoryLen = 64;
|
||||
public static final int InfoFullDirectoryLen = 68;
|
||||
public static final int InfoNamesLen = 12;
|
||||
public static final int InfoDirectoryBothLen = 94;
|
||||
public static final int InfoMacHfsLen = 120;
|
||||
|
||||
/**
|
||||
* Pack a file information object into the specified buffer, using information level 1 format.
|
||||
@@ -426,7 +426,7 @@ class FindInfoPacker
|
||||
|
||||
// Align the buffer pointer and set the offset to the next file information entry
|
||||
|
||||
buf.longwordAlign();
|
||||
buf.wordAlign();
|
||||
|
||||
int curPos = buf.getPosition();
|
||||
buf.setPosition(startPos);
|
||||
@@ -518,7 +518,7 @@ class FindInfoPacker
|
||||
|
||||
// Align the buffer pointer and set the offset to the next file information entry
|
||||
|
||||
buf.longwordAlign();
|
||||
buf.wordAlign();
|
||||
|
||||
int curPos = buf.getPosition();
|
||||
buf.setPosition(startPos);
|
||||
@@ -615,7 +615,7 @@ class FindInfoPacker
|
||||
|
||||
// Align the buffer pointer and set the offset to the next file information entry
|
||||
|
||||
buf.longwordAlign();
|
||||
buf.wordAlign();
|
||||
|
||||
int curPos = buf.getPosition();
|
||||
buf.setPosition(startPos);
|
||||
@@ -718,7 +718,7 @@ class FindInfoPacker
|
||||
|
||||
// Align the buffer pointer and set the offset to the next file information entry
|
||||
|
||||
buf.longwordAlign();
|
||||
buf.wordAlign();
|
||||
|
||||
int curPos = buf.getPosition();
|
||||
buf.setPosition(startPos);
|
||||
@@ -839,7 +839,7 @@ class FindInfoPacker
|
||||
|
||||
// Align the buffer pointer and set the offset to the next file information entry
|
||||
|
||||
buf.longwordAlign();
|
||||
buf.wordAlign();
|
||||
|
||||
int curPos = buf.getPosition();
|
||||
buf.setPosition(startPos);
|
||||
|
@@ -78,7 +78,7 @@ public class SMBServer extends NetworkFileServer implements Runnable
|
||||
|
||||
// Server type flags, used when announcing the host
|
||||
|
||||
private int m_srvType = ServerType.WorkStation + ServerType.Server;
|
||||
private int m_srvType = ServerType.WorkStation + ServerType.Server + ServerType.NTServer;
|
||||
|
||||
// Next available session id
|
||||
|
||||
|
@@ -1344,7 +1344,7 @@ public class SMBSrvSession extends SrvSession implements Runnable
|
||||
|
||||
// We are using case sensitive pathnames and long file names
|
||||
|
||||
setDefaultFlags(SMBSrvPacket.FLG_CASELESS);
|
||||
setDefaultFlags(0);
|
||||
setDefaultFlags2(SMBSrvPacket.FLG2_LONGFILENAMES + SMBSrvPacket.FLG2_UNICODE);
|
||||
|
||||
// Access the authenticator for this server and determine if the server is in share or
|
||||
|
@@ -311,7 +311,8 @@ public class ContentDiskDriver implements DiskInterface, IOCtlInterface
|
||||
|
||||
// Set parameters
|
||||
|
||||
context.setFilesystemAttributes(FileSystem.CasePreservedNames);
|
||||
context.setFilesystemAttributes(FileSystem.CasePreservedNames + FileSystem.UnicodeOnDisk +
|
||||
FileSystem.CaseSensitiveSearch);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1468,15 +1469,6 @@ public class ContentDiskDriver implements DiskInterface, IOCtlInterface
|
||||
" node: " + nodeRef);
|
||||
}
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
// already gone
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Deleted file <alfready gone>: \n" +
|
||||
" file: " + name);
|
||||
}
|
||||
}
|
||||
catch (NodeLockedException ex)
|
||||
{
|
||||
// Debug
|
||||
|
Reference in New Issue
Block a user