Re: ext3 structure mapping to block device

2009-08-16 Thread ajit mote
On Mon, Aug 17, 2009 at 11:38 AM, Manish Katiyar wrote: > On Mon, Aug 17, 2009 at 11:06 AM, ajit mote > wrote: > > > > Hello, > > > > I would like to know how file system structures are mapped to hard disk > > sector. > > Each filesystem deals in the granularity of "block size" which is > general

Re: ext3 structure mapping to block device

2009-08-16 Thread SandeepKsinha
Hi Ajit, On Mon, Aug 17, 2009 at 11:06 AM, ajit mote wrote: > > Hello, > > I would like to know how file system structures are mapped to hard disk > sector. My goal is to understand how file system is created on block device > and how superblocks are mapped to hard disk sectors. > http://lxr.li

Re: ext3 structure mapping to block device

2009-08-16 Thread Manish Katiyar
On Mon, Aug 17, 2009 at 11:06 AM, ajit mote wrote: > > Hello, > > I would like to know how file system structures are mapped to hard disk > sector. Each filesystem deals in the granularity of "block size" which is generally configurable (typically 4K) during fs creation time. So each block maps to

ext3 structure mapping to block device

2009-08-16 Thread ajit mote
Hello, I would like to know how file system structures are mapped to hard disk sector. My goal is to understand how file system is created on block device and how superblocks are mapped to hard disk sectors. I am not sure whether I stated the problem precisely or not but if I did not described it

Re: POLL in char drivers

2009-08-16 Thread Chetan Nanda
On Sun, Aug 16, 2009 at 8:23 PM, shankarGanesh wrote: > Chetan Nanda wrote: > >> >> >> On Thu, Aug 13, 2009 at 6:30 PM, Shankar Ganesh >> > shankargane...@gmail.com>> wrote: >> >> >> >>On Thu, Aug 13, 2009 at 5:23 PM, Daniel Baluta >>mailto:daniel.bal...@gmail.com>> wrote: >> >>On

Re: tiny tty driver in ldd3

2009-08-16 Thread Greg KH
On Thu, Aug 13, 2009 at 12:57:49PM -0700, srinivasramana wrote: > > Hi All, > > 1. I am using the tiny tty driver written by Greg long back. Looks like its > too old and hence some compilation issues. Once i resolve that, its giving > BUG on add_timer(i tried in 2.6.28 & 2.6.30). > 2. I have two

Re: POLL in char drivers

2009-08-16 Thread shankarGanesh
Chetan Nanda wrote: On Thu, Aug 13, 2009 at 6:30 PM, Shankar Ganesh mailto:shankargane...@gmail.com>> wrote: On Thu, Aug 13, 2009 at 5:23 PM, Daniel Baluta mailto:daniel.bal...@gmail.com>> wrote: On Thu, Aug 13, 2009 at 2:17 PM, Shankar Ganeshmailto:shankargane...@

Re: some question about open fail on /dev/sda nodes

2009-08-16 Thread Siddu
Resending On Sun, Aug 16, 2009 at 7:38 PM, Siddu wrote: > > > On Sun, Aug 16, 2009 at 3:09 PM, loody wrote: > >> Dear all: >> I try to open /dev/sda1 with system call, open("/dev/sda1", O_RDONLY). >> But each time it will return negative value, that means fail. >> my program is like below: >> (

Re: some question about open fail on /dev/sda nodes

2009-08-16 Thread John Meraj
You can print a human readable string for error using 'strerror' function. see - man strerror man errno -- Thanks, - John On 08/16/2009 04:09 PM, Manish Katiyar wrote: On Sun, Aug 16, 2009 at 3:09 PM, loody wrote: Dear all: I try to open /dev/sda1 with system call, open("/dev/sda1", O_RD

Re: POLL in char drivers

2009-08-16 Thread Chetan Nanda
On Thu, Aug 13, 2009 at 6:30 PM, Shankar Ganesh wrote: > > > On Thu, Aug 13, 2009 at 5:23 PM, Daniel Baluta wrote: > >> On Thu, Aug 13, 2009 at 2:17 PM, Shankar Ganesh >> wrote: >> > Hi , >> > >> > I have a doubt regarding poll function in char driver . Let us consider >> > following code >> > >>

Re: some question about open fail on /dev/sda nodes

2009-08-16 Thread Manish Katiyar
On Sun, Aug 16, 2009 at 3:09 PM, loody wrote: > Dear all: > I try to open /dev/sda1 with system call, open("/dev/sda1", O_RDONLY). > But each time it will return negative value, that means fail. Have you checked for the errno ? I guess it is permission denied. /home/mkatiyar> dd if=/dev/sda1 of=

Re: 32-bit kernel

2009-08-16 Thread SandeepKsinha
Hi Manish, On Sat, Aug 15, 2009 at 9:20 PM, Peter Teoh wrote: > i don't think there is such a thing as 32/64 bit filesystem. > Filesystem type does not need to be linked to the OS's 32/64 bit > architecture. Ie, ext2 or ext3, is the same when mounted in either > filesystem. but the content wi

some question about open fail on /dev/sda nodes

2009-08-16 Thread loody
Dear all: I try to open /dev/sda1 with system call, open("/dev/sda1", O_RDONLY). But each time it will return negative value, that means fail. my program is like below: (gdb) list 1       #include 2       #include 3       int main(void) 4       { 5       int fd=0; 6        fd = open("/dev/sda1", O_