You are here

Small nit with locked files

11 posts / 0 new
Last post
duckhead
Offline
Last seen: 14 years 9 months ago
Joined: 2009-02-26 22:23
Small nit with locked files

It looks like the new Toucan (2.1.0) continues to try to process a file that it was unable to open, leading to the following log entries. Also, the log entries on the failed fseek and stat calls make it look like it was successful, which is misleading (thanks Microsoft and your weird WIN32 status codes.) I think in this case that the first error message is enough.

It would also be nice to do something to highlight error messages. I have less than computer savvy people running sync jobs (long story.) and colors or something would make it easier to understand the log files quickly.

duckhead

08:27:13 Starting

Setting up progress bar
08:27:32 can't open file 'G:\test.tc' (error 32: the process cannot access the file because it is being used by another process.)
08:27:32 can't get seek position on file descriptor -1 (error 0: the operation completed successfully.)
08:27:32 can't find length of file on file descriptor -1 (error 0: the operation completed successfully.)
08:27:32 Failed to copy the file 'G:\test.tc' to 'C:\Backups\Thumbdrive\Toucan.tmp' (error 32: the process cannot access the file because it is being used by another process.)

00:10:04 Elapsed
08:37:17 Finished

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
Sure

colouring them is a great idea, I shall get that added for the next release, I shall work on cutting down on the number of error messages too Smile

ruudboek
Offline
Last seen: 14 years 8 months ago
Joined: 2008-03-02 15:50
Or implement VSS support. ;)

Or implement VSS support. Wink

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
I

am fully aware that you would like to see VSS support, and the new sync engine does make much easier to implement and it is on the list.

ruudboek
Offline
Last seen: 14 years 8 months ago
Joined: 2008-03-02 15:50
Oh it's great to hear that

Oh it's great to hear that there is progress with vss, i'm so looking forward to vss support.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
If

you want to speed it up finding a good tutorial on using it would be great Wink

ruudboek
Offline
Last seen: 14 years 8 months ago
Joined: 2008-03-02 15:50
For what programming language

For what programming language do you need info about VSS?

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
Just

a little example for c++ on how to copy an in use file, all of the examples I can find are about creating a provider or seem so complicated I can'y even find the relevant pieces!

ruudboek
Offline
Last seen: 14 years 8 months ago
Joined: 2008-03-02 15:50
Maybe the application

Maybe the application Hobocopy is a good example for you.
It is written in C++ and you can download the source here:
http://sourceforge.net/project/showfiles.php?group_id=117783&package_id=...

Homepage of Hobocopy:
http://alt.pluralsight.com/wiki/default.aspx/Craig/HoboCopy.html

What you could also do, is use WMI to access the VSS functionality.
According to this post WMI is a rather easy method:
http://blogs.msdn.com/charles_sterling/archive/2005/01/02/345421.aspx

More info about VSS WMI classes:
http://msdn.microsoft.com/en-us/library/aa394426(VS.85).aspx

Maybe that helps?

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
Thanks

for the links, the are very helpful, WMI does look to be the easiest way, although I shall take a dig into the Hobocopy source too to see how they do it Smile I hope to get this added (finally) in the release after next!

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2005-12-10 15:22
No

longer on the todo list I am afraid, see here.

Log in or register to post comments