Re: Regarding Raid1

2010-12-18 Thread Greg Freemyer
On Sat, Dec 18, 2010 at 12:07 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, Dec 18, 2010 at 13:25, Gaurav Mahajan gauravmahajan2...@gmail.com wrote: Hello all, I am trying to understand the code for raid1.c But I was not able to figure out the exact

Re: Regarding Raid1

2010-12-18 Thread Greg Freemyer
On Sat, Dec 18, 2010 at 1:04 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi Greg... On Sun, Dec 19, 2010 at 00:53, Greg Freemyer greg.freem...@gmail.com wrote: Mulyadi, Raid is separately implemented in both MDRAID and DM. Oh s**t, I f**k *pthanks for the correction

Re: What is the practical significance of fork

2010-12-15 Thread Greg Freemyer
On Wed, Dec 15, 2010 at 1:34 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi :) On Thu, Dec 16, 2010 at 01:01, Chaitannya Mahatme chaitan...@gmail.com wrote: I tried finding answer to this question in many books but never quite got a satisfactory answer to this question.

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-14 Thread Greg Freemyer
. The only thing you may need to change are your mail filters. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation

Re: VFS layer filesytem tracking

2010-12-08 Thread Greg Freemyer
in there forever. I don't positively recall the lifetime rules for the ram instance, but I think as long as a file is open, the inode is kept in RAM. I also think there are ways to lock an inode in RAM if you need it RAM resident over multiple open/close sessions. Greg -- Greg Freemyer Head of EDD

Re: kernel module

2010-12-06 Thread Greg Freemyer
On Mon, Dec 6, 2010 at 2:25 AM, jhoni maux jhoni.m...@gmail.com wrote: Good evening All,,.. Could you mind telling me what's kernel module actually ??? I am very happy if you give me a good source of understanding of the kernel module ?? like chm, pdf files,,.. :D thank's a lot dedy

Re: different ioctl and syscall

2010-12-05 Thread Greg Freemyer
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo -    http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/ The Norcross Group The Intersection

Re: kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Greg Freemyer
On Tue, Nov 30, 2010 at 6:20 AM, Robert P. J. Day rpj...@crashcourse.ca wrote:  hi, one of the people working thru my kernel programming course reports the following kernel build error trying to build the kernel on ubuntu 10.04:  http://pastebin.com/myKCcZ0X The initial openSUSE 2.6.37-rc2

Re: how does ifconfig communicates with network device driver strace output given

2010-11-12 Thread Greg Freemyer
On Thu, Nov 11, 2010 at 11:28 PM, Tapas Mishra mightydre...@gmail.com wrote: Hi, I read the 17th Chapter of LDD3 and explored what is a network device driver. I wanted to understand in real context the working of network device driver on my laptop. The book described about snull (dummy )

Re: BIOS Vs. Linux

2010-11-06 Thread Greg Freemyer
2010/11/6 Rajat Sharma fs.ra...@gmail.com: Greg, you are right about Intel AHCI, I also had to change it once in BIOS for detecting some Intel's SSD drives. But I think that was again for boot time hardware initialization. Are you sure that these parameters are accessed from BIOS routines on

Re: BIOS Vs. Linux

2010-11-06 Thread Greg Freemyer
2010/11/6 Rajat Sharma fs.ra...@gmail.com: Greg, So the timing as to when the parameters is not what I was addressing. From your previous reply, it looked like you are not agreeing with my first statement As I can remember, Linux uses BIOS only at the bootup time, after that on a running

Re: BIOS Vs. Linux

2010-11-05 Thread Greg Freemyer
2010/11/4 Rajat Sharma fs.ra...@gmail.com: As I can remember, Linux uses BIOS only at the bootup time, after that on a running kernel, there is no role of BIOS routines. Please refer to Understanding Linux Kernel for specific details. It also has one appendix on Linux Boot-up sequence which

New PCIe + SSD standard

2010-11-01 Thread Greg Freemyer
I just saw: http://www.zdnet.com/blog/btl/tech-giants-form-ssd-working-group-to-bolster-enterprise-adoption/40980?tag=nl.e539 Looks intriguing in that they want to come up with an extension to the PCIe spec. specifically for SSDs. I assume the concept is for a SSD that is built into a PCIe

Re: how to efficient use linux caches

2010-10-31 Thread Greg Freemyer
On Sun, Oct 31, 2010 at 11:26 PM, loody milo...@gmail.com wrote: Dear all: I have some questions about virtual memory (VM) subsystem of the Linux kernel. 1. From linux doc, there is drop_caches in /proc/ which can let us to free the cache that kernel used, such as dentries and inodes, etc. I

Re: /dev/mem

2010-10-27 Thread Greg Freemyer
On Wed, Oct 27, 2010 at 12:54 PM, Rajat Sharma fs.ra...@gmail.com wrote: Guys, I am not trying to say that fixing these things will make system not vulnerable to security attacks. Think about a vulnerability of a poorly implemented application which runs with root privilege and servicing

Re: Official Linux site for Bug Listing providing patches

2010-10-27 Thread Greg Freemyer
On Sun, Oct 24, 2010 at 3:13 PM, Linux Kernel Explorer mylinux...@gmail.com wrote: Hi, Just wanted to check if https://bugzilla.kernel.org/ this is the site that is used to listing / reporting of linux bugs providing patches. Regards, Linux Kernel Explorer That's where ext4 and libata

Re: Learning hardware ...

2010-10-19 Thread Greg Freemyer
On Tue, Oct 19, 2010 at 3:16 PM, StephanT stman937-linew...@yahoo.com wrote: Any suggestions what can I read ? Is your list ready ?        :o) 1. User Guide - Data Sheet 2. Application Notes 3. Code examples 4. Use Wikipedia to get quick answers and directions. I assume you have the

Re: How to do DIRECT IO on kernel buffer

2010-10-18 Thread Greg Freemyer
On Mon, Oct 18, 2010 at 3:19 AM, Rajat Sharma fs.ra...@gmail.com wrote: Doesn't that mean user space right to block device? Simply based on that, I can  see you fail all these times... because you do it from kernel space..and that's against the very  basic meaning of direct I/O You can

Re: How to do DIRECT IO on kernel buffer

2010-10-18 Thread Greg Freemyer
in DIRECT IO mode, the lower filesystem should not complain about kernel buffers Thanks, Rajat On Tue, Oct 19, 2010 at 12:56 AM, Greg Freemyer greg.freem...@gmail.com wrote: On Mon, Oct 18, 2010 at 3:19 AM, Rajat Sharma fs.ra...@gmail.com wrote: Doesn't that mean user space right to block

Re: Regarding device cycles

2010-10-13 Thread Greg Freemyer
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo -    http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/ The Norcross Group

Re: the speed of file read write on USB

2010-10-12 Thread Greg Freemyer
On Tue, Oct 12, 2010 at 10:48 AM, loody milo...@gmail.com wrote: hi: thanks for your kind reply :) 2010/10/12 Greg Freemyer greg.freem...@gmail.com: On Sun, Oct 10, 2010 at 2:08 PM, loody milo...@gmail.com wrote:  Dear all: I am so SORRY that I send the mail before I finish it, since I

Re: BKL question

2010-10-11 Thread Greg Freemyer
On Mon, Oct 11, 2010 at 8:54 AM, sumeet gandhare sumeetgandh...@gmail.com wrote: Hi All,   Could you please let me know why Big Kernel lock is needed in some kernel code paths? Thanks Sumeet I assume you know there has been a enduring movement to eliminate the BKL in favor of more fine

Re: the speed of file read write on USB

2010-10-11 Thread Greg Freemyer
On Sun, Oct 10, 2010 at 2:08 PM, loody milo...@gmail.com wrote:  Dear all: I am so SORRY that I send the mail before I finish it, since I finger flip over the send button. SORRY~~~  i write a simple program as below to count the speed of writing a file  over usb, gettimeofday before writing

Re: Problem regarding splitting and merging of bio's

2010-10-10 Thread Greg Freemyer
On Fri, Oct 8, 2010 at 4:32 AM, gaurav mahajan gauravmahajan2...@gmail.com wrote: Hi, I'm new to kernel coding and I have this doubt. I'm trying to write a simple dm-target which will concatenate devices and perform io operations on it. That seems like the normal LVM2 functionality. You

Re: character device driver reading only last character of buffer

2010-09-23 Thread Greg Freemyer
Some programming 101 feedback below: On Thu, Sep 23, 2010 at 12:47 PM, Bond jamesbond.2...@gmail.com wrote: I wrote a small hello world type of character device driver. When I type echo -n abcdef /dev/bond and do a cat /dev/bond then only last f of above input abcdef is displayed rest

Re: adding semaphores to my device driver

2010-09-15 Thread Greg Freemyer
snip I generally use spinlocks for protecting my shared data. Reasonable, but IMHO a mutex should be used to protect a hardware device. I know James is not you working with real hardware, but since he's trying to learn good habits it seems more logical to protect his buffer as if it were real

Re: Integer Division on 32 Bit Machines

2010-09-08 Thread Greg Freemyer
On Wed, Sep 8, 2010 at 12:12 PM, Bond jamesbond.2...@gmail.com wrote: On Wed, Sep 8, 2010 at 9:41 PM, Bond jamesbond.2...@gmail.com wrote:  does Linux Kernel uses -ve number? I forgot to say except the error things like ENOENT type other than that how are -ve number helpful. Are you

Re: Reading a file from the Kernel.

2010-09-03 Thread Greg Freemyer
On Fri, Sep 3, 2010 at 5:23 PM, LKomz Komz lkomz...@gmail.com wrote: Hi all, I had a query regarding how to access a file from a kernel driver. I currently use modprobe.config. Is there any other way I could use a config file other than the above? Thanks in advance, L Komz. It's highly

Re: what is static inline void tvec_base

2010-08-28 Thread Greg Freemyer
something else is the greatest accomplishment -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo -    http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence

Re: what is static inline void tvec_base

2010-08-28 Thread Greg Freemyer
On Sat, Aug 28, 2010 at 1:05 PM, James Bond jamesbond.2...@gmail.com wrote: On Sat, Aug 28, 2010 at 5:39 PM, Greg Freemyer greg.freem...@gmail.com wrote: http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Inline.html note the last sentence of that doc               GCC does not inline any

Re: what is static inline void tvec_base

2010-08-27 Thread Greg Freemyer
On Fri, Aug 27, 2010 at 1:23 PM, James Bond jamesbond.2...@gmail.com wrote: Hi, I am new to kernel development. So after being able to have some basic understand of some things I just went through source code. I was going through a file known as linux-2.6.34/kernel/timer.c and found

Re: Hooking into kernel by overriding internal functions

2010-08-03 Thread Greg Freemyer
excited for my first post! :-) ] You have the source and can re-compile, right? If so, rename the existing func() to __func() and write your own new func() that calls __func(). It's done all the time during development. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team

Re: the kernelnewbies wiki.

2010-07-31 Thread Greg Freemyer
browsing from the link Greg posted, I saw this: http://lists.opensuse.org/opensuse-wiki/2010-07/msg7.html snip Unfortunately, I didnt find a subscribe link.. Various ways: http://en.opensuse.org/openSUSE:Mailing_lists#Subscribing For a normal email subscription, just send an email to:

Re: Usage of leading underscore in linux kernel code.

2010-06-22 Thread Greg Freemyer
On Tue, Jun 22, 2010 at 5:33 PM, Shaz shazal...@gmail.com wrote: ... the convention in many systems is to use a leading underscore for low level functions that do little validation and should therefore not be used directly. Thank you for the kind explanation. I wasn't aware about this

Re: basic ques --- installation from rpm and source

2010-05-25 Thread Greg Freemyer
On Tue, May 25, 2010 at 2:49 AM, amol verule amol.deb...@gmail.com wrote: Hi, first remove older version command  using rm command and then install latest version using source.may be require to update softlink as well. Regards, Amol That just bypasses the rpm system. I think Nidhi

Re: best way to read kernel code

2010-04-26 Thread Greg Freemyer
On Mon, Apr 26, 2010 at 7:03 AM, Robert P. J. Day rpj...@crashcourse.ca wrote: On Mon, 26 Apr 2010, Anuz Pratap Singh Tomar wrote: Great, that will be cool. What about new editions of ULK and LDD? Are Cessati and Bovet part of this list or any other list?  even if they were, it's unlikely

Re: Researching ATA TRIM command

2010-04-20 Thread Greg Freemyer
On Thu, Apr 15, 2010 at 6:21 PM, Bill Weiler weil...@marvell.com wrote: Yes. Here is some additonal info: in libata-scsi.c                tf-protocol = ATA_PROT_DMA; 2983        tf-hob_feature = 0; 2984        tf-feature = ATA_DSM_TRIM;                //0x01 2985        tf-hob_nsect =

Re: suggestion on writing driver

2010-04-19 Thread Greg Freemyer
majority of the kernel is c code. So c programming is all you need unless you want to drill into assembly which you should be able to avoid in almost all cases. But the kernel code is very complex, so I would not pick it as a programming learning experience. Greg -- Greg Freemyer Head of EDD Tape

Re: GPT fdisk

2010-04-17 Thread Greg Freemyer
On Sat, Apr 17, 2010 at 3:01 AM, Keshav P.R. skodab...@rocketmail.com wrote: Hai Greg,               There are 4K sector drives available in the market, specifically from Western Digital in the name of Advanced Format drives http://www.wdc.com/en/products/advancedformat/ . 4K Physical 512

Re: how to develop against linux-next

2010-04-08 Thread Greg Freemyer
On Thu, Apr 8, 2010 at 9:04 AM, vorad vorad.1...@gmail.com wrote: Hi guys, I am wondering how are you rebasing against linux-next each day, given the fact that the code is so rapidly changing. Is there any guide on how we should do this? I only know about this one

Re: data sheet for SATA drive

2010-04-07 Thread Greg Freemyer
Onkar, First thing you need to learn is not to Top Post. I'll let you research it, but it is basically taboo on lkml lists, so you will get flamed if you do it on one of the official lists. My answers below: On Wed, Apr 7, 2010 at 1:49 AM, Onkar Mahajan kern.de...@gmail.com wrote: Greg,  

Re: data sheet for SATA drive

2010-04-05 Thread Greg Freemyer
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/ The Norcross Group

Re: registers and cache memory

2010-04-01 Thread Greg Freemyer
an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV AiredForensic Imaging Demo

Re: Bootmem failed.

2010-03-29 Thread Greg Freemyer
This seems to have been held in queue fo 10 days? On Fri, Mar 19, 2010 at 5:09 AM, Andrea Gasparini ga...@yattaweb.it wrote: Hi, I'm having trouble with alloc_bootmem_pages() and a 2.6.18 kernel (oh, yes, it's veeery old, I'm stuck with it because of some hw specific drivers/patches). I'm

Re: Networking project

2010-03-29 Thread Greg Freemyer
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV AiredForensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/ The Norcross Group The Intersection

Re: Bootmem failed.

2010-03-29 Thread Greg Freemyer
On Mon, Mar 29, 2010 at 10:48 AM, Andrea Gasparini ga...@yattaweb.it wrote: Greg Freemyer spiffera, alle Monday 29 March 2010 circa: This seems to have been held in queue fo 10 days? almost, yes. Can you work with a recent Redhat / CentOS kernel? It is still on 2.6.18 and there is still

Re: Networking project

2010-03-29 Thread Greg Freemyer
is to get it improved and fully accepted. And it can't just sit in there for years. Greg On Mon, Mar 29, 2010 at 12:10 PM, Onkar Mahajan kern.de...@gmail.com wrote: What is the staging tree and how can I access it ? Regards, Onkar On Mon, Mar 29, 2010 at 7:50 PM, Greg Freemyer greg.freem

Re: a conceptual confusion -- loop device

