List Info

Thread: note 74560 added to function.ftok




note 74560 added to function.ftok
user name
2007-04-17 10:08:38
As ftok uses only the last 16 bits of the inode of the file,
you can get collisions on large filesystems. Unfortunately,
on large filesystems you can get collisions rather quickly:
if you have a collection of 350-400 files, odds are that two
of them have inodes with the same last 16 bits. So I've
taken to using fileinode instead of ftok with functions like
shmop_open.
----
Server IP: 83.137.20.120
Probable Submitter: 2001:888:10:58c::2
----
Manual Page -- http:/
/www.php.net/manual/en/function.ftok.php
Edit        -- https://master
.php.net/note/edit/74560
Del: integrated  -- h
ttps://master.php.net/note/delete/74560/integrated
Del: useless     -- http
s://master.php.net/note/delete/74560/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/74560/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/74560/spam
Del: non-english -- 
https://master.php.net/note/delete/74560/non-english
Del: in docs     -- http
s://master.php.net/note/delete/74560/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/74560
Reject      -- https://mast
er.php.net/note/reject/74560
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )