linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* getting buffer of inode
@ 2003-02-20  4:54 anil  vijarnia
  2003-02-21 19:25 ` Bryan Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: anil  vijarnia @ 2003-02-20  4:54 UTC (permalink / raw)
  To: linux-fsdevel

hi everybody!
i'm trying to implement journaling in vfat (like in ext3).if i 
have an inode structure how can i get the struct buffer_head 
containing this inode structure.in ext2 the union in inode 
structure conatins pointer to buffer,but there's no such pointer 
in fat superblock.
can anyone please tell how to get buffer of this inode 
structure.\

regards
vujarnia



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

* Re: getting buffer of inode
  2003-02-20  4:54 getting buffer of inode anil  vijarnia
@ 2003-02-21 19:25 ` Bryan Henderson
  2003-02-22 18:49   ` David Chow
  0 siblings, 1 reply; 3+ messages in thread
From: Bryan Henderson @ 2003-02-21 19:25 UTC (permalink / raw)
  To: anil vijarnia; +Cc: linux-fsdevel





>i'm trying to implement journaling in vfat (like in ext3).if i
>have an inode structure how can i get the struct buffer_head
>containing this inode structure.in ext2 the union in inode
>structure conatins pointer to buffer,but there's no such pointer
>in fat superblock.
>can anyone please tell how to get buffer of this inode
>structure.

Since it's been a day and no one has responded, let me try to respond by
saying I can't figure out what you're asking.

Inodes don't have buffers that I know of.  I don't find any union in the
ext2 inode structure that contains a pointer to something I would call a
buffer.  I assume a buffer_head is a buffer head (struct buf), but I've
never heard of a buffer head containing an inode structure.


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

* Re: getting buffer of inode
  2003-02-21 19:25 ` Bryan Henderson
@ 2003-02-22 18:49   ` David Chow
  0 siblings, 0 replies; 3+ messages in thread
From: David Chow @ 2003-02-22 18:49 UTC (permalink / raw)
  To: Bryan Henderson; +Cc: anil vijarnia, linux-fsdevel


Bryan Henderson wrote:

>
>
>  
>
>>i'm trying to implement journaling in vfat (like in ext3).if i
>>have an inode structure how can i get the struct buffer_head
>>containing this inode structure.in ext2 the union in inode
>>structure conatins pointer to buffer,but there's no such pointer
>>in fat superblock.
>>can anyone please tell how to get buffer of this inode
>>structure.
>>    
>>
>
>Since it's been a day and no one has responded, let me try to respond by
>saying I can't figure out what you're asking.
>
>Inodes don't have buffers that I know of.  I don't find any union in the
>ext2 inode structure that contains a pointer to something I would call a
>buffer.  I assume a buffer_head is a buffer head (struct buf), but I've
>never heard of a buffer head containing an inode structure.
>
No, I know what this man is asking. He probably new to buffer_head 
operations and looked into the ext2 code. The union he refers to the 
fs.h struct inode unions of all the fses. Of course, eventually 
everything that read/write to block devices via buffer cache gets into 
the buffer_heads. This is rather fs specific questions, many be some 
hints on fs specific data (the union stuff in struct inode in fs.h). I 
think this question really need to be answered by some vfat gurus as 
they know about the on disk structure of the file system such that this 
man can read that buffer properly from buffer cache.

One thing must be clear is that the struct inode in the dcache is 
handled by VFS , although it is physically (on disk) describing some 
inode structures. However, the struct inode is generated via the iget() 
interface and fs specific driver fill in the blanks themselves. Hope 
this give you some direction.

regards,
David Chow


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

end of thread, other threads:[~2003-02-22 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-20  4:54 getting buffer of inode anil  vijarnia
2003-02-21 19:25 ` Bryan Henderson
2003-02-22 18:49   ` David Chow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).