Skip to content

Commit 7a056ef

Browse files
committed
Increase the maximum size of vhd from 1TB to 4TB.
1 parent acb00b9 commit 7a056ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceManagement/Compute/Sync/Upload/BlobCreatorBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface ICloudPageBlobObjectFactory
3939

4040
public abstract class BlobCreatorBase
4141
{
42-
private const long OneTeraByte = 1024L * 1024L * 1024L * 1024L;
42+
private const long FourTeraByte = 4 * 1024L * 1024L * 1024L * 1024L;
4343

4444
protected FileInfo localVhd;
4545
protected readonly ICloudPageBlobObjectFactory blobObjectFactory;
@@ -96,10 +96,10 @@ private static void AssertIfValidVhdSize(FileInfo fileInfo)
9696
{
9797
using (var stream = new VirtualDiskStream(fileInfo.FullName))
9898
{
99-
if (stream.Length > OneTeraByte)
99+
if (stream.Length > FourTeraByte)
100100
{
101101
var lengthString = stream.Length.ToString("N0", CultureInfo.CurrentCulture);
102-
var expectedLengthString = OneTeraByte.ToString("N0", CultureInfo.CurrentCulture);
102+
var expectedLengthString = FourTeraByte.ToString("N0", CultureInfo.CurrentCulture);
103103
string message = String.Format("VHD size is too large ('{0}'), maximum allowed size is '{1}'.", lengthString, expectedLengthString);
104104
throw new InvalidOperationException(message);
105105
}

0 commit comments

Comments
 (0)