All of lore.kernel.org
 help / color / mirror / Atom feed
* Inodes
@ 2001-05-14  6:56 Blesson Paul
  2001-05-14  7:01 ` Inodes J Sloan
  2001-05-14 19:57 ` Inodes Albert D. Cahalan
  0 siblings, 2 replies; 4+ messages in thread
From: Blesson Paul @ 2001-05-14  6:56 UTC (permalink / raw)
  To: linux-kernel

Hi
                    This is an another doubt related to VFS. I want to know
wheather all files are assigned their inode number at the mounting time itself
or inodes are assigned to files upon accessing only

Thanks in advance
                       by
                            Blesson

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inodes
  2001-05-14  6:56 Inodes Blesson Paul
@ 2001-05-14  7:01 ` J Sloan
  2001-05-14 19:57 ` Inodes Albert D. Cahalan
  1 sibling, 0 replies; 4+ messages in thread
From: J Sloan @ 2001-05-14  7:01 UTC (permalink / raw)
  To: Blesson Paul; +Cc: linux-kernel

Blesson Paul wrote:

> Hi
>                     This is an another doubt related to VFS. I want to know
> wheather all files are assigned their inode number at the mounting time itself
> or inodes are assigned to files upon accessing only

er..

inode numbers are assigned at file creation time.

cu

jjs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inodes
  2001-05-14  6:56 Inodes Blesson Paul
  2001-05-14  7:01 ` Inodes J Sloan
@ 2001-05-14 19:57 ` Albert D. Cahalan
  2001-05-15 21:20   ` Inodes Jan Hudec
  1 sibling, 1 reply; 4+ messages in thread
From: Albert D. Cahalan @ 2001-05-14 19:57 UTC (permalink / raw)
  To: Blesson Paul; +Cc: linux-kernel

Blesson Paul writes:

> This is an another doubt related to VFS. I want to know
> wheather all files are assigned their inode number at the
> mounting time itself or inodes are assigned to files upon
> accessing only

That would depend on what type of filesystem you use.
For ext2, inode numbers are assigned at file creation.
For vfat, inode numbers are assigned as needed, and
forgotten when not needed.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inodes
  2001-05-14 19:57 ` Inodes Albert D. Cahalan
@ 2001-05-15 21:20   ` Jan Hudec
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Hudec @ 2001-05-15 21:20 UTC (permalink / raw)
  To: linux-kernel

> Blesson Paul writes:
> 
> > This is an another doubt related to VFS. I want to know
> > wheather all files are assigned their inode number at the
> > mounting time itself or inodes are assigned to files upon
> > accessing only
> 
> That would depend on what type of filesystem you use.
> For ext2, inode numbers are assigned at file creation.
> For vfat, inode numbers are assigned as needed, and
> forgotten when not needed.

I think using pointers to inode structures as inode numbers might be
an optimal solution. Since inode structure is long, it can even be
shifted few bits left if some special numbers are needed. Uniqueness
check should be added for 64-bit platforms, but it should work without
(kernel memory is not large enough for the nuber to wrap).

Bulb

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-15 21:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-14  6:56 Inodes Blesson Paul
2001-05-14  7:01 ` Inodes J Sloan
2001-05-14 19:57 ` Inodes Albert D. Cahalan
2001-05-15 21:20   ` Inodes Jan Hudec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.