Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public class JavaNIODeviceContext extends DiskDeviceContext {
// Large file size, require special processing for deletes/truncates
private long m_largeFileSize = DefaultLargeFileSize;

// Whether the underlying file system can be assumed to be case-insensitive
private boolean m_caseInsensitiveDisk = false;

/**
* Class constructor
*
Expand Down Expand Up @@ -144,6 +147,10 @@ else if ( m_trashDir.isFile())
m_trashDir = trashDir;
}

// Check if we can assume a case-insensitive file system
if (args.getChild("DiskIsCaseInsensitive") != null)
m_caseInsensitiveDisk = true;

// Check if debug output is enabled
if ( args.getChild( "Debug") != null)
setDebug( true);
Expand Down Expand Up @@ -195,4 +202,14 @@ protected final File getTrashFolder() {
protected final long getLargeFileSize() {
return m_largeFileSize;
}

/**
* Whether the underlying disk is assumed to be case-insensitive, allowing
* certain performance optimizations to be made
*
* @return boolean
*/
protected final boolean getDiskIsCaseInsensitive() {
return m_caseInsensitiveDisk;
}
}
Loading