From owner-freebsd-fs Sun Jun 18 7: 9:16 2000 Delivered-To: freebsd-fs@freebsd.org Received: from hetnet.nl (net014s.hetnet.nl [194.151.104.154]) by hub.freebsd.org (Postfix) with ESMTP id 402C237B51C; Sun, 18 Jun 2000 07:09:08 -0700 (PDT) (envelope-from leonardjo@hetnet.nl) Received: from potkoffie ([195.121.130.172]) by hetnet.nl with Microsoft SMTPSVC(5.5.1877.327.32); Sun, 18 Jun 2000 16:09:05 +0200 From: "Leonard den Ottolander" To: freebsd-fs@freebsd.org, freebsd-questions@freebsd.org Date: Sun, 18 Jun 2000 16:07:40 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Posting patch concerning linux extended to freebsd-fs? X-mailer: Pegasus Mail for Win32 (v3.01d) Message-ID: <018fb0509141260NET014S@hetnet.nl> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks! I would like to submit a (three line) patch to enable the use of linux extended filesystem. Note: Extended as in dos extended, not ext2fs . The linux extended partition is just a dos extended partition with a different identifier, as not to confuse dos. I am not sure whether the freebsd-fs list is used only for matters concerning the BSD filesystem, or postings on compatibility with other filesystems are welcome here as well. Cheers, Leonard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 18 7:21: 8 2000 Delivered-To: freebsd-fs@freebsd.org Received: from southern-software.com (rosetta.thundercat.com [203.37.173.7]) by hub.freebsd.org (Postfix) with SMTP id BC3F137B70E; Sun, 18 Jun 2000 07:20:27 -0700 (PDT) (envelope-from info@southern-software.com) Received: from southern-software.com [198.142.196.124] by southern-software.com (SMTPD32-4.06) id A846C73A0392; Sun, 18 Jun 2000 00:20:38 PDT From: info@southern-software.com Reply-To: info@southern-software.com To: info@southern-software.com Subject: Can you please assist ? Date: Sun, 18 Jun 2000 00:21:51 PDT Message-Id: <20000618142027.BC3F137B70E@hub.freebsd.org> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ___________________________________________________________ We are a software development company that specializes in security software. For some time now we have been working on developing a Client email program that contains security features never before available. In order for us to make this program the best that it can possibly be, we ask your assistance by taking a few minutes to answer these important questions for us. Which of the following functions do you consider to be important or essential for an email program? For questions 1-7, please rate 1-5. (1 being the least important and 5 being most important). A client email program should have: Question 1: The ability to prevent certain attachments that may possibly be carrying a virus. (This allows you to accept only safe attachments) Importance Rating______ Question 2: Automatic searching for file attachments that have been renamed or tampered with. (Virus senders can rename vbs files to txt files hoping you will open them) Importance Rating______ Question 3: The ability to limit the size of incoming email and attachments. (Reduce time wasted downloading large files, graphics, audio files, jokes, etc.) Importance Rating______ Question 4: The ability to select the size of outgoing emails and attachments. (Saves bandwidth as large files are roughly doubled when transferred by email). Importance Rating______ Question 5: An encrypted Address Book. (This will stop worm viruses sending copies of itself to your clients and/or friends). Importance Rating______ Question 6: The ability to restrict the number of attachments and size of attachments sent or received. And the ability to the restrict types of attachments received. (Gives control to employers and eliminate privacy issues arising). Importance Rating______ Question 7: A viewable log file containing information such as; email deleted without being opened, when email was downloaded, when email was read (opened), if email was forwarded or replied to etc. (Mail management and accountability at a glance) Importance Rating______ Question 8: Has your company been the victim of a computer virus attack? Yes/No ________ Question 9: If yes to question 8, approximately how many hours did it take to fix the problem? Hours ________ Question 10: If an email program was developed with the above security features, would you be interested in trialing a free demonstration version? Yes/No ________ Question 11: What percentage of email traffic is personal email? __________% We sincerely thank you for your time in answering these important questions for us. Sincere thanks, Graeme A. Ryan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 18 14:37:32 2000 Delivered-To: freebsd-fs@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 9168437B715; Sun, 18 Jun 2000 14:37:27 -0700 (PDT) (envelope-from kbyanc@posi.net) Received: from gateway.posi.net (user-33qth64.dialup.mindspring.com [199.174.196.196]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id RAA13519; Sun, 18 Jun 2000 17:37:24 -0400 (EDT) Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.9.3/8.9.3) with ESMTP id OAA09441; Sun, 18 Jun 2000 14:37:23 -0700 (PDT) (envelope-from kbyanc@posi.net) Date: Sun, 18 Jun 2000 14:37:22 -0700 (PDT) From: Kelly Yancey To: Leonard den Ottolander Cc: freebsd-fs@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: Posting patch concerning linux extended to freebsd-fs? In-Reply-To: <018fb0509141260NET014S@hetnet.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 18 Jun 2000, Leonard den Ottolander wrote: > Hi folks! > > I would like to submit a (three line) patch to enable the use of linux > extended filesystem. Note: Extended as in dos extended, not ext2fs . The linux > extended partition is just a dos extended partition with a different > identifier, as not to confuse dos. > I am not sure whether the freebsd-fs list is used only for matters concerning > the BSD filesystem, or postings on compatibility with other filesystems are > welcome here as well. > Send us the patches. :) Out of curiosity, what exactly does your patch do? DOS extended partitions are logically just mini-disks with their own partition table. The idea being to be able to chain partition tables (in theory, it could be a tree, but DOS can only handle chaining). I find it hard to believe that a 3 line patch would be enought to enumerate the partitions inside extended partitions, must less with arbitrary depth. But I've been amazed before :) Kelly -- Kelly Yancey - kbyanc@posi.net - Belmont, CA System Administrator, eGroups.com http://www.egroups.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jun 20 11:31:40 2000 Delivered-To: freebsd-fs@freebsd.org Received: from hetnet.nl (net090s.hetnet.nl [194.151.104.183]) by hub.freebsd.org (Postfix) with ESMTP id 6B5B137B89F; Tue, 20 Jun 2000 11:31:29 -0700 (PDT) (envelope-from leonardjo@hetnet.nl) Received: from potkoffie ([195.121.128.87]) by hetnet.nl with Microsoft SMTPSVC(5.5.1877.387.38); Tue, 20 Jun 2000 20:27:52 +0200 From: "Leonard den Ottolander" To: freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org Date: Tue, 20 Jun 2000 20:29:57 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Patch concerning linux extended fs References: <018fb0509141260NET014S@hetnet.nl> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01d) Message-ID: <0f9885227181460NET090S@hetnet.nl> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Kelly, > I find it hard to believe that a 3 line patch would > be enought to enumerate the partitions inside extended partitions, must less > with arbitrary depth. But I've been amazed before :) It's probably not really what you expect (or hope? for), and not that much of a deal (less than a mouse driver ;) ). I was just wondering where to post these kind of things. The only thing the patch does is make the linux extended partition type known and use it when available. > > I would like to submit a (three line) patch to enable the use of linux > > extended filesystem. I mean using as in mounting, not running from. The linux extended partition is just a dos extended partition with a different identifier (0x85 instead of 0x05). You can use it as an extra extended partition, without dos being upset about seeing another extended partition. I actually use it on a multi os machine which bios doesn't understand the 20G hd. (Dos, dos extended containing ia linux /boot, ufs 44bsd, linux extended.) Here comes the patch (for 4.0R): /sys/kern/subr_diskmbr.c Insert after line 51: #define DOSPTYP_LINUXEXTENDED 133 Insert at line 347 (original offset), before the closing bracket: || sp->ds_type == DOSPTYP_LINUXEXTENDED Insert at line 437, before closing bracket: || dp->dp_type == DOSPTYP_LINUXEXTENDED That's all there is to it. I'm not sure the existing code handles dos extended LBA partitions, or needs modification for this, so I didn't include it. You could try to add a DOSPTYP_EXTENDED_LBA (0x0F). Haven't tried. Might go seriously wrong. To make things comeplete you could also modify fdisk. /usr/src/sbin/i386/fdisk/fdisk.c Insert after line 166: ,{0x85, "Extended Linux"} Using two extended partitions you might want to increase MAXPARTITIONS in /sys/i386/boot/dosboot/disklabe.h, /sys/sys/diskslice.h and /sys/sys/disklabel.h. Haven't really tested this thoroughly, but it seems to run fine. Ciao, Leonard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jun 22 18:55:29 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hub.freebsd.org (Postfix) with ESMTP id 4219137C371 for ; Thu, 22 Jun 2000 18:55:26 -0700 (PDT) (envelope-from mbendiks@eunet.no) Received: from login-1.eunet.no (login-1.eunet.no [193.75.110.2]) by mail-relay.eunet.no (8.9.3/8.9.3/GN) with ESMTP id DAA56076 for ; Fri, 23 Jun 2000 03:55:25 +0200 (CEST) (envelope-from mbendiks@eunet.no) Received: from localhost (mbendiks@localhost) by login-1.eunet.no (8.9.3/8.8.8) with ESMTP id DAA82576 for ; Fri, 23 Jun 2000 03:55:25 +0200 (CEST) (envelope-from mbendiks@eunet.no) X-Authentication-Warning: login-1.eunet.no: mbendiks owned process doing -bs Date: Fri, 23 Jun 2000 03:55:25 +0200 (CEST) From: Marius Bendiksen To: freebsd-fs@freebsd.org Subject: Change to msdosfs Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Are there any objections to changing msdosfs to use the immutable flag to signify read-only operation, rather than the owner read/write bit? IMHO, this would be more true to the intended operation of the read-only bit. --- Marius Bendiksen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jun 22 20: 0:35 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hub.freebsd.org (Postfix) with ESMTP id 7F72A37B5BB for ; Thu, 22 Jun 2000 20:00:31 -0700 (PDT) (envelope-from mbendiks@eunet.no) Received: from login-1.eunet.no (login-1.eunet.no [193.75.110.2]) by mail-relay.eunet.no (8.9.3/8.9.3/GN) with ESMTP id FAA61055 for ; Fri, 23 Jun 2000 05:00:29 +0200 (CEST) (envelope-from mbendiks@eunet.no) Received: from localhost (mbendiks@localhost) by login-1.eunet.no (8.9.3/8.8.8) with ESMTP id FAA82768 for ; Fri, 23 Jun 2000 05:00:29 +0200 (CEST) (envelope-from mbendiks@eunet.no) X-Authentication-Warning: login-1.eunet.no: mbendiks owned process doing -bs Date: Fri, 23 Jun 2000 05:00:29 +0200 (CEST) From: Marius Bendiksen To: freebsd-fs@freebsd.org Subject: Amendment to previous suggestion re/msdosfs Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org After closer examination, making a mapping from the system bit to the immutable bit would be more semantically correct. --- Marius Bendiksen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Jun 23 2:29:42 2000 Delivered-To: freebsd-fs@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id 6EB3D37B949 for ; Fri, 23 Jun 2000 02:29:40 -0700 (PDT) (envelope-from kbyanc@posi.net) Received: from gateway.posi.net (user-2inip0p.dialup.mindspring.com [165.121.100.25]) by blount.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id FAA29734; Fri, 23 Jun 2000 05:29:37 -0400 (EDT) Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.9.3/8.9.3) with ESMTP id BAA10780; Fri, 23 Jun 2000 01:26:08 -0700 (PDT) (envelope-from kbyanc@posi.net) Date: Fri, 23 Jun 2000 01:26:07 -0700 (PDT) From: Kelly Yancey To: Marius Bendiksen Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Amendment to previous suggestion re/msdosfs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 23 Jun 2000, Marius Bendiksen wrote: > After closer examination, making a mapping from the system bit to the > immutable bit would be more semantically correct. > Sounds like a good idea to me. Kelly -- Kelly Yancey - kbyanc@posi.net - Belmont, CA System Administrator, eGroups.com http://www.egroups.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 8: 2:26 2000 Delivered-To: freebsd-fs@freebsd.org Received: from hetnet.nl (net015s.hetnet.nl [194.151.104.155]) by hub.freebsd.org (Postfix) with ESMTP id B07C737BC4E; Sat, 24 Jun 2000 08:02:12 -0700 (PDT) (envelope-from leonardjo@hetnet.nl) Received: from potkoffie ([195.121.130.139]) by hetnet.nl with Microsoft SMTPSVC(5.5.1877.387.38); Sat, 24 Jun 2000 17:02:06 +0200 From: "Leonard den Ottolander" To: freebsd-fs@freebsd.org Date: Sat, 24 Jun 2000 17:00:32 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Again:Patch concerning linux extended fs Cc: freebsd-hackers@freebsd.org In-reply-to: <39504651.1983201C@newsguy.com> X-mailer: Pegasus Mail for Win32 (v3.01d) Message-ID: <077090602151860NET015S@hetnet.nl> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello Daniel and others, > Please, take a look at diff(1). The prefered format for patches is a > context (-c) or unified (-u) diff, from original to modified. Yes, I read it in the handbook, just one day after the posting. I just don't seem to be able yet to swallow a megabyte of plaintext in one day. I'm working on it ;). > The prefered way to send problem reports, feature requests, etc, is the > command send-pr(1). Since we committers are a lazy bunch, you might then > poke people by mentioned your PR in an appropriate mailing list (give us > the number!). Preferably, right before weekend. :-) Well, I might do this someday soon, but I'll first check the docs on this. For now, I'll just send you the diff. Excuse me for any linewraps that might occur due to the mailers. For now it looks ok... *** subr_diskmbr.c.000 Fri Jan 28 11:22:07 2000 --- subr_diskmbr.c Sat Jun 24 16:00:43 2000 *************** *** 49,54 **** --- 49,55 ---- #include #define DOSPTYP_EXTENDED 5 #define DOSPTYP_EXTENDEDX 15 + #define DOSPTYP_LINUXEXTENDED 133 #define DOSPTYP_ONTRACK 84 #include #include *************** *** 344,350 **** sp -= NDOSPART; for (dospart = 0; dospart < NDOSPART; dospart++, sp++) if (sp->ds_type == DOSPTYP_EXTENDED || ! sp->ds_type == DOSPTYP_EXTENDEDX) mbr_extended(bp->b_dev, lp, ssp, sp->ds_offset, sp->ds_size, sp->ds_offset, max_nsectors, max_ntracks, mbr_offset, 1); --- 345,352 ---- sp -= NDOSPART; for (dospart = 0; dospart < NDOSPART; dospart++, sp++) if (sp->ds_type == DOSPTYP_EXTENDED || ! sp->ds_type == DOSPTYP_EXTENDEDX || ! sp->ds_type == DOSPTYP_LINUXEXTENDED) mbr_extended(bp->b_dev, lp, ssp, sp->ds_offset, sp->ds_size, sp->ds_offset, max_nsectors, max_ntracks, mbr_offset, 1); *************** *** 434,440 **** && dp->dp_start == 0 && dp->dp_size == 0) continue; if (dp->dp_typ == DOSPTYP_EXTENDED || ! dp->dp_typ == DOSPTYP_EXTENDEDX) { static char buf[32]; sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE, --- 436,443 ---- && dp->dp_start == 0 && dp->dp_size == 0) continue; if (dp->dp_typ == DOSPTYP_EXTENDED || ! dp->dp_typ == DOSPTYP_EXTENDEDX || ! dp->dp_typ == DOSPTYP_LINUXEXTENDED) { static char buf[32]; sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE, Well, thats it folks. Hope someone has some use for this. CUO, Leonard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 11:40:33 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hub.freebsd.org (Postfix) with ESMTP id 34D8B37BA91 for ; Sat, 24 Jun 2000 11:40:30 -0700 (PDT) (envelope-from mbendiks@eunet.no) Received: from login-1.eunet.no (login-1.eunet.no [193.75.110.2]) by mail-relay.eunet.no (8.9.3/8.9.3/GN) with ESMTP id UAA11521; Sat, 24 Jun 2000 20:40:28 +0200 (CEST) (envelope-from mbendiks@eunet.no) Received: from localhost (mbendiks@localhost) by login-1.eunet.no (8.9.3/8.8.8) with ESMTP id UAA93709; Sat, 24 Jun 2000 20:40:28 +0200 (CEST) (envelope-from mbendiks@eunet.no) X-Authentication-Warning: login-1.eunet.no: mbendiks owned process doing -bs Date: Sat, 24 Jun 2000 20:40:28 +0200 (CEST) From: Marius Bendiksen To: Kelly Yancey Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Amendment to previous suggestion re/msdosfs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Sounds like a good idea to me. Okay. Doug Rabson is committing some patches I sent him that fix some legacy issues, as well as consistently employing suser() credential handling. I'll send him a patchset to introduce this mapping as well. Marius To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 14: 5: 8 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hub.freebsd.org (Postfix) with ESMTP id 064BD37BC64; Sat, 24 Jun 2000 14:05:04 -0700 (PDT) (envelope-from mbendiks@eunet.no) Received: from login-1.eunet.no (login-1.eunet.no [193.75.110.2]) by mail-relay.eunet.no (8.9.3/8.9.3/GN) with ESMTP id XAA21925; Sat, 24 Jun 2000 23:05:02 +0200 (CEST) (envelope-from mbendiks@eunet.no) Received: from localhost (mbendiks@localhost) by login-1.eunet.no (8.9.3/8.8.8) with ESMTP id XAA94204; Sat, 24 Jun 2000 23:05:02 +0200 (CEST) (envelope-from mbendiks@eunet.no) X-Authentication-Warning: login-1.eunet.no: mbendiks owned process doing -bs Date: Sat, 24 Jun 2000 23:05:02 +0200 (CEST) From: Marius Bendiksen To: freebsd-fs@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: sys/ufs/ufs/ufs_quota.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Throughout ufs_quota, it appears as though a (struct ucred *) is passed to the various quota routines, rather than a (struct proc *). As I can see from the code, chkdq(), for example, should rather be using an suser() check upon a process structure, than testing cred->cr_uid==0. Are there any objections to changing this? --- Marius Bendiksen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 15:18:48 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id C409737B5C3 for ; Sat, 24 Jun 2000 15:18:44 -0700 (PDT) (envelope-from ino-waiting@gmx.net) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout1.freenet.de with esmtp (Exim 3.14 #3) id 135yGB-00085x-00 for freebsd-fs@freebsd.org; Sun, 25 Jun 2000 00:18:43 +0200 Received: from [213.6.11.52] (helo=spotteswoode.de) by mx2.freenet.de with smtp (Exim 3.14 #3) id 135yGA-0001A3-00 for freebsd-fs@freebsd.org; Sun, 25 Jun 2000 00:18:42 +0200 Received: (qmail 1030 invoked by uid 0); 24 Jun 2000 22:18:40 -0000 From: "clemensF" Date: Sun, 25 Jun 2000 00:18:40 +0200 To: Marius Bendiksen Cc: freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: sys/ufs/ufs/ufs_quota.c Message-ID: <20000625001840.A1017@spotteswoode.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from mbendiks@eunet.no on Sat, Jun 24, 2000 at 11:05:02PM +0200 Organization: private X-PGP-ID: 0xD4685B88-4894C483/DH X-PGP-FPR: 0FAE 5F53 CEB9 49DE 9300 3035 D468 5B88 4894 C483 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Marius Bendiksen: > the various quota routines, rather than a (struct proc *). As I can see > >from the code, chkdq(), for example, should rather be using an suser() > check upon a process structure, than testing cred->cr_uid==0. Are there > any objections to changing this? this should be more portable and future-save, right? clemens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 16:42:55 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hub.freebsd.org (Postfix) with ESMTP id 3E11737B50F; Sat, 24 Jun 2000 16:42:51 -0700 (PDT) (envelope-from mbendiks@eunet.no) Received: from login-1.eunet.no (login-1.eunet.no [193.75.110.2]) by mail-relay.eunet.no (8.9.3/8.9.3/GN) with ESMTP id BAA33272; Sun, 25 Jun 2000 01:42:48 +0200 (CEST) (envelope-from mbendiks@eunet.no) Received: from localhost (mbendiks@localhost) by login-1.eunet.no (8.9.3/8.8.8) with ESMTP id BAA94649; Sun, 25 Jun 2000 01:42:48 +0200 (CEST) (envelope-from mbendiks@eunet.no) X-Authentication-Warning: login-1.eunet.no: mbendiks owned process doing -bs Date: Sun, 25 Jun 2000 01:42:48 +0200 (CEST) From: Marius Bendiksen To: clemensF Cc: freebsd-fs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: sys/ufs/ufs/ufs_quota.c In-Reply-To: <20000625001840.A1017@spotteswoode.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > this should be more portable and future-save, right? Actually, our suser() implementation is pretty non-portable. However, using suser() rather than a credential check is better form. In the former case, you are checking for the presence of special privileges, while in the latter case, you are checking for a particular user id. As such things as CAP_FOO become more common, the latter method is a quite unneccessary obstacle. Marius To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 17:32:34 2000 Delivered-To: freebsd-fs@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id 297D537B6D7 for ; Sat, 24 Jun 2000 17:32:30 -0700 (PDT) (envelope-from ino-waiting@gmx.net) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout1.freenet.de with esmtp (Exim 3.14 #3) id 1360Lc-0000K1-00 for freebsd-fs@freebsd.org; Sun, 25 Jun 2000 02:32:28 +0200 Received: from [213.6.8.214] (helo=spotteswoode.de) by mx2.freenet.de with smtp (Exim 3.14 #3) id 1360Lb-0007rn-00 for freebsd-fs@FreeBSD.ORG; Sun, 25 Jun 2000 02:32:28 +0200 Received: (qmail 3291 invoked by uid 0); 25 Jun 2000 00:32:28 -0000 From: "clemensF" Date: Sun, 25 Jun 2000 02:32:28 +0200 To: freebsd-fs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: sys/ufs/ufs/ufs_quota.c Message-ID: <20000625023228.B3259@spotteswoode.de> Mail-Followup-To: freebsd-fs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <20000625001840.A1017@spotteswoode.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from mbendiks@eunet.no on Sun, Jun 25, 2000 at 01:42:48AM +0200 Organization: private X-PGP-ID: 0xD4685B88-4894C483/DH X-PGP-FPR: 0FAE 5F53 CEB9 49DE 9300 3035 D468 5B88 4894 C483 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Marius Bendiksen: > Actually, our suser() implementation is pretty non-portable. i take what i get. when i can do "man [23] ", i approve of the consequences. clemens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 17:50:51 2000 Delivered-To: freebsd-fs@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 02EA537B520; Sat, 24 Jun 2000 17:50:39 -0700 (PDT) (envelope-from krentel@dreamscape.com) Received: from dreamscape.com (sa7-p42.dreamscape.com [209.4.228.170]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id UAA25575; Sat, 24 Jun 2000 20:48:59 -0400 (EDT) X-Dreamscape-Track-A: sa7-p42.dreamscape.com [209.4.228.170] X-Dreamscape-Track-B: Sat, 24 Jun 2000 20:48:59 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id UAA14215; Sat, 24 Jun 2000 20:49:51 -0400 (EDT) (envelope-from krentel) Date: Sat, 24 Jun 2000 20:49:51 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200006250049.UAA14215@dreamscape.com> To: freebsd-emulation@freebsd.org, freebsd-fs@freebsd.org Subject: panic running linux binaries from ext2fs Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I get a panic when running linux binaries directly from an ext2fs partition. They run fine on UFS, but on ext2fs they panic. I'm currently using linux_base-6.1 and 4.0-stable (as of May 20), but the problem goes back to at least 3.2. See PR kern/19407. I don't know whether the real problem is with Linux emulation or ext2fs or some weird combination of the two. Or maybe it's something with kernel locking, some of the panics say "lockmgr: not exclusive lock holder". I've asked about this before and the answer was "works fine for me." But it happens so easily and reliably for me that I'm just baffled about what I'm doing differently. I'd like to track this down, but I don't know enough about the internals of the Linuxulator or ext2fs. But I can apply patches and send back stack traces, if someone who knows more about the internals can help me out. --Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 19:29:20 2000 Delivered-To: freebsd-fs@freebsd.org Received: from camus.cybercable.fr (camus.cybercable.fr [212.198.0.200]) by hub.freebsd.org (Postfix) with SMTP id 65BB037B509 for ; Sat, 24 Jun 2000 19:29:12 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 2761619 invoked from network); 25 Jun 2000 02:29:09 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by camus.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 25 Jun 2000 02:29:09 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id EAA54099; Sun, 25 Jun 2000 04:29:08 +0200 (CEST) (envelope-from root) Posted-Date: Sun, 25 Jun 2000 04:29:08 +0200 (CEST) To: "Mark W. Krentel" Cc: freebsd-fs@FreeBSD.ORG Subject: Fw: panic running linux binaries from ext2fs Reply-To: clefevre@citeweb.net, krentel@dreamscape.com, freebsd-emulation@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 25 Jun 2000 04:29:06 +0200 Message-ID: Lines: 33 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Mark W. Krentel" writes: > I get a panic when running linux binaries directly from an ext2fs > partition. They run fine on UFS, but on ext2fs they panic. I'm > currently using linux_base-6.1 and 4.0-stable (as of May 20), but > the problem goes back to at least 3.2. See PR kern/19407. > > I don't know whether the real problem is with Linux emulation or > ext2fs or some weird combination of the two. Or maybe it's something > with kernel locking, some of the panics say "lockmgr: not exclusive > lock holder". I've asked about this before and the answer was "works > fine for me." But it happens so easily and reliably for me that I'm > just baffled about what I'm doing differently. > > I'd like to track this down, but I don't know enough about the > internals of the Linuxulator or ext2fs. But I can apply patches and > send back stack traces, if someone who knows more about the internals > can help me out. how is mounted your linux filesystem ? is it mounted to /linux or to /compat/linux ? if /linux, do you have a symlink like /compat/linux -> /linux ? how do you run your linux application ? /linux/bin/whatever or /compat/linux/bin/whatever ? /linux/bin/whatever may failed if not branded to Linux, while /compat/linux/bin/whatever should work. try "brandelf -t Linux /linux/bin/whatever" before to run /linux/bin/whatever and make the symlink /compat/linux to /linux if it doesn't exists. Cyrille. -- home:mailto:clefevre@no-spam.citeweb.net Supprimer "no-spam." pour me repondre. work:mailto:Cyrille.Lefevre@no-spam.edf.fr Remove "no-spam." to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 19:53:23 2000 Delivered-To: freebsd-fs@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id B4BF837B708; Sat, 24 Jun 2000 19:53:09 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 1361oM-000F37-00; Sun, 25 Jun 2000 03:06:14 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 1361oM-0002n7-00; Sun, 25 Jun 2000 03:06:14 +0100 Date: Sun, 25 Jun 2000 03:06:14 +0100 From: Ben Smithurst To: clemensF Cc: freebsd-fs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: sys/ufs/ufs/ufs_quota.c Message-ID: <20000625030614.D57917@strontium.scientia.demon.co.uk> References: <20000625001840.A1017@spotteswoode.de> <20000625023228.B3259@spotteswoode.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="peRj85VDUce1fu/0" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000625023228.B3259@spotteswoode.de> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --peRj85VDUce1fu/0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable clemensF wrote: >> Marius Bendiksen: >=20 >> Actually, our suser() implementation is pretty non-portable. >=20 > i take what i get. when i can do "man [23] ", i approve of the > consequences. Too bad suser() is in section 9 then. :-) --=20 Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D --peRj85VDUce1fu/0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: kZGGY7PU37TlyidX7uNAyaqXTZ9kjx1i iQCVAwUBOVVpFSsPVtiZOS99AQGFkgP+ONqbj+BKP7/X34TC9SgGME7ktp2roDFI mK6m5XlP78/D4ohTEtD21jAtNGwFWNcZiUAAOH9OH1T+FPcgxuSIgSvW//aTYZux WmKfHSKYd5iktEsTZJkRtQBRxmDCmNgbXrDMn4C+D+WmK+78ZKzKi0iOvUpJL4B8 C6vZJJlGYJ0= =8RWH -----END PGP SIGNATURE----- --peRj85VDUce1fu/0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 20:55:24 2000 Delivered-To: freebsd-fs@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 986DF37B6D7 for ; Sat, 24 Jun 2000 20:55:17 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 8168491 invoked from network); 25 Jun 2000 03:53:50 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 25 Jun 2000 03:53:50 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id FAA54969; Sun, 25 Jun 2000 05:53:48 +0200 (CEST) (envelope-from root) Posted-Date: Sun, 25 Jun 2000 05:53:48 +0200 (CEST) To: fs@FreeBSD.ORG Cc: hacker@FreeBSD.ORG Subject: strange symlink behaviour if / terminated Reply-To: clefevre@citeweb.net X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 25 Jun 2000 05:53:45 +0200 Message-ID: Lines: 45 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org preliminaries : # mkdir -p /path/name /path/to # touch /path/name/file # ln -s /path/name /path/to/symlink # mv /path/to/symlink/ /other/location ^ note the terminating slash. move the target of the symlink instead of the symlink itself. same results w/ rm -r and cp -r. slightly different results w/ rm and cp. # rm /path/to/symlink/ rm: /path/to/symlink/: is a directory # cp /path/to/symlink/ /other/location cp: /path/to/symlink/ is a directory (not copied). # rmdir -p /path/to/symlink/ remove the symlink itself instead of do nothing, such as in : # rmdir -p /path/to/symlink rmdir: /path/to/symlink: Not a directory also, strange output from rmdir -p : # mkdir -p /path/name # rmdir -p /path/name rmdir: : No such file or directory # mkdir -p /path/name/ # rmdir -p /path/name/ rmdir: /path/name: No such file or directory I don't have done these tests under some other OSes (HP-UX, Solaris, IRIX) yet, but I'm sure that they do nothing or they work on symlink itself instead of the target. Cyrille. -- home:mailto:clefevre@no-spam.citeweb.net Supprimer "no-spam." pour me repondre. work:mailto:Cyrille.Lefevre@no-spam.edf.fr Remove "no-spam." to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 24 23:10: 7 2000 Delivered-To: freebsd-fs@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 0A8F937B531; Sat, 24 Jun 2000 23:09:59 -0700 (PDT) (envelope-from krentel@dreamscape.com) Received: from dreamscape.com (sA15-p42.dreamscape.com [209.217.195.105]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id CAA06991; Sun, 25 Jun 2000 02:08:15 -0400 (EDT) X-Dreamscape-Track-A: sA15-p42.dreamscape.com [209.217.195.105] X-Dreamscape-Track-B: Sun, 25 Jun 2000 02:08:15 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id CAA15375; Sun, 25 Jun 2000 02:08:58 -0400 (EDT) (envelope-from krentel) Date: Sun, 25 Jun 2000 02:08:58 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200006250608.CAA15375@dreamscape.com> To: clefevre@citeweb.net Subject: Re: panic running linux binaries from ext2fs Cc: freebsd-emulation@freebsd.org, freebsd-fs@freebsd.org Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > how is mounted your linux filesystem ? > is it mounted to /linux or to /compat/linux ? > if /linux, do you have a symlink like /compat/linux -> /linux ? I use the linux_base-6.1 port, which installs some 57 Meg on /compat/linux. But all that's on /usr, a UFS partition. My machine dual boots between Linux and Freebsd, so the Linux partitions are on a different slice. I mount Linux's / partition on /mnt, usually read-only to reduce the number of fsck's after each panic. # Device Mountpoint FStype Options Dump Pass# /dev/da0s1 /mnt ext2fs ro,noauto 0 0 > how do you run your linux application ? > /linux/bin/whatever or /compat/linux/bin/whatever ? I'm not running the binaries in /compat/linux. I cd to /mnt/bin (Linux's /bin) and run ./ls. > /linux/bin/whatever may failed if not branded to Linux, > while /compat/linux/bin/whatever should work. > try "brandelf -t Linux /linux/bin/whatever" before to run /linux/bin/whatever > and make the symlink /compat/linux to /linux if it doesn't exists. I haven't branded them because I wasn't sure how Linux would react to the brand. Besides, it doesn't seem to have trouble identifying that they are Linux binaries. But I'll try the experiment tomorrow and report if there's any difference. All good ideas that could cause emulation to fail, but I don't see where they would cause a panic. P.S. I know I announced this to both -emulation and -fs, but let's restrict the follow-ups to one or the other, probably -emulation. --Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message