2010-03-08 Thread Greg Freemyer
On Mon, Mar 8, 2010 at 7:39 AM, nidhi mittal hada nidhimitta...@gmail.com wrote: Even after umount file doesnt disappear 1)mount -t ext4 /dev/loop4 /mnt/ 2)cd /mnt 3)ls   a.c  lost+found 4)cd - 4)umount /mnt 5)mount -t ext4 /dev/loop4 /mnt/ 6) cd /mnt/ 7) [r...@localhost

Re: Becoming a kernel contributor: is it still possible?

2010-03-06 Thread Greg Freemyer
On Sat, Mar 6, 2010 at 5:39 PM, Paul Fisher r01@gmail.com wrote: This is probably a stupid question, but really, is it still possible? How could it not be? Yes, the rate of change is very high, Andrew says that it is scary, but those changes are made by pro developers, and they don't do

Re: [ANNOUNCE] Online Hierarchical Storage Manager (OHSM v1.2)

2010-02-23 Thread Greg Freemyer
On Tue, Feb 23, 2010 at 2:14 AM, Dmitry Monakhov dmonak...@openvz.org wrote: Manish Katiyar mkati...@gmail.com writes: Hello all,    We are pleased to announce the first official functional release of Online Hierarchical Storage Manager (OHSM v1.2).  This is a RFC release and not yet aimed

Re: Schedule() call in driver context.

2010-02-23 Thread Greg Freemyer
On Tue, Feb 23, 2010 at 1:16 PM, StephanT stman937-linew...@yahoo.com wrote: Hi Joel, because timers execute in interrupt context, not process context. What do you mean exactly? My understanding is the kernel uses interrupts to count the time and to trigger timer routines - but these

Re: Schedule() call in driver context.

2010-02-23 Thread Greg Freemyer
On Tue, Feb 23, 2010 at 2:09 PM, Joel Fernandes agnel.j...@gmail.com wrote: Hi Greg, Instead there is an intermediary context that I don't think you've taken into account. I believe timers are also invoked in this intermediary context.  ie. When a timer invokes a function you can't trust

Re: Schedule() call in driver context.

2010-02-22 Thread Greg Freemyer
On Sat, Feb 20, 2010 at 2:01 AM, Joel Fernandes agnel.j...@gmail.com wrote: In fact the kernel is not interrupt-able in linux as I recall.  Thus a misbehaving driver that enters an infinite loop will hang the whole machine. ... Another way to ask your question is Why isn't the linux kernel

Re: Schedule() call in driver context.

2010-02-22 Thread Greg Freemyer
On Mon, Feb 22, 2010 at 2:37 PM, StephanT stman937-linew...@yahoo.com wrote: Hi Joel, 1. What event awakes the process? Has the driver any way to control it? The kernel code executing on behalf of the process is usually waiting for some resource to become available, we sleep because we

Re: ieee papers

2010-02-19 Thread Greg Freemyer
On Fri, Feb 19, 2010 at 9:54 AM, Krushnaal Pai krisonea...@gmail.com wrote:  chandu, manish, denis, mulyadi Thanks for correcting me on various issues Now divert your useful time on answering others questions .bcoz u guyz are not used to doing wrong

Re: Schedule() call in driver context.

2010-02-19 Thread Greg Freemyer
On Thu, Feb 18, 2010 at 4:39 PM, StephanT stman937-linew...@yahoo.com wrote: Hello all, Why would a linux driver call schedule() ? The LDD proposes this method to fight systems hangs caused by an infinite loop in the driver. In this case the schedule() call would be a workaround. I think

Re: question about __v annotation

2010-01-05 Thread Greg Freemyer
On Sat, Jan 2, 2010 at 8:10 AM, Shawn cit...@gmail.com wrote: hello guys,  I got a newbie confused when I was looking into the source code of s3c2440's RTC driver.I dont know what is __v excatly means.anyone can tell?thanks anyway! #define readb(c) ({ __u8  __v =

Re: Getting started with kernel development

2009-12-27 Thread Greg Freemyer
On Sun, Dec 27, 2009 at 8:34 AM, Thomas Rega m...@thoreg.org wrote: Am Sonntag, den 27.12.2009, 22:02 +1100 schrieb David: On Sun, Dec 27, 2009 at 4:43 PM, Nicky Chorley nick.chor...@gmail.com wrote: Assuming that I know nothing (except some C), what advice would you give me if I wanted

Re: How does ls command work in Linux in detail?

2009-12-02 Thread Greg Freemyer
On Wed, Dec 2, 2009 at 9:12 PM, Daniel (Youngwhan) Song breadn...@gmail.com wrote: Hi, Could somebody explain me how exactly ls command work in Unix/Linux? When we type ls command in linux shell, what does process/procedure work with linux library or linux kernel, and how exactly does it

Re: How does ls command work in Linux in detail?

2009-12-02 Thread Greg Freemyer
On Wed, Dec 2, 2009 at 10:48 PM, Daniel (Youngwhan) Song breadn...@gmail.com wrote: Thanks, krushnaal and Greg, By looking at the Greg's strace, it gives me great insight of the command. So, It looks like it calls a library which can be in glib(?), and the library actually calls kernel

Re: Query on File Creation time in Linux

2009-11-19 Thread Greg Freemyer
On Thu, Nov 19, 2009 at 7:29 AM, Indraneel Mukherjee indro...@gmail.com wrote: Hi, It seems that Linux does NOT provide a File Creation Time field. There is atime(file access time) ctime(inode change time) mtime(file modification time) but NO field for File Creation Time. Why is it so?

Re: GPL Query

2009-11-12 Thread Greg Freemyer
call the GPL a virus itself. ie. It moves from the original code into any code it comes in contact with. Maybe you need to consider using BSD instead? The BSD license is more liberal in allowing commercial code to be grafted on. http://en.wikipedia.org/wiki/BSD_licenses Greg -- Greg Freemyer

Re: How to use new SCSI API?

2009-11-11 Thread Greg Freemyer
...@gmail.com http://www.adamjiang.com -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms

Re: block size confusion -- in writing a basic simplest file system

2009-09-21 Thread Greg Freemyer
On Fri, Sep 11, 2009 at 9:28 AM, Greg Freemyer greg.freem...@gmail.com wrote: On Fri, Sep 11, 2009 at 6:54 AM, nidhi mittal hada nidhimitta...@gmail.com wrote: I was learning writing basic filesystem step by step -- till now what i wrote just mounts . Now can someone help me to clarify

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

2009-09-13 Thread Greg Freemyer
as sparse. I think, as suggested by Greg Freemyer, we can use BMAP ioctl to get such information. Yes, but I think bmap would be costly if the file is large and is not holey :-( but that would be probably same calling fiemap if the file is completely fragmented such that each extent

Re: block size confusion -- in writing a basic simplest file system

2009-09-11 Thread Greg Freemyer
On Fri, Sep 11, 2009 at 6:54 AM, nidhi mittal hada nidhimitta...@gmail.com wrote: I was learning writing basic filesystem step by step -- till now what i wrote just mounts . Now can someone help me to clarify the difference between 1)blocksize we give when we do 'dd if=/dev/zero of=nnn

Re: FS block size and Architecture Dependency

2009-09-04 Thread Greg Freemyer
that 8k blocks are supported with 32-bit kernels in some filesystems. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper

Re: OLS 2009 highlights

2009-08-30 Thread Greg Freemyer
it an interesting project and am now an active member of the project team. Further, due to travel issues, I was chosen to do the presentation at OLS. You can find the presentation at: http://sourceforge.net/projects/ohsm/files/OHSM_OLS2009.pptx/download Greg -- Greg Freemyer Head of EDD Tape

Is the list broken?

2009-08-22 Thread Greg Freemyer
delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ -- Greg Freemyer Head of EDD Tape

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: getting started with drivers

2009-08-21 Thread Greg Freemyer
. _ -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Is the list broken?

2009-08-21 Thread Greg Freemyer
delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netad...@patni.com and delete this mail. _ -- Greg Freemyer Head of EDD Tape

Re: ext3 structure mapping to block device

2009-08-17 Thread Greg Freemyer
On Mon, Aug 17, 2009 at 2:08 AM, Manish Katiyarmkati...@gmail.com wrote: On Mon, Aug 17, 2009 at 11:06 AM, ajit motemail2black...@gmail.com 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

Re: 32-bit kernel

2009-08-17 Thread Greg Freemyer
On Mon, Aug 17, 2009 at 2:12 PM, Manish Rangankarrangankarman...@gmail.com wrote: Hi Peter, Sorry to bother you again, I was looking at the filesystem code for ufs.h and I found that there are some metadata which is highly dependent on whether the OS support 32bit or 64bit. Snippet of ufs

Re: Question about kernel preemption

2009-08-14 Thread Greg Freemyer
On Fri, Aug 14, 2009 at 7:12 AM, Mohammed Gamalm.gamal...@gmail.com wrote: On Fri, Aug 14, 2009 at 11:25 AM, Mulyadi Santosamulyadi.sant...@gmail.com wrote: On Fri, Aug 14, 2009 at 12:15 PM, Michael Blizekmic...@michaelblizek.twilightparadox.com wrote: Hi! On 00:08 Fri 14 Aug     , Mohammed

Re: Single UART handling multiple devices.

2009-08-14 Thread Greg Freemyer
Srinivas, Top-posting is highly discouraged on most high-volume mailing lists, and the includes this one. Moving your answer to the bottom and then answering. Microbit_Ubuntu wrote: Hi Greg, On Thu, 2009-08-13 at 20:41 -0400, Greg Freemyer wrote: On Thu, Aug 13, 2009 at 3:52 PM

Re: Automated Synchronization for pendrives

2009-08-13 Thread Greg Freemyer
?? Or any tool which does something similar ? -- Regards, Rishi B. Agrawal Rishi, hald is one option. KDE and gnome both use it for triggering their file browsers to open upon thumb drive insertion. I don't know if basic init 3 level systems have hald running or not. Greg -- Greg Freemyer Head

Re: Single UART handling multiple devices.

2009-08-13 Thread Greg Freemyer
. Note: TCP/IP also embeds the routing info in the data stream (ie. the port). It is a totally standard thing to do. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic

architecture independent way to define task_struct

2009-08-04 Thread Greg Freemyer
the correct fix for this? Thanks Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms

Re: architecture independent way to define task_struct

2009-08-04 Thread Greg Freemyer
fine for a Intel 32-bit intel target. With a 64-bit intel target it fails. I've found #include linux/init_task.h resolves the issue, but I doubt that is the right solution. Anyone know the correct fix for this? Thanks Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing

Re: Drive tester

2009-07-30 Thread Greg Freemyer
On Fri, Jul 24, 2009 at 1:34 AM, Robert Hancockhancock...@gmail.com wrote: On 07/23/2009 04:31 PM, Greg Freemyer wrote: cc'ing: linux-...@vger.kernel.org maybe they can help On Thu, Jul 23, 2009 at 6:12 PM, Bill Weilerweil...@marvell.com  wrote

Re: Integrating kernel module code into kernel source tree.

2009-07-27 Thread Greg Freemyer
://kerneltrap.org/Linux/Introducing_the_Linux_Staging_Tree Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http

Re: Help in learning real PCI device driver

2009-07-25 Thread Greg Freemyer
://gkernel.sourceforge.net/specs/ At a minimum there are specs for NICs and Sata controllers there. Not sure what else. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange

Re: Drive tester

2009-07-23 Thread Greg Freemyer
. Not sure what the criteria is. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers

Re: Drive tester

2009-07-23 Thread Greg Freemyer
cc'ing: linux-...@vger.kernel.org maybe they can help On Thu, Jul 23, 2009 at 6:12 PM, Bill Weilerweil...@marvell.com wrote: From: Greg Freemyer [greg.freem...@gmail.com] Sent: Thursday, July 23, 2009 2:31 PM To: Bill Weiler Cc: Kernelnewbies

Re: what's the state of the kernelnewbies FAQ these days?

2009-07-06 Thread Greg Freemyer
i can't say who should be looking at it. It is a wiki.  *You* can edit it. Can he? The faq in question is tagged immutable. I have not attempted to edit it, but I assume I cannot. Nor can Robert if I'm right. http://kernelnewbies.org/FAQ/KernelCompilation Greg -- Greg Freemyer Head of EDD

Re: help with ext3 reserved inode

2009-07-06 Thread Greg Freemyer
goal is to get it in mainstream you probably need to be thinking ext4. Ext3 is basically in maintenance mode now I believe, so new features are not likely to be accepted. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http

Re: what's the state of the kernelnewbies FAQ these days?

2009-07-05 Thread Greg Freemyer
content in order that response can be read with proper context. OTOH, having to scroll through tons of unrelated context is also a major issue, so aggressive trimming of unrelated quotes is also encouraged. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage

Re: How to post Q ?

2009-06-25 Thread Greg Freemyer
Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers/Forensic%20Processing%20of

Re: Is it possible to use file descriptor after main returns

2009-04-22 Thread Greg Freemyer
into it. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group

Re: Is it possible to use file descriptor after main returns

2009-04-22 Thread Greg Freemyer
in at least some environments. I don't even remember what flavor of Unix I was using when I did the sendmsg() trick to pass a FD. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days

Re: Blind Mailing List

2009-04-17 Thread Greg Freemyer
to them as opposed to part of the overall list traffic. == Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99

Re: [very noob] Experimenting with the virtual FS

2009-04-17 Thread Greg Freemyer
. A stackable filesystem seems like the right approach for what you are doing. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms

Re: close() problem

2009-04-16 Thread Greg Freemyer
is open is tracked and your kernel close() code is not called until the open count is decremented to zero based on all three programs dieing. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99

Re: communication between userspace and kernelspace

2009-04-16 Thread Greg Freemyer
variables are supposed to use sysfs (ie. /sys) Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days

Re: [ext2/ext3] Re-allocation of blocks for an inode

2009-03-29 Thread Greg Freemyer
On Sat, Mar 28, 2009 at 2:27 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: On Sat, Mar 28, 2009 at 3:18 AM, Greg Freemyer greg.freem...@gmail.com wrote: Sandeep, I've looked at the code and made comments.  I suspect the issue is an extraneous call       dst_bhptr = sb_bread(ohsm_sb

  1   2   >