Skip to content

Configuration

wodzu edited this page Feb 15, 2017 · 4 revisions

Container Configuration

Any CONTAINERTYPE derived from MigrationContainer can be configured as follows in the app's config:

  <CONTAINERTYPE 
	ContentBufferSize="4096" 
	MaxContainerFileSize="11000000" 
	Filter=".temp,.Temp,.cache,.Cache,.Mail,.settings,.config">
  </CONTAINERTYPE>

Any CONTAINERTYPE configuration requires a dedicated configuration section to be declared:

<section name="CONTAINERTYPE"
type="Pawod.MigrationContainer.Configuration.ContainerConfiguration, Pawod.MigrationContainer" />

Test Data Setup

The commands listed below initialize the test data with NTFS specific features. Else the NTFS containers will not be tested entirely.

Alternate Data Streams

Run following commands in the context of this directory: ~\Project.Test\data\files

echo "randomstreamdata" > "(a,b) Baum Definition.jpg":ads1
type "05. Afternoon Soul.mp3" > "New Text Document.txt":hiddenmusicstream
echo "randomstreamdata" > README.txt:ads1
echo "evenmorerandomstreamdata" > README.txt:ads2
type PacketDotNet-0.13.0.bin.zip > README.txt:ads3

Run following commands in the context of this directory: ~\Project.Test\data\dirs\ads

echo "somealternatestreamdata" > FileStreamAttributes.cs:ads1
echo "evenmorealternatestreamdata" > FileStreamAttributes.cs:ads2
echo "sneaky alternate data stream on directory" > "Compatibility wrapper":stream1

Run following commands in the context of this directory: ~\Project.Test\data\dirs\ads\Compatibility wrapper

type StreamInfo.cs > test.jpg:stream1
type FileStreams.cs > test.jpg:stream2

Junction Points

Run following commands in the context of this directory: ~\Project.Test\data\dirs\complex ntfs

mklink /J linkToL b\h\l
mklink /J b\f\g\linkToB b
mklink /J b\f\g\linkToF b\f
mklink /J b\h\l\n\linkToJ b\h\i\j

WARNING: these junction points may cause the git repository to step into infinite recursion.

echo "somerandomdatastring" > b\c:stream1
type b\c\d\chickens.pdf > b\c\d:chickenstream
type b\c\d\chickens.pdf > b\h\i\j\README.txt:chickenstream
type "b\c\d\SB-900_EU(12)01.pdf" > b\h\i\j\README.txt:sb900stream
type b\c\d\chickens.pdf > b\h\i\k:chickensonfolder

Clone this wiki locally