• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
singular hard links
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

singular hard links


  • Subject: singular hard links
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 3 Oct 2005 01:22:44 +0200

When I do:
touch /tmp/a1
ln /tmp/a1 /tmp/a2
rm /tmp/a2

I get a hard link with a link count (NSFileReferenceCount) of 1.

When I do:
touch //tmp/b1

I get a normal file which also has a link count of 1.

Why should I care? Well, firstly because I am curious, and also:
-[NSDocument writeWithBackupToFile: ofType:saveOperation: NSSaveOperation ] fails for singular hard links.


So I would like to detect this case beforehand.


Kind regards,

Gerriet.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: singular hard links
      • From: Hex Star <email@hidden>
  • Prev by Date: Re: Unnecessary Invocations of outlineView:setObjectValue:forTableColumn:byItem:
  • Next by Date: Re: singular hard links
  • Previous by thread: NSPopUpMenu contentValues not allowing value transformer
  • Next by thread: Re: singular hard links
  • Index(es):
    • Date
    • Thread