• 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
unlink: invalid argument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unlink: invalid argument


  • Subject: unlink: invalid argument
  • From: Jonas Maebe <email@hidden>
  • Date: Sat, 18 Sep 2004 22:16:21 +0200

Hello,

I have a directory in my home directory which is shared via NFS to several Linux clients. Every now and then, the following happens (bigmac = my machine, sd90mac = a Linux Fedora Core 2 machine):

<<<<<<<<<<<<<<<<<<
bigmac:~ jonas$ cat sd90mac
#!/bin/bash
export DISPLAY=:0
ssh -CX jmaebe@sd90mac

bigmac:~ jonas$ ./sd90mac
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/X11/xauth: unable to link authority file /user/jmaebe/.Xauthority, use /user/jmaebe/.Xauthority-n
jmaebe@SD90MAC:~$
<<<<<<<<<<<<<<<<<<<


(the warning about the fake authentication data is because X11's not running locally currently). I can also not delete the .Xauthority file on my own machine when this happens. The relevant part of the ktrace of "rm .Xauthority":

<<<<<<<<<<<<<<<<<<<
 15104 rm       CALL  getuid
 15104 rm       RET   getuid 213/0xd5
 15104 rm       CALL  ioctl(0,FIODTYPE,0xbffffbe0)
 15104 rm       RET   ioctl 0
 15104 rm       CALL  lstat(0xbffffd8f,0xbffffb80)
 15104 rm       NAMI  ".Xauthority"
 15104 rm       RET   lstat 0
 15104 rm       CALL  access(0xbffffd8f,0x2)
 15104 rm       NAMI  ".Xauthority"
 15104 rm       RET   access 0
 15104 rm       CALL  unlink(0xbffffd8f)
 15104 rm       NAMI  ".Xauthority"
 15104 rm       RET   unlink -1 errno 22 Invalid argument
 15104 rm       CALL  write(0x2,0xbffff2a0,0x4)
 15104 rm       GIO   fd 2 wrote 4 bytes
       "rm: "
 15104 rm       RET   write 4
 15104 rm       CALL  write(0x2,0xbffff2f0,0xb)
 15104 rm       GIO   fd 2 wrote 11 bytes
       ".Xauthority"
 15104 rm       RET   write 11/0xb
 15104 rm       CALL  write(0x2,0x9010791c,0x2)
 15104 rm       GIO   fd 2 wrote 2 bytes
       ": "
 15104 rm       RET   write 2
 15104 rm       CALL  write(0x2,0xbffff300,0x11)
 15104 rm       GIO   fd 2 wrote 17 bytes
       "Invalid argument
       "
<<<<<<<<<<<<<<<<<<<

What I can do to fix this, is to move the file to another directory (either locally or on the linux box, using the "mv" command) and then delete the file without any problems. At the next login, this file is recreated without a problem and it will keep working fine for a while. I only have that problem with that particular file and if I don't fix it, also with the replacement ".Xauthority-n" file after a while.

Now, if this is caused by file system corruption, it happens "consistently", in the sense that I had this problem on my old G4 and also on my new G5 (which have different hard disks). I have no idea what exactly triggers it however (it happens seemingly randomly). I'm running 10.3.5, but it has happened during all incarnations of 10.3. I don't think it happened under 10.2.x, but I'm not sure anymore.

Is there any way to get more details as to what exactly causes unlink to return "invalid argument" for this file?


Jonas

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


  • Prev by Date: Re: Using MIG RPC between 2 threads inside a process
  • Next by Date: Re: Trick to compiling Apple3Com905x?
  • Previous by thread: Re: diskutil createRAID question
  • Next by thread: how to test atomicity?
  • Index(es):
    • Date
    • Thread