How to organize any project ?

2010-01-30 Thread Rishi Agrawal
Hello All, Is there a convention we follow while organizing any project ? Like suppose my project name is Hello_World then how should I organize it. What is the best way to do it ? ../projects/hello_world | |__src/ | |__kernel_space/ | |__user_space/ | |__include/ | |__Makefile

Re: FS block size and Architecture Dependency

2009-09-10 Thread Rishi Agrawal
Hello All, On Wed, Sep 9, 2009 at 9:16 AM, Peter Teoh htmldevelo...@gmail.com wrote: Check this: http://lkml.org/lkml/2007/10/4/50 http://lkml.org/lkml/2007/6/20/238 http://lkml.org/lkml/2006/9/8/4 blocksize and pagesize always have to match for optimum performance, so max size for

FS block size and Architecture Dependency

2009-09-04 Thread Rishi Agrawal
Hello All, I found this paragraph while understanding file systems. I assume that you are setting this up with ext3 and hence my answer ties to this. If your filesystem is different, you should say so. Note: *In ext3, an 8K block size on the fs is only possible if you use Itanium and other 8K

Automated Synchronization for pendrives

2009-08-13 Thread Rishi Agrawal
Hello All, I was planning to write a program which will update a folder in my pen drive whenever I insert one. The algo goes like this: -- I insert a pendrive -- The program comes to know that a pen drive has been inserted -- Program asks the user do you want to use this pendrive as a backup

Re: Checking Installed library

2009-07-23 Thread Rishi Agrawal
On Wed, Jul 22, 2009 at 9:41 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 2:37 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Sat, Jul 18, 2009 at 2:25 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 1:45 PM, Rishi Agrawal

Re: compiling user space and kernel space code in single makefile

2009-07-22 Thread Rishi Agrawal
Hello, On Sat, Jul 18, 2009 at 7:22 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Sat, Jul 18, 2009 at 3:26 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: Hello All, I have this particular directory Hierarchy foo | |__ include(directory) | |__kernel(directory)

compiling user space and kernel space code in single makefile

2009-07-18 Thread Rishi Agrawal
Hello All, I have this particular directory Hierarchy foo | |__ include(directory) | |__kernel(directory) | |__user_space(directory) Include directory has the header file which is required by both the kernel space code and the user space code kernel has a character device driver, and a

Re: Checking Installed library

2009-07-18 Thread Rishi Agrawal
Agrawalrishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:40 PM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On 7/17/09, Rishi Agrawal rishi.b.agra...@gmail.com wrote

Re: Checking Installed library

2009-07-18 Thread Rishi Agrawal
On Sat, Jul 18, 2009 at 2:25 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 1:45 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Sat, Jul 18, 2009 at 1:05 PM, Manish Katiyar mkati...@gmail.com wrote: On Sat, Jul 18, 2009 at 9:48 AM, Rishi Agrawal

Re: Checking Installed library

2009-07-17 Thread Rishi Agrawal
On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On 7/17/09, Rishi Agrawal rishi.b.agra...@gmail.com wrote: Is autoconfigure the only way to find this out.?? On Wed, Jul 15, 2009 at 6:52 AM, Pei Lin telent...@gmail.com wrote: Please don't do top posting

Re: Checking Installed library

2009-07-17 Thread Rishi Agrawal
On Fri, Jul 17, 2009 at 7:22 PM, Manish Katiyar mkati...@gmail.com wrote: On Fri, Jul 17, 2009 at 10:34 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:40 PM, Rishi Agrawal rishi.b.agra...@gmail.com wrote: On Fri, Jul 17, 2009 at 12:27 PM, Mulyadi

Re: Checking Installed library

2009-07-16 Thread Rishi Agrawal
/15 Rishi Agrawal rishi.b.agra...@gmail.com: Hello All, I want to check whether a particular library is installed or not using a shell command. I want to write a install script which will first check whether the libraries required to compile my code are available on the system

Checking Installed library

2009-07-14 Thread Rishi Agrawal
Hello All, I want to check whether a particular library is installed or not using a shell command. I want to write a install script which will first check whether the libraries required to compile my code are available on the system or not. something like #check_library libxml2 (on shell) or

Loading modules on every boot

2009-07-14 Thread Rishi Agrawal
Hello All, I have written a character device driver suppose abc.c 1) I want to load the device driver abc.ko on every boot of the system. How can I achieve this ? 2) I want the device /dev/abc_dev to be present whenever the system reboots. The major and minor number should same as that of

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
I changed the parition type back to hpfs/ntfs (07) using the cfdisk utility but even after that it is not working I tried mounting it with -t ntfs but it prints error ntfs signature is missing even changing the FS type using testdisk did not work. There is an option to print files. When I used

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
Sorry for the previous mails I tried a NTFS recovery tool named as 1st NTFS Recovery 3.3.1.0( evaluation Version). It is very good. It took out the whole directory structure correctly. The only problem is that in order to access the files I need to pay for it and I dont want to do that. As

Re: Recovering Partition using linux

2009-02-18 Thread rishi agrawal
On Wed, Feb 18, 2009 at 4:44 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Tue, Feb 17, 2009 at 11:42 PM, rishi agrawal postri...@gmail.com wrote: Hello Everyone, I had a 60 Gb partition of type NTFS. I accidently deleted it. I think it's OOT, please don't do it next time

Recovering Partition using linux

2009-02-17 Thread rishi agrawal
Hello Everyone, I had a 60 Gb partition of type NTFS. I accidently deleted it. I want to recover the whole partition as recovering few files from it is not useful for me Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 =

Sending signals to user space program from kernel space

2009-01-31 Thread rishi agrawal
Hello Everyone, I have a char device which when gets ioctl case 'a' starts a for loop with index ' i '. I want to send the value of index ' i ' to user space whenever ' i ' is even. I want some thing like the kernel space code of char device should send a variable and also a 'signal' that it

Re: Copying Data Blocks

2009-01-06 Thread rishi agrawal
yes i suppose the donor inode is known moreover the receiver inode's number is also known On Tue, Jan 6, 2009 at 6:54 PM, Manish Katiyar mkati...@gmail.com wrote: On Tue, Jan 6, 2009 at 4:06 PM, Rohit Sharma imreckl...@gmail.com wrote: I want to read data blocks from one inode and copy it

Re: ioctl()

2009-01-03 Thread rishi agrawal
If you are new to Kernel Programming then you should go to The Latest version of The Linux Kernel Module Programming Guide just google for it On Sat, Jan 3, 2009 at 3:15 PM, niamathullah sharief sharie...@yahoo.co.inwrote: i know that ioctl() is an system callbut can anyone tell me how it

Core Utils

2008-12-31 Thread rishi agrawal
Hello Everyone, Where can i find the latest source code for coreutils i checked this one tp://ftp.gnu.org/gnu/coreutils/ but is shows the latest released as 6/01/08 is any new version available basically i want the source codes of copy and move -- Regards, Rishi B. Agrawal -- To

Re: Freezing File Systems

2008-12-31 Thread rishi agrawal
I used a kernel module to freeze the file system using the function freeze_bdev but when i am try to use touch command on the file system i am able to create the files. even read requests are served immediately only the write requests are being blocked until i call the thaw function can i

Backup on Shutdown

2008-12-13 Thread rishi agrawal
Hello Everyone, I want to take backup of few folders in my PC everytime I shut down my Fedora 9 How can I do that ?? I do not want to write a shell script called foo.sh and add the commands of taking backup and shutdown to it and execute it every time i want to shutdown my PC I want to add

Backup on Shutdown

2008-12-13 Thread rishi agrawal
Hello Everyone, I want to take backup of few folders in my PC everytime I shut down my Fedora 9 How can I do that ?? I do not want to write a shell script called foo.sh and add the commands of taking backup and shutdown to it and execute it every time i want to shutdown my PC I want to add

use of losetup

2008-10-20 Thread rishi agrawal
Hello Everyone, I would like to know about the use of losetup. By use I want mean that in what all situations will I use losetup. Its okay that it attaches a loop device to any regular file but how do we use this feature. -- Regards, Rishi B. Agrawal -- To unsubscribe from this list: send

Kernel Complilation

2008-09-23 Thread rishi agrawal
Hello Everybody, I recently complied linux kernel 2.6.26.5. I had a Fedora installation. While reading the documents related to kernel compilation I found steps like mkinitrd , changing the menu.lst and update-grub. Without even doing these steps the boot menu is having the entry of the newly

Re: Kernel Complilation

2008-09-23 Thread rishi agrawal
thanks for all the help On Tue, Sep 23, 2008 at 4:07 PM, Mitul Modi [EMAIL PROTECTED] wrote: hi rishi, when you execute make install it will updates the grub entries also. thanks, mitul modi On Tue, Sep 23, 2008 at 3:47 PM, rishi agrawal [EMAIL PROTECTED] wrote: Hello Everybody, I

EXT2 as a module

2008-09-22 Thread rishi agrawal
Hello everybody, I want to add some piece of code in the ext2 file system's code and see the results(just want to add some printk's) My system is using ext3 file system. One method of doing it is by extracting the source code and then adding whatever code I want to add and then compile kernel

Problem in compiling

2008-08-12 Thread rishi agrawal
Hello everyone, I was trying to use the xgprof utility. Its has a piece of code bundled with it named as big.c On compiling it i got the error message [EMAIL PROTECTED] test]# gcc big.c cc1: out of memory allocating 19208 bytes after a total of 1803980800 bytes so how do i compile it . On

Getting my own ctrl + f

2008-08-11 Thread rishi agrawal
Hello Everyone, I want to call a function whenever i press a combination of keys like ctrl +f . for eg : If i write a program which will execute a function like foo() on pressing ctrl +c (using sigaction interface) i will not be able to terminate the program on pressing ctrl +c. So i want

Porting Zfs features to ext2/3

2008-07-27 Thread rishi agrawal
Hello everybody, I wanted to know that has any work been done on porting some Zfs features to ext2/3. -- Regards, Rishi B. Agrawal