Messages in this thread | | | Date | Sat, 20 Mar 2004 14:23:52 -0800 (PST) | From | "Michael W. Shaffer" <> | Subject | Re: Kernel 2.6.4 Hang in utime() on swap file |
| |
> ho hum. We do this to prevent anyone from ftruncate()ing the swapfile > while it is in use. That can destroy filesystems. Let me think about > it a bit.
If it's a 'feature' and we just need to know to exclude swapfiles from backups (since they don't need to be backed up anyway), then that's an acceptable workaround, I just wanted to make sure that it wasn't buggy behavior.
It is especially baffling because it leaves mysteriously un-killable processes (not even kill -9 will get them, but I guess you know that already). I don't know the internals behind this, but is there a non- hideous way to have utime() return an error in this case rather than entering this unkillable sleep or whatever? That might be a little nicer since applications trying to do this would presumably handle the error and proceed or exit rather than hanging infinitely with no obvious way to free them.
Thanks for explaining what's going on anyway.
__________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |