Re: Inodes

2001-05-15 Thread Jan Hudec
> 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

Re: Inodes

2001-05-15 Thread Jan Hudec
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

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Alexander Viro wrote: > > On Mon, 14 May 2001, H. Peter Anvin wrote: > > > Correct. At least at one time it used the offset of the directory entry > > when that particular inode was last "seen" by the kernel... meaning that > > when it finally dropped out of the inode cache, it would change

Re: [Re: Inodes]

2001-05-14 Thread Alexander Viro
On Mon, 14 May 2001, H. Peter Anvin wrote: > Correct. At least at one time it used the offset of the directory entry > when that particular inode was last "seen" by the kernel... meaning that > when it finally dropped out of the inode cache, it would change inode > numbers. I thought that

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Alexander Viro wrote: > > On Mon, 14 May 2001, Andreas Dilger wrote: > > > Just to clarify, this means that the "inode numbers" reported by an > > msdos filesystem are a function of the disk-layout itself (i.e. they > > are determined at mount time), and not numbers created when the file > > is

Re: [Re: Inodes]

2001-05-14 Thread Alexander Viro
On Mon, 14 May 2001, Andreas Dilger wrote: > Just to clarify, this means that the "inode numbers" reported by an > msdos filesystem are a function of the disk-layout itself (i.e. they > are determined at mount time), and not numbers created when the file > is first accessed (AFAIK). Wrong.

Re: [Re: Inodes]

2001-05-14 Thread Andreas Dilger
HPA writes: > Blesson Paul <[EMAIL PROTECTED]> writes: > > You misunderstood my question. Let take an example. Let I have a msdos > > partition. No msdos files has inode numbers, right. Let I mount that > > msdos partition. Then what happens, That is my question. Will the > > inode numbers are

Re: Inodes

2001-05-14 Thread Albert D. Cahalan
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

Re: [Re: Inodes]

2001-05-14 Thread Alan Cox
> The inode numbers are "invented" by the MS-DOS filesystem driver. In > the particular case of the "msdos" driver I believe it uses the > location of the directory entry (the functional equivalent of the > inode) on disk. They are generated basically at random with a uniqueness test and may

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:Blesson Paul <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > Hi J > You misunderstood my question. Let take an example. > Let I have a msdos partition. No msdos files has inode numbers, right. Let I > mount that msdos

Re: [Re: Inodes]

2001-05-14 Thread Blesson Paul
Hi J You misunderstood my question. Let take an example. Let I have a msdos partition. No msdos files has inode numbers, right. Let I mount that msdos partition. Then what happens, That is my question. Will the inode numbers are assigned to all msdos files at mounting time

Re: Inodes

2001-05-14 Thread J Sloan
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.

Re: Inodes

2001-05-14 Thread J Sloan
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

Re: [Re: Inodes]

2001-05-14 Thread Blesson Paul
Hi J You misunderstood my question. Let take an example. Let I have a msdos partition. No msdos files has inode numbers, right. Let I mount that msdos partition. Then what happens, That is my question. Will the inode numbers are assigned to all msdos files at mounting time

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Followup to: [EMAIL PROTECTED] By author:Blesson Paul [EMAIL PROTECTED] In newsgroup: linux.dev.kernel Hi J You misunderstood my question. Let take an example. Let I have a msdos partition. No msdos files has inode numbers, right. Let I mount that msdos partition. Then

Re: [Re: Inodes]

2001-05-14 Thread Alan Cox
The inode numbers are invented by the MS-DOS filesystem driver. In the particular case of the msdos driver I believe it uses the location of the directory entry (the functional equivalent of the inode) on disk. They are generated basically at random with a uniqueness test and may change

Re: [Re: Inodes]

2001-05-14 Thread Andreas Dilger
HPA writes: Blesson Paul [EMAIL PROTECTED] writes: You misunderstood my question. Let take an example. Let I have a msdos partition. No msdos files has inode numbers, right. Let I mount that msdos partition. Then what happens, That is my question. Will the inode numbers are assigned to

Re: [Re: Inodes]

2001-05-14 Thread Alexander Viro
On Mon, 14 May 2001, Andreas Dilger wrote: Just to clarify, this means that the inode numbers reported by an msdos filesystem are a function of the disk-layout itself (i.e. they are determined at mount time), and not numbers created when the file is first accessed (AFAIK). Wrong. open

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Alexander Viro wrote: On Mon, 14 May 2001, Andreas Dilger wrote: Just to clarify, this means that the inode numbers reported by an msdos filesystem are a function of the disk-layout itself (i.e. they are determined at mount time), and not numbers created when the file is first

Re: [Re: Inodes]

2001-05-14 Thread Alexander Viro
On Mon, 14 May 2001, H. Peter Anvin wrote: Correct. At least at one time it used the offset of the directory entry when that particular inode was last seen by the kernel... meaning that when it finally dropped out of the inode cache, it would change inode numbers. I thought that was a

Re: [Re: Inodes]

2001-05-14 Thread H. Peter Anvin
Alexander Viro wrote: On Mon, 14 May 2001, H. Peter Anvin wrote: Correct. At least at one time it used the offset of the directory entry when that particular inode was last seen by the kernel... meaning that when it finally dropped out of the inode cache, it would change inode