Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ftok()-related] May 'st.st_dev of the same file' be changed between reboots on HP-UX?

11 views
Skip to first unread message

Alex Vinokur

unread,
Jan 6, 2012, 9:46:02 AM1/6/12
to
Hi,

st.st_dev of the same file (that wasn't deleted) may be changed between
reboots on Linux.
http://groups.google.com/group/comp.unix.programmer/browse_frm/thread/018671b4d364409f

As a result, the ftok() function on Linux may generate different keys for
the same file (that wasn't deleted) between reboots.
It seems to a bug in design of ftok() on Linux.

Does such a problem exist with ftok() on HP-UX?

Alex





Alex Vinokur

unread,
Jan 8, 2012, 1:55:30 AM1/8/12
to
On Jan 6, 4:46 pm, "Alex Vinokur" <ale...@users.sourceforge.net>
wrote:
> Hi,
>
> st.st_dev of the same file (that wasn't deleted) may be changed between
> reboots on Linux.http://groups.google.com/group/comp.unix.programmer/browse_frm/thread...
>
> As a result, the ftok() function on Linux may generate different keys for
> the same file (that wasn't deleted) between reboots.
> It seems to a bug in design of ftok() on Linux.
>
> Does such a problem exist with ftok() on HP-UX?
>
> Alex

See also
http://h30499.www3.hp.com/t5/Languages-and-Scripting/ftok-related-Can-st-st-dev-of-the-same-file-be-changed-between/td-p/5441073
0 new messages