From owner-freebsd-fs@FreeBSD.ORG Tue Aug 3 09:46:45 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82DEF16A4CE; Tue, 3 Aug 2004 09:46:45 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2760F43D49; Tue, 3 Aug 2004 09:46:43 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i739pYI19097; Tue, 3 Aug 2004 17:51:35 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id 0bb22bce_e533_11d8_8d13_0002b3cb4edc_9241; Tue, 03 Aug 2004 17:54:01 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i739d3E03626; Tue, 3 Aug 2004 17:39:03 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id P3XJ78G7; Tue, 3 Aug 2004 17:46:32 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D81P; Tue, 3 Aug 2004 15:28:13 +0530 From: ravi To: Robert Watson In-Reply-To: References: Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091526793.4761.44.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 03 Aug 2004 15:23:14 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 09:46:45 -0000 Hi, The README file in /sys/fs/procfs directory says that we can send the control messages to note or ctl files for any process . But when we execute the command echo hup > /proc/curproc/note OR echo attach > /proc/2/ctl the following error message comes on the terminal . $ echo hup > /proc/curproc/note /proc/curproc/note: Operation not supported and $ echo attach > /proc/2/ctl /proc/2/ctl: Operation not supported What is the reason for this ? Is it not possible to write the control words or control messages to the process entries under /proc ? Please reply to this mail . Regards, N Ravi From owner-freebsd-fs@FreeBSD.ORG Tue Aug 3 15:07:54 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEE9D16A4CE; Tue, 3 Aug 2004 15:07:54 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FCD043D45; Tue, 3 Aug 2004 15:07:54 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i73F6JAZ084021; Tue, 3 Aug 2004 11:06:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i73F6GHC084017; Tue, 3 Aug 2004 11:06:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 3 Aug 2004 11:06:16 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: ravi In-Reply-To: <1091526793.4761.44.camel@ravin> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 15:07:55 -0000 On Tue, 3 Aug 2004, ravi wrote: > The README file in /sys/fs/procfs directory says that we can send the > control messages to note or ctl files for any process . But when we > execute the command > > echo hup > /proc/curproc/note > > OR > echo attach > /proc/2/ctl It may be because you're writing the word and a line feed, and it could be our note file doesn't know what to do with the line feed. Try "echo -n" instead? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research > > the following error message comes on the terminal . > > $ echo hup > /proc/curproc/note > /proc/curproc/note: Operation not supported > > and > > $ echo attach > /proc/2/ctl > /proc/2/ctl: Operation not supported > > > > What is the reason for this ? > > Is it not possible to write the control words or control messages to the > process entries under /proc ? > > Please reply to this mail . > > Regards, > N Ravi > > > > > From owner-freebsd-fs@FreeBSD.ORG Tue Aug 3 18:58:56 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE78D16A4CF for ; Tue, 3 Aug 2004 18:58:56 +0000 (GMT) Received: from web20423.mail.yahoo.com (web20423.mail.yahoo.com [66.163.170.246]) by mx1.FreeBSD.org (Postfix) with SMTP id 930B443D3F for ; Tue, 3 Aug 2004 18:58:56 +0000 (GMT) (envelope-from dhutch9999@yahoo.com) Message-ID: <20040803185856.28834.qmail@web20423.mail.yahoo.com> Received: from [12.153.72.219] by web20423.mail.yahoo.com via HTTP; Tue, 03 Aug 2004 11:58:56 PDT Date: Tue, 3 Aug 2004 11:58:56 -0700 (PDT) From: DH To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: How to read bad blocks error message & marking of same X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 18:58:56 -0000 Hello; OS 4.10-2 i386 - have read man pgs for fsck and badsec & done a bit of googl'n - I've begun rec'ing these error messages: ad0s1a: hard error reading fsbn 141935 of 70848 - 71103 (ad0s1 bn 141935; cn 8 tn 212 sn 59 ) status=59 error=40 Got about 7 of these with varying values. I ran Seagate's diag utility and it reported only 1 bad block. Unfortunately ad0s1a happens to my / dir so allowing the utility to write zeros to that block hasn't sat well with me. Sooo - if some one could explain the exact meaning of my error message & point me in the right direction to use these values to fix my disk problem I'd greatly appreciate it (with many many many thanks in advance :) ) fsbn 141935 of 70848 - 71103 ? ad0s1 bn 141935 ? cn 8 ? tn 212 ? sn 59 ? status = 59 ? error = 40 ? David Hutchens III Network Technician dhutch9999@yahoo.com --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 04:01:44 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C168816A4CE; Wed, 4 Aug 2004 04:01:44 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 007F043D39; Wed, 4 Aug 2004 04:01:36 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i7446KI21990; Wed, 4 Aug 2004 12:06:24 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id fe664ca4_e5cb_11d8_93f9_0002b3cb4edc_3516; Wed, 04 Aug 2004 12:08:51 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i743roE01988; Wed, 4 Aug 2004 11:53:50 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB4J3; Wed, 4 Aug 2004 12:01:19 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D8L2; Wed, 4 Aug 2004 09:43:05 +0530 From: ravi To: Robert Watson In-Reply-To: References: Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091592485.4760.1.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 04 Aug 2004 09:38:05 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 04:01:44 -0000 I tried with echo -n as well . But even then the same error messge is coming . Please tell me the solution . On Tue, 2004-08-03 at 20:36, Robert Watson wrote: > On Tue, 3 Aug 2004, ravi wrote: > > > The README file in /sys/fs/procfs directory says that we can send the > > control messages to note or ctl files for any process . But when we > > execute the command > > > > echo hup > /proc/curproc/note > > > > OR > > echo attach > /proc/2/ctl > > It may be because you're writing the word and a line feed, and it could > be > our note file doesn't know what to do with the line feed. Try "echo -n" > > instead? > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Principal Research Scientist, McAfee > Research > > > > > > the following error message comes on the terminal . > > > > $ echo hup > /proc/curproc/note > > /proc/curproc/note: Operation not supported > > > > and > > > > $ echo attach > /proc/2/ctl > > /proc/2/ctl: Operation not supported > > > > > > > > What is the reason for this ? > > > > Is it not possible to write the control words or control messages to > the > > process entries under /proc ? > > > > Please reply to this mail . > > > > Regards, > > N Ravi > > > > > > > > > > > From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 05:01:59 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A0416A4CE; Wed, 4 Aug 2004 05:01:59 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD9B43D67; Wed, 4 Aug 2004 05:01:59 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i7451gLC038528; Wed, 4 Aug 2004 00:01:42 -0500 (CDT) (envelope-from dan) Date: Wed, 4 Aug 2004 00:01:42 -0500 From: Dan Nelson To: ravi Message-ID: <20040804050142.GB85344@dan.emsphone.com> References: <1091592485.4760.1.camel@ravin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1091592485.4760.1.camel@ravin> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: Brian Fundakowski Feldman cc: Raja Guha cc: freebsd-fs@freebsd.org cc: Robert Watson cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 05:01:59 -0000 In the last episode (Aug 04), ravi said: > I tried with echo -n as well . But even then the same error messge is > coming . Please tell me the solution . For the 'note' case, a look at the source makes it clear that it has never been implemented. The manpage also mentions it: note Used for sending signals to the process. Not implemented. For 'ctl', your example is invalid. At least on my system, process 2 is a kernel thread. Try with a real userland process, and note that you cannot trace yourself (so "echo attach > /proc/$$/ctl" will fail). For a better ptrace interface, take a look at the ptrace() syscall. Use of procfs is discouraged. > > On Tue, 3 Aug 2004, ravi wrote: > > > echo attach > /proc/2/ctl -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 06:45:48 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9805416A4CF; Wed, 4 Aug 2004 06:45:48 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6507143D1D; Wed, 4 Aug 2004 06:45:46 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i746ocI23251; Wed, 4 Aug 2004 14:50:42 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id eff1a616_e5e2_11d8_9edd_0002b3cb4edc_17046; Wed, 04 Aug 2004 14:53:05 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i746c4E16302; Wed, 4 Aug 2004 14:38:04 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB439; Wed, 4 Aug 2004 14:45:33 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D8R9; Wed, 4 Aug 2004 12:27:16 +0530 From: ravi To: Robert Watson In-Reply-To: <1091592485.4760.1.camel@ravin> References: <1091592485.4760.1.camel@ravin> Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091602336.4760.56.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 04 Aug 2004 12:22:16 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 06:45:48 -0000 Hi , I've created a non-process entry under /proc using linprocfs.c with read and write permissions to it . I want to associate a write functionality to that entry . How can i do that ? From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 06:52:26 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 891D916A4CE; Wed, 4 Aug 2004 06:52:26 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC04643D60; Wed, 4 Aug 2004 06:52:24 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i746vII25632; Wed, 4 Aug 2004 14:57:18 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id e0a39128_e5e3_11d8_8788_0002b3cb4edc_25395; Wed, 04 Aug 2004 14:59:49 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i746ilE17837; Wed, 4 Aug 2004 14:44:48 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB4PD; Wed, 4 Aug 2004 14:52:16 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D8SF; Wed, 4 Aug 2004 12:33:56 +0530 From: ravi To: Robert Watson In-Reply-To: <1091592485.4760.1.camel@ravin> References: <1091592485.4760.1.camel@ravin> Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091602736.4760.64.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 04 Aug 2004 12:28:56 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Regarding mknod X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 06:52:26 -0000 Hi, If I run "make load " from /usr/share/examples/kld/cdev/module directory then I'm getting the following error message . # make load mknod /dev/cdev c 32 0 mknod: /dev/cdev : No such file or directory *****Error code 1 Even if I execute the " mknod /dev/cdev c 32 0 " command at the terminal I'm getting the same error message . What is the reason for this ? Please tell me the solution as well .. Regards, N Ravi From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 07:48:23 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 121D116A4CE; Wed, 4 Aug 2004 07:48:23 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71B3043D67; Wed, 4 Aug 2004 07:48:20 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id i747l3AW013423; Wed, 4 Aug 2004 09:47:10 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: ravi From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 04 Aug 2004 12:28:56 +0530." <1091602736.4760.64.camel@ravin> Date: Wed, 04 Aug 2004 09:47:03 +0200 Message-ID: <13422.1091605623@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Robert Watson cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding mknod X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 07:48:23 -0000 In message <1091602736.4760.64.camel@ravin>, ravi writes: >Hi, >If I run "make load " from /usr/share/examples/kld/cdev/module directory >then I'm getting the following error message . > ># make load >mknod /dev/cdev c 32 0 >mknod: /dev/cdev : No such file or directory >*****Error code 1 > >Even if I execute the " mknod /dev/cdev c 32 0 " command at the terminal >I'm getting the same error message . > > >What is the reason for this ? >Please tell me the solution as well .. the load target in the makefile is outdated and the mknod command should simply be removed. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 08:25:04 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 635E116A4E6; Wed, 4 Aug 2004 08:25:04 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F2FA43D53; Wed, 4 Aug 2004 08:25:01 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i748TWI28156; Wed, 4 Aug 2004 16:29:32 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id c35560b2_e5f0_11d8_83a0_0002b3cb4edc_14672; Wed, 04 Aug 2004 16:32:03 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i748H2E13864; Wed, 4 Aug 2004 16:17:02 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB4QC; Wed, 4 Aug 2004 16:24:31 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D8TA; Wed, 4 Aug 2004 14:06:17 +0530 From: ravi To: Poul-Henning Kamp In-Reply-To: <13422.1091605623@critter.freebsd.dk> References: <13422.1091605623@critter.freebsd.dk> Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091608277.4760.68.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 04 Aug 2004 14:01:17 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Robert Watson cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding mknod X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 08:25:04 -0000 Can u tell me the solution for this ? On Wed, 2004-08-04 at 13:17, Poul-Henning Kamp wrote: > In message <1091602736.4760.64.camel@ravin>, ravi writes: > >Hi, > >If I run "make load " from /usr/share/examples/kld/cdev/module > directory > >then I'm getting the following error message . > > > ># make load > >mknod /dev/cdev c 32 0 > >mknod: /dev/cdev : No such file or directory > >*****Error code 1 > > > >Even if I execute the " mknod /dev/cdev c 32 0 " command at the > terminal > >I'm getting the same error message . > > > > > >What is the reason for this ? > >Please tell me the solution as well .. > > the load target in the makefile is outdated and the mknod command should > simply be removed. From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 10:53:06 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AEC716A4CF for ; Wed, 4 Aug 2004 10:53:06 +0000 (GMT) Received: from musique.teaser.net (musique.teaser.net [213.91.2.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD2AD43D3F for ; Wed, 4 Aug 2004 10:53:05 +0000 (GMT) (envelope-from e-masson@kisoft-services.com) Received: from srvbsdnanssv.interne.kisoft-services.com (nantes.kisoft-services.com [193.56.60.243]) by musique.teaser.net (Postfix) with ESMTP id 5951072559 for ; Wed, 4 Aug 2004 12:53:04 +0200 (CEST) Received: by srvbsdnanssv.interne.kisoft-services.com (Postfix, from userid 1001) id F02E1C1CA; Wed, 4 Aug 2004 12:53:03 +0200 (CEST) To: Mailing List FreeBSD Filesystems From: Eric Masson X-Operating-System: FreeBSD 5.2.1-RELEASE-p9 i386 Date: Wed, 04 Aug 2004 12:53:03 +0200 Message-ID: <86smb3tbsg.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: mksnap_ffs, time, lor & inconsistencies X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 10:53:06 -0000 Hello, I'm toying atm with a Dell Powervault 725N (dmesg attached), this box will be used as a nas, disk layout is the following : Filesystem Size Used Avail Capacity Mounted on /dev/amrd0s1a 248M 76M 152M 33% / devfs 1.0K 1.0K 0B 100% /dev /dev/amrd0s1e 248M 6.0K 228M 0% /tmp /dev/amrd0s1f 2.8G 1.7G 836M 68% /usr /dev/amrd0s1d 496M 450K 456M 0% /var /dev/amrd1s1d 672G 794M 617G 0% /vol0 I've just tested snapshots on /vol0 filesystem : emss@terra:/usr# time mksnap_ffs /vol0 /vol0/.snap/snap0 0.000u 15.634s 32:57.18 0.7% 5+234k 56071+71989io 0pf+0w /vol0 only contains a copy of /usr/src. Well, I removed the src directory from vol0 and shut down the machine via shutdown -p now and everything went fine except i got a lor (similar to already registered id 006) : lock order reversal 1st 0xc26bf948 vnode interlock (vnode interlock) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1906 2nd 0xc103a100 system map (system map) @ /usr/src/sys/vm/vm_map.c:2223 KDB: stack backtrace: kdb_backtrace(0,ffffffff,c08b9568,c08ba7b0,c0848a5c) at kdb_backtrace+0x29 witness_checkorder(c103a100,9,c0804b23,8af) at witness_checkorder+0x544 _mtx_lock_flags(c103a100,0,c0804b23,8af) at _mtx_lock_flags+0x5b _vm_map_lock(c103a0a0,c0804b23,8af) at _vm_map_lock+0x21 vm_map_remove(c103a0a0,c26e1000,c26e9000,dd04dba0,c074cdc1) at vm_map_remove+0x1f kmem_free(c103a0a0,c26e1000,8000,dd04dbb8,c074eb17) at kmem_free+0x25 page_free(c26e1000,8000,22,8000,dd04dbd0) at page_free+0x29 uma_large_free(c26b33c0) at uma_large_free+0x7f free(c26e1000,c0881ae0,c2667600,0,c265c000) at free+0xe1 ffs_snapshot_unmount(c265c000) at ffs_snapshot_unmount+0xe7 ffs_flushfiles(c265c000,0,c23c2000) at ffs_flushfiles+0x40 softdep_flushfiles(c265c000,0,c23c2000,c26bf738,0) at softdep_flushfiles+0x1e ffs_unmount(c265c000,8000000,c23c2000,0,0) at ffs_unmount+0x32 dounmount(c265c000,8000000,c23c2000,410a0a31,8c4052) at dounmount+0x1c4 unmount(c23c2000,dd04dd14,2,1,206) at unmount+0x1e0 syscall(2f,2f,2f,804a72f,8052a51) at syscall+0x217 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (22, FreeBSD ELF32, unmount), eip = 0x280c32b7, esp = 0xbfbfe51c, ebp = 0xbfbfe5c8 --- I then rm'ed the snapshot named snap0 in /vol0/.snap and later shut down the box via shutdown -p now. syncer process timed out, last message before stop was "giving up on 41 buffers." At next reboot, the box fscked all filesystems as none was marked clean Kernel conf is a plain stock GENERIC from last Friday Is this an expected behaviour atm, sort of known bug investigated atm ? And last, is the time used to create a snapshot normal ? I can offer shell access to the box if needed. Regards Eric Masson -- donc, si tu n'en a rien à foutre tu ne lis pas les mess qui ne te sont pas adressés, c'est le problème de poster sur plusieurs forums, tu parles au charcutier, et c'est la saucisse qui te répond :-)" -+- Sandra in GNU : Si six neuneux scient six saucisses -+- From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 12:18:08 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F129E16A4CE; Wed, 4 Aug 2004 12:18:08 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7016C43D62; Wed, 4 Aug 2004 12:18:08 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i74CGYe8004795; Wed, 4 Aug 2004 08:16:34 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i74CGW2U004792; Wed, 4 Aug 2004 08:16:33 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 4 Aug 2004 08:16:31 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: ravi In-Reply-To: <1091608277.4760.68.camel@ravin> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Poul-Henning Kamp cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding mknod X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 12:18:09 -0000 On Wed, 4 Aug 2004, ravi wrote: > Can u tell me the solution for this ? In FreeBSD 5.x, devfs will automatically create devices as specified in make_dev(), being unable to run mknod(8) should not be a problem. Is your device node appearing? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research > > On Wed, 2004-08-04 at 13:17, Poul-Henning Kamp wrote: > > In message <1091602736.4760.64.camel@ravin>, ravi writes: > > >Hi, > > >If I run "make load " from /usr/share/examples/kld/cdev/module > > directory > > >then I'm getting the following error message . > > > > > ># make load > > >mknod /dev/cdev c 32 0 > > >mknod: /dev/cdev : No such file or directory > > >*****Error code 1 > > > > > >Even if I execute the " mknod /dev/cdev c 32 0 " command at the > > terminal > > >I'm getting the same error message . > > > > > > > > >What is the reason for this ? > > >Please tell me the solution as well .. > > > > the load target in the makefile is outdated and the mknod command should > > simply be removed. > > From owner-freebsd-fs@FreeBSD.ORG Thu Aug 5 04:20:10 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EFBD16A4D9; Thu, 5 Aug 2004 04:20:10 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4A9A43D54; Thu, 5 Aug 2004 04:20:07 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i754OxI14983; Thu, 5 Aug 2004 12:24:59 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id c5c18446_e697_11d8_8cfa_0002b3cb4edc_16283; Thu, 05 Aug 2004 12:27:33 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i754CQE12361; Thu, 5 Aug 2004 12:12:26 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJB47M; Thu, 5 Aug 2004 12:19:56 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D86X; Thu, 5 Aug 2004 10:01:33 +0530 From: ravi To: Robert Watson In-Reply-To: References: Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091679993.4731.3.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Thu, 05 Aug 2004 09:56:33 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: Dan Nelson cc: freebsd-fs@freebsd.org cc: Poul-Henning Kamp cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Re: Regarding mknod X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 04:20:10 -0000 No. The device node that I'm trying to create is not appearing. Please tell me the solution . On Wed, 2004-08-04 at 17:46, Robert Watson wrote: > On Wed, 4 Aug 2004, ravi wrote: > > > Can u tell me the solution for this ? > > In FreeBSD 5.x, devfs will automatically create devices as specified in > make_dev(), being unable to run mknod(8) should not be a problem. Is > your > device node appearing? > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Principal Research Scientist, McAfee > Research > > > > > > On Wed, 2004-08-04 at 13:17, Poul-Henning Kamp wrote: > > > In message <1091602736.4760.64.camel@ravin>, ravi writes: > > > >Hi, > > > >If I run "make load " from /usr/share/examples/kld/cdev/module > > > directory > > > >then I'm getting the following error message . > > > > > > > ># make load > > > >mknod /dev/cdev c 32 0 > > > >mknod: /dev/cdev : No such file or directory > > > >*****Error code 1 > > > > > > > >Even if I execute the " mknod /dev/cdev c 32 0 " command at the > > > terminal > > > >I'm getting the same error message . > > > > > > > > > > > >What is the reason for this ? > > > >Please tell me the solution as well .. > > > > > > the load target in the makefile is outdated and the mknod command > should > > > simply be removed. > > > > > From owner-freebsd-fs@FreeBSD.ORG Thu Aug 5 07:25:49 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4DD916A4CE; Thu, 5 Aug 2004 07:25:49 +0000 (GMT) Received: from inetmg01.sony.com.sg (inetmg01.sony.com.sg [202.42.154.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F5643D3F; Thu, 5 Aug 2004 07:25:47 +0000 (GMT) (envelope-from ravi.nanjundappa@ap.sony.com) Received: from avgw02b.sony.com.sg (avgw02b [43.68.8.23]) by inetmg01.sony.com.sg (8.11.7+Sun/8.11.6) with SMTP id i757URI20913; Thu, 5 Aug 2004 15:30:27 +0800 (SGT) Received: from unknown(43.68.8.1) by avgw02b.sony.com.sg via csmap id ac5a2430_e6b1_11d8_8b62_0002b3cb4edc_22924; Thu, 05 Aug 2004 15:32:58 +0800 (SGT) Received: from sapsgssdibh01.ap.sony.com (bh01.ap.sony.com [43.68.15.23]) by seagw01.sony.com.sg (8.11.6+Sun/8.11.6) with ESMTP id i757HnE03697; Thu, 5 Aug 2004 15:17:49 +0800 (SGT) Received: from sapinsardexc01.sard.in.sony.com.sg (SAPINSARDEXC01 [43.88.102.8]) by sapsgssdibh01.ap.sony.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id QHNJBVCT; Thu, 5 Aug 2004 15:25:20 +0800 Received: from [43.88.102.67] (RAVIN [43.88.102.67]) by sapinsardexc01.sard.in.sony.com.sg with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id 37T3D9BS; Thu, 5 Aug 2004 13:06:59 +0530 From: ravi To: Dan Nelson In-Reply-To: <20040804050142.GB85344@dan.emsphone.com> References: <20040804050142.GB85344@dan.emsphone.com> Content-Type: text/plain Organization: SONY-SARD Message-Id: <1091691119.4724.19.camel@ravin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Thu, 05 Aug 2004 13:02:00 +0530 Content-Transfer-Encoding: 7bit cc: Brian Fundakowski Feldman cc: Raja Guha cc: freebsd-fs@freebsd.org cc: Robert Watson cc: Aniruddha Bohra cc: Andrey Simonenko Subject: Regarding writing to /proc entries X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 07:25:50 -0000 Hi, I've created my own /proc entries using linprocfs.c with read and write permissions like this " pfs_create_file(root,"EXAMPLE",&myfunc,NULL,NULL,PFS_RDWR); " and I've associated my own filler function as follows . static int myfunc(PFS_FILL_ARGS) { printf(" in myfunc() .....\n"); if(uio->uio_rw ==UIO_WRITE) printf(" write request \n"); else printf(" read request \n"); sbuf_printf(sb, " myfunc function called\n"); printf(" exiting from myfunc() .....\n"); return 0; } Please read the above statements . When I run "cat /proc/EXAMPLE" I'll get the follwing o/p on the screen . OUTPUT: in myfunc() ..... read request exiting from myfunc() ..... myfunc function called in myfunc() ..... read request exiting from myfunc() ..... Even though I'm checking the operation that is requested with the conditional statements if (uio->uiorw==UIO_WRITE) and when I run "echo 0 > /proc/EXAMPLE " I'm getting the following error ERROR: /proc/EXAMPLE : Operation not supported The same error is coming even for process related " ctl " files as well when I run "echo attach /proc/12/ctl " Please tell me the reason and solution for this . Regards, N Ravi