Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
Hi Greg, Thanks a lot for such nice explanation. But I still have the same query lingering... On Mon, Sep 14, 2009 at 9:36 AM, Greg Freemyer wrote: > On Sun, Sep 13, 2009 at 1:49 PM, SandeepKsinha > wrote: >> On Sun, Sep 13, 2009 at 11:08 PM, Manish Katiyar wrote: >>> On Sun, Sep 13, 2009 at

Modules required for booting without initrd

2009-09-13 Thread sky knight
Hi, I want to boot my laptop without initrd, I tried to compile 2.6.30 kernel from debian back port repository, by building ext3 driver into kernel but during booting i am getting "vfs: could not mount root fs unkown-block(8,1)". My menu.lst: title   Debian GNU/Linux, kernel 2.6.30-130

Re: Linux Podcast: http://www.linuxreality.com/archives.php

2009-09-13 Thread Adam Jiang
Hello, Peter and all There is also another resource about Linux podcast. Linux Journal Podcast: http://podcast.com/show/55601/ There are a lot of episode for beginners. Enjoy yourself. On Sat, Sep 12, 2009 at 1:18 AM, Peter Teoh wrote: > Just sharing some podcasting: > > > http://www.linuxre

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread Greg Freemyer
On Sun, Sep 13, 2009 at 1:49 PM, SandeepKsinha wrote: > On Sun, Sep 13, 2009 at 11:08 PM, Manish Katiyar wrote: >> On Sun, Sep 13, 2009 at 10:12 PM, SandeepKsinha >> wrote: >>> Hi, >>> >>> >>> On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar wrote: On Sun, Sep 13, 2009 at 5:44 PM, Sandeep

Re: e4defrag: file extent map : redundant loop???

2009-09-13 Thread Akira Fujita
Hi, Manish Katiyar wrote: > On Sun, Sep 13, 2009 at 5:26 PM, SandeepKsinha wrote: >> Hi all, >> >> Here is a code snippet from e4defrag.c, can be located @ >> http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob_plain;f=misc/e4defrag.c;hb=next >> >> >> /* >> * get_file_extents() - Get file's ext

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread Manish Katiyar
On Sun, Sep 13, 2009 at 10:12 PM, SandeepKsinha wrote: > Hi, > > > On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar wrote: >> On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha >> wrote: >>> Hi all, >>> >>> Looking at the flags in the extent info,  Is there any specifc flags >>> which indicates an

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
On Sun, Sep 13, 2009 at 11:08 PM, Manish Katiyar wrote: > On Sun, Sep 13, 2009 at 10:12 PM, SandeepKsinha > wrote: >> Hi, >> >> >> On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar wrote: >>> On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha >>> wrote: Hi all, Looking at the flags

Re: e4defrag: file extent map : redundant loop???

2009-09-13 Thread Manish Katiyar
On Sun, Sep 13, 2009 at 5:26 PM, SandeepKsinha wrote: > Hi all, > > Here is a code snippet from e4defrag.c, can be located @ > http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob_plain;f=misc/e4defrag.c;hb=next > > > /* >  * get_file_extents() - Get file's extent list. >  * >  * @fd:            

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread Manish Katiyar
On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha wrote: > Hi all, > > Looking at the flags in the extent info,  Is there any specifc flags > which indicates an extent to be a HOLE?? I am not sure if I understand the question correctly .. why would you need that ? Can you give an example where i

Re: ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
Hi, On Sun, Sep 13, 2009 at 10:07 PM, Manish Katiyar wrote: > On Sun, Sep 13, 2009 at 5:44 PM, SandeepKsinha > wrote: >> Hi all, >> >> Looking at the flags in the extent info,  Is there any specifc flags >> which indicates an extent to be a HOLE?? > > I am not sure if I understand the question

PCI Issues

2009-09-13 Thread Mena Soliko
Hello, 1. Can several drivers can handle the same PCI device? 2. How can I know which driver currently handles my PCI devices? (lsmod show few drivers that can show a few candidate but I want to know the actual driver that register to that PCI). Regards, Mena

Re: spinlocks and copy_to_user()

2009-09-13 Thread Daniel Baluta
Hi, On Sun, Sep 13, 2009 at 3:53 PM, Mark Ryden wrote: > Hello, > > I have a question about spinlocks and copy_to_user(): > copy_to_user() can sleep > so it should not be called when a spin_lock is held. > > However, I have data (a structure, not atomic variable) which can be > changed in interru

spinlocks and copy_to_user()

2009-09-13 Thread Mark Ryden
Hello, I have a question about spinlocks and copy_to_user(): copy_to_user() can sleep so it should not be called when a spin_lock is held. However, I have data (a structure, not atomic variable) which can be changed in interrupt context in my module; so this data is protected by spinlocks. I us

e4defrag: file extent map : redundant loop???

2009-09-13 Thread SandeepKsinha
Hi all, Here is a code snippet from e4defrag.c, can be located @ http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob_plain;f=misc/e4defrag.c;hb=next /* * get_file_extents() - Get file's extent list. * * @fd: defrag target file's descriptor. * @ext_list_head: the head o

ext4 extents: How to determine if an extent points to a hole.

2009-09-13 Thread SandeepKsinha
Hi all, Looking at the flags in the extent info, Is there any specifc flags which indicates an extent to be a HOLE?? I could only find the following ones... 39#define FIEMAP_MAX_OFFSET (~0ULL) 40 41#define FIEMAP_FLAG_SYNC0x0001 /* sync file data before map */ 42#defin