Leopard stumbles over file transfers

A flaw has been identified in the way Apple's operating system Leopard moves files between storage volumes which deletes the source file if the transfer is disrupted.

Tom Karpik, a computer science student at the British Columbia Institute of Technology, says he has identified a bug in Leopard that can cause data loss at the source file while moving files to another hard drive.

If the source of the files crash or is disconnected from the network while the move is under way, the contents of the file completely disappear from the source machine, leaving the user with only with the files already copied to the destination machine.

The problem is related specifically to moving files -- as opposed to copying them -- which is considered a risky method of transporting files since the user acknowledges they want that file deleted from the source machine once the operation is completed. The default setting in Leopard also is to "copy" the file from source to destination when the icon is dragged across the screen -- bypassing the default requires a user to hold down the Command key while dragging the icon.

Commenters on Karpik's blog, Slashdot, and others like Daring Fireball's John Gruber point out that users are asking for trouble if they opt to "move" files rather than copy them -- if the user wants the file deleted from the source machine, they should manually delete it after the transfer is complete.

But Karpik's point is that Leopard should not delete the source data until it has verified that the transfer was successfully completed.

"Windows behaves differently in that it never deletes the source unless everything has been completely copied to the destination. This is just sane, to-be-expected behaviour," he wrote in an e-mail in response to asking for clarification on a couple of his findings.

The problem may not just be isolated to Leopard however. Some commenters on Karpik's blog said this issue has existed since Panther (Mac OS X 10.3).

ZDNet Australia's sister site CNet News has contacted Apple to ask if it had identified this as a bug or problem, however Apple is yet to respond.

Advertisement

Talkback 5 comments

    Mountains over MolehillsAnonymous -- 07/11/07

    Isure does seem like there's a lot of piling on going on with Apple's new Leopard. I just wonder if some of this isn't of Microsoft's orchestrating, considering the pounding their latest OS, Vista has taken. Something to consider, eh?

    Mountains over MolehillsAnonymous -- 07/11/07 (in reply to #320089288)

    I heard it was them thar Martians, even one of 'em being a coder ... more to consider eh oh?

    The article is too kindAnonymous -- 07/11/07 (in reply to #320089288)

    You're quite wrong.

    far from being a case of "piling on", the original CNet news story above is actually *too kind*

    Gruber misses the point -- as always.

    You could copy and then delete the original file manually (after checking the copy has been done successfully, of course). But the point is that the file systen APIs *should* do this for you in the form of a "move" command.

    Unix doesn't behave how the Finder does, as you'll find if you experiment at the Mac's command line.

    This one is bad, and Mac users shouldn't be ignorantly defending the company for this blunder but should be getting hopping mad. I know I am.

    Here's a full technical explanation:

    http://rixstep.com/1/1/20071106,00.shtml

    lost a file today with leopard with a simple Save!Anonymous -- 07/11/07

    Using leopard today I opened a file on another disk on the network, made a change, and saved it. When I tried to open the file again it was completely empty!! I lost 3 weeks of work!!

    Can't believe Apple let such a bug slip through on a final version.

    uber geeks!Anonymous -- 08/11/07

    I don't think in my whole IT life I have ever moved a document on my Mac. I always copy and then get rid of the source. This has Microsoft written all over it. Mac's rock and so does leopard. I have never enjoyed an upgrade more in all my life.

Add your opinion


Latest Videos

Blogs

  • David Braue Will Rudd's bush backhaul bonanza deliver?
    Rural areas will be welcoming the government's decision to put its money where its politicising is, funnelling $250m into a regional fibre upgrade to six rural centres. Remedying over a decade of near-neglect at the hands of telecoms privatisation, the investment could be the firmest step yet for Labor's NBN dream — but with inevitable political questions and a looming election, Rudd and Conroy need to deliver, and quickly, to preserve the NBN's credibility.
  • Array Doing for AV what VoIP did for telephony
    Sydney-based start-up Audinate is making traditional analog cabling obsolete in favour of TCP/IP-based networking technology. And it's doing a pretty good job so far, with its technology used by World Youth Day and the Sydney Opera House.
  • Array WiMax in Australia: Part two
    WiMax could be the standard that drives the next phase of mobile broadband, it provides an opportunity for players wanting to establish a pure IP network to carry voice and data effectively — but is this what operators want?
  • More blogs »

Tags

Back to top

Featured