Getting the free space available under a certain directory

There is a useful function called GetDiskFreeSpaceEx( ). The GetDiskFreeSpaceEx function retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread….

2

More VSHADOW stuff: how to backup Exchange, SQL, NTFS

While researching for the previous post, I just started a few searches for VSHADOW on the internet, and I found more interesting usages of it. One example: EqualLogic published a nice technical report of using VSHADOW to backup/restore Exchange, SQL and NTFS. Here is the link: http://www.equallogic.com/docs/tr-ms-vshadow.pdf Just to bring you up to speed: VSHADOW…

3

Fast backup of Virtual Server images (using VSHADOW)

Jeff Trumbull published a very nice script on how to backup a Virtual Server image wiht about one minute of downtime! The solution uses VSHADOW.EXE, a small command-line utility that can be used to create shadow copies. VSHADOW is part of the VSS SDK  


The VDS API is now public on MSDN

The VDS API is now live on MSDN!    What is it? VDS offers a COM-based API for volume, disk and LUN management in Windows Server 2003. In Windows Server 2003 R2, we also have additional integration with iSCSI targets and MPIO. For example, you can use it to add a drive letter to a LUN. P.S. The…

3

How to do atomic writes in a file

Let’s assume that you want is to write some simple code that writes to a text file. A few assumptions:1) You need avoid corruptions of any kind. 2) Either all of your writes have to make it to the disk, or none of them. 3) The file is updated serially – no concurrent updates from separate processes are allowed. So…

3

SSE – an RSS extension for two-way synchronization

Ray Ozzie mentioned an interesting variation of the RSS protocol. RSS is essentially a one-way synchronization protocol. What it would take to change the RSS standard in a very minimal way, such that it will work for two-way replication. A simple idea, with very deep implications. The new RSS is now called SSE: Simple Sharing Extensions. You…


…but, in Soviet Russia, the web services use YOU!

Actually, in US too. No, I’m serious! The technique it’s called Mechanical Turk, and its first form is developed by Amazon.com. The process is quite simple:1) A large number of humans are going to that site.2) They will be asked to do some work.3) After completion, they will get paid in their Amazon.com account. Web services can “use you” in this…


Singularity – a new research OS from Microsoft

Here it is: http://research.microsoft.com/os/singularity/ There are several interesting ideas in this new operating system. It’s not just an “OS written in managed code”. There are a new set of techniques in modern software development: contracts, verifiability and static analysis. Singularity combines them in an elegant framework, and applies these notions in the operating system development….

3

DOSDEV.EXE – a misterious tool

Once in a while, you might encounter this tool in some Microsoft-provided SDKs, or Resource Kits, for example in the Windows Resource Kit, the Exchange Report Toolkit, and others. But this tool never came with any relevant documentation. It just displays the following cryptic help message:    DOSDEV [-a] [-s] [-h] [[-r] [-d [-e]] DeviceName [TargetPath]] What’s…

4