Re: strange nfs behavior in 2.2.18 and 2.4.0-test12

2000-12-21 Thread Andreas Dilger
/etc/rc.local > > mount -t vfat /dev/hdb1 /hard2 > mount -t vfat /dev/hdb5 /hard4 > mount -t vfat /dev/hdc1 /hard3 > mount -t vfat /dev/hda1 /hard1 Out of curiosity, why not just put them into /etc/fstab? Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound o

Re: /dev/random: really secure?

2000-12-18 Thread Andreas Dilger
configurable makes it even harder for a cracker to know what affects the entropy pool. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/a

Re: [patch-2.4.0-test13-pre3] rootfs (2nd attempt)

2000-12-18 Thread Andreas Dilger
(ROOT_DEV)); mount_it: printk ("VFS: Mounted root (%s filesystem)%s.\n", -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/

Re: [Q] Remote serial ports?

2000-12-15 Thread Andreas Dilger
"[NEW DRIVER] New user space serial port" which does just what you want. Just-in-time kernel development has arrived. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungr

Re: [PATCH] 2.2.18 ext2 large file bug?

2000-12-13 Thread Andreas Dilger
Al Viro writes: > (x>>33) is the same as (x / (1LL<<33)). I.e. _with_ your change it > becomes "file >= 8Gb", instead of the current (correct) "file >= 2Gb". OOPS. My bad. You are right. Time to hide head in sand. Cheers, Andreas -- Andreas

[PATCH] 2.2.18 ext2 large file bug?

2000-12-13 Thread Andreas Dilger
t) >> 33) && !EXT3_HAS_RO_COMPAT_FEATURE(sb, EXT3_FEATURE_RO_COMPAT_LARGE_FILE)) { /* If this is the first large file created, add a flag -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto

Re: e2fs block to physical block translation

2000-12-11 Thread Andreas Dilger
bits - 2)) + \ + (1LL << (bits - 2)) * (1LL << (bits - 2)) + \ + (1LL << (bits - 2)) * (1LL << (bits - 2)) * (1LL << (bits - 2))) * \ +(1LL << bits)) - 1, 512LL * ((1LL << 3

Re: [CFT][RFC] ext2_new_inode() fixes and cleanup

2000-12-01 Thread Andreas Dilger
"bit already set for inode %d", j); goto repeat; } */ # Need to check that we got a good gdp back here... > +fail2: > + gdp = ext2_get_group_desc (sb, i, &bh2); if (!gdp) goto fail; > + gdp

Re: [PATCH] Re: [bug] infinite loop in generic_make_request()

2000-11-30 Thread Andreas Dilger
Andrea writes: > On Thu, Nov 30, 2000 at 01:05:53PM -0700, Andreas Dilger wrote: > > the RAID and LVM make_request functions should be changed to do that > > instead (i.e. 0 on success, -ve on error, and maybe "1" if they do their > > own recursion to break the loop

Re: DVD on Linux

2000-11-30 Thread Andreas Dilger
vance! UDF is an extra patch for 2.2 kernels (it _may_ be in 2.2.18, I don't recall). It is standard on 2.4. You can get the UDF patches at sourceforge, IIRC. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they ca

Re: [PATCH] Re: [bug] infinite loop in generic_make_request()

2000-11-30 Thread Andreas Dilger
ed to other kernel functions. Normally, we return 0 on success, and -ve on error. Maybe the RAID and LVM make_request functions should be changed to do that instead (i.e. 0 on success, -ve on error, and maybe "1" if they do their own recursion to break the loop)?

Re: 'holey files' not holey enough.

2000-11-30 Thread Andreas Dilger
if your "dd" is actually seeking, or just pretending to... Maybe an strace of the "dd" call will tell us if it is screwing with our minds. Also, if you could make a scratch ext2 filesystem with 1k blocks, and see if it does the same thing. Even better would be to try a different ker

Re: Pls add this driver to the kernel tree !!

2000-11-30 Thread Andreas Dilger
driver for all of the kernel versions, so they don't have to bugfix each driver version. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucal

Re: ext2 directory size bug (?)

2000-11-29 Thread Andreas Dilger
7;t really worry about it. I think the scenario where you have a large amount of space in directories that will never be used again is very unusual and should not be a reason to make the code more complex. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of ant

Re: 'holey files' not holey enough.

2000-11-29 Thread Andreas Dilger
47515 47516 47517 47518 47519 47520 ... 48723 48724 TOTAL: 983 ^^^ these are ext2fs sized blocks, not necessarily kB If what debugfs says doesn't match du, then it is du/libc/stat that is broken. If debugfs says the file actually has 600 bytes of data, then it is the filesystem tha

Re: searchable l-k archive

2000-11-29 Thread Andreas Dilger
e http://marc.theaimsgroup.com/?l=linux-kernel&r=1&w=4 Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbe

Re: [PATCH] no RLIMIT_NPROC for root, please

2000-11-28 Thread Andreas Dilger
tem where root != god. > root should be able to do fork() regardless of any limits, > and IMHO the following patch is the right thing. Then set the rlim_cur to unlimited, and blow your system up as you like. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a poun

Re: ext2 filesystem corruptions back from dead? 2.4.0-test11

2000-11-22 Thread Andreas Dilger
ly already done so). If you haven't done a full fsck on this filesystem in a long time, there is a chance the corruption was from the old kernel bug. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ w

Re: Ext2 & Performances

2000-11-21 Thread Andreas Dilger
. The current (0.0.5b) ext3 code is doing pretty good, and if you use metadata-only journalling it is about as fast as ext2. I still wouldn't use this on a production system where data loss is fatal, although I have never had any data loss or filesystem corruption because of ext3. Cheers, Andr

[PATCH] ext2 COMPAT flag fixup

2000-11-20 Thread Andreas Dilger
en for ext3, and no complaints at least from Ted (he is aware of the issues). Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/Peopl

Re: ext2 sparse superblocks

2000-11-19 Thread Andreas Dilger
block filesystem, this would happen at 524 TB. With sparse filesystems, the metadata will only take a small percentage of the available space. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, lea

Re: [PATCH] ext2 largefile fixes + [f]truncate() error value fix

2000-11-18 Thread Andreas Dilger
e middle of "if" blocks, etc? Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert - To unsubs

Re: Advanced Linux Kernel/Enterprise Linux Kernel

2000-11-14 Thread Andreas Dilger
t think the IDE code is ready for hot-swap yet. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert

Re: [PATCH] ext2 cpu<->le32 thinkos? (-test10)

2000-11-08 Thread Andreas Dilger
sb->u.ext2_sb.s_es->s_state = cpu_to_le16(sb->u.ext2_sb.s_mount_state); > mark_buffer_dirty(sb->u.ext2_sb.s_sbh); > } > db_count = sb->u.ext2_sb.s_db_per_group; > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: ext3 vs. JFS file locations...

2000-11-03 Thread Andreas Dilger
question (actually the InterMezzo distributed filesystem uses the ext3-jfs functionality to do compound transactions on disk to ensure cluster coherency). I think that Stephen at one time said he would change the name, but I guess he has not done so yet. Cheers, Andreas -- Andreas Dilger \ "

Re: fork in module?

2000-11-01 Thread Andreas Dilger
nd obdfs/super.c (init_module, init_obdfs, cleanup_module) at: ftp://ftp.stelias.com/pub/obd/obd-0.004.tgz This module also does slab-cache initialization and cleanup (properly!), so that is also worth looking at. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and

Re: 2.2.X patch query (with initial PATCH against 2.2.17)

2000-10-31 Thread Andreas Dilger
machine - can also print logs to printer http://www-miaif.lip6.fr/willy/pub/linux-patches/kmsgdump/ It has a 2.2 and 2.3 version (nothing recently, probably because of 2.4 freeze). It would probably be a prime candidate for the "loadable SysRq modules" patch that has been posted

Re: 2.2.X patch query

2000-10-30 Thread Andreas Dilger
ct that such a patch wouldn't make it into 2.2 or 2.4. I also don't see why you want to have a strangely formatted floppy, since even a regular 1.44 format will hold your proposed maximum 1MB buffer. Since the printk buffer is pinned kernel memory, you probably don't want that an

Re: Question: multiple major numbers - one driver

2000-10-27 Thread Andreas Dilger
rs that have multiple major numbers registered (per Documentation/devices.txt). Some of the storage drivers have been allocating blocks of 8 major numbers at a time. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they ca

Re: Big file support in Linux 2.2

2000-10-27 Thread Andreas Dilger
your own) to really support LFS. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert - To unsubscrib

Re: LVM snapshotting broken?

2000-10-26 Thread Andreas Dilger
__u32 lv_chunk_size; __u32 lv_snapshot_minor; +#ifdef __KERNEL__ struct kiobuf * lv_iobuf; struct semaphore lv_snapshot_sem; struct list_head * lv_snapshot_hash_table; -unsigned long lv_snapshot_hash_mask; +ulong lv_snapshot_hash_mask; +#else +char dummy[200]; +#e

Re: ext2fs disaster - how to recover some files ?

2000-10-25 Thread Andreas Dilger
r 98304, 163840, 229376, 81920) to see if that works. I think I will submit a patch to Ted which offers more suggestions than 8193 for backup blocks, since not too many people know where the backups are located on more recent filesystems since they will normally have 4kB blocks these days. Cheers,

Re: [linux-lvm] 2.4.0-test10-pre4 oops with LVM

2000-10-23 Thread Andreas Dilger
nux-kernel and/or linux-mm lists to see if they can find more about it. It may already have been fixed. One other thing to check is if this was the first oops, or if there was an earlier one. It is usually the first oops that is the real problem, and later ones do not really help much. Cheers,

Re: 2.2.17+reiserfs crash

2000-10-12 Thread Andreas Dilger
Sudhindra Herle, you write: > I just got two separate crashes using 2.2.17 and reiserfs. You should probably contact the reiserfs mailing list because reiserfs is not in the official kernel. > I have lost faith in reiserfs. So, I'll rebuild the kernel and move back > to EXT2. Oh well... Cheers

Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler

2000-10-09 Thread Andreas Dilger
to kill. Having a SIGDANGER handler is good for 2 reasons: 1) Lets processes know when memory is short so they can free needless cache. 2) Mark process with a SIGDANGER handler as "more important" than those without. Most people won't care about this, but init, and X, and

Re: (OT -- Partition Magic for Linux?) Re: Newer motherboards / CPU's/ hardware with Linux

2000-10-09 Thread Andreas Dilger
ative? The GNU parted program is a partition-magic work-alike. I think you can find it at parted.gnu.org. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mdds

Re: ext3 and Software RAID

2000-10-07 Thread Andreas Dilger
oblem is with RAID doing buffer cache snooping and causing data to be written out-of-order to disk (on 2.2). This is fixed in 2.4, but there _may_ still be a problem in 2.4 when rebuilding the array (on disk failure) in 2.4... I'm not too sure of the latter though... Cheers, Andreas -- Andreas

Re: acquiring resources shared or exclusive

2000-10-04 Thread Andreas Dilger
chronization for reads (shared) and writes > (exclusively) in the kernel. I assume it can be done it's just that I'm not > sure how to do it yet. This is probably a very easy question. There are read/write locks available in the kernel. Look in include/linux/spinlock.h and include/linux/brlo

Re: Status of ReiserFS + Journalling

2000-10-04 Thread Andreas Dilger
't think there is a problem, but watch out for software RAID 5 and journalling filesystems (reiser or ext3, at least under 2.2) - it can have problems if there is a disk crash. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,

Re: Soft-Updates for Linux ?

2000-10-02 Thread Andreas Dilger
but as with regular loopback devices, there is a 2GB limit. I posted it to fsdevel a few months ago, but I have also uploaded it to: ftp://ftp.stelias.com/pub/adilger/loopdiscard-2.2.16.patch ftp://ftp.stelias.com/pub/adilger/loop_discard.c The loop_discard.c program simply calls the ioctl to enable or disabl

Re: 2.2.x + Reiserfs + ext3 question.

2000-10-01 Thread Andreas Dilger
lly like to > use both simultaneously and to some testing. There are some name conflicts between the ext3 and reiserfs patches, namely journal_release() and buffer_journaled(). In my kernel code, the reiserfs functions were renamed reiser_*(). Other than that they should work together. Ch

Re: ext2 caches

2000-09-29 Thread Andreas Dilger
ad-only mounted fs, you don't have problems with other programs changing the fs at the same time, but it is still dangerous to change the superblock directly like this. Once you can mount read-only, can you not also simply unmount the fs? What is it you are trying to do? Cheers, Andreas --

Re: namei() in sys_open() breaking umount?

2000-09-29 Thread Andreas Dilger
ld be very grateful if someone could point out to me where the > problem is - and tell me how to solve it :-) When you have a dentry reference, you need to free it via dput(), so that the kernel knows the file is no longer in use. This is the same with iget() and iput() - you always need to fre

Re: [CFT][PATCH] ext2 directories in pagecache

2000-09-28 Thread Andreas Dilger
" at fsck time if the second dir block is not written to disk, because no directory is referencing these inodes. This would also explain why the direntry offset is pointing past the end of the first dir block, because the next block was added at the time the new file was created, but then later

Re: [CFT][PATCH] ext2 directories in pagecache

2000-09-26 Thread Andreas Dilger
ry->d_name.len > UFS_MAXNAMLEN) return ERR_PTR(-ENAMETOOLONG) should probably be changed back to: if (dentry->d_name.len > EXT2_NAME_LEN) return ERR_PTR(-ENAMETOOLONG) Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of

Re: RAID disk / raw device accounting

2000-09-22 Thread Andreas Dilger
Mark Givens writes: > Are there any tools/patches that allow for RAID disk and/or raw device > accounting? You can use Stephen Tweedie's "sard" patches, available at: ftp://ftp.linux.org.uk/pub/linux/sct/fs/profiling/sard-0.6.tar.gz -- Andreas Dilger \ "If a man

Re: Linux kernel 2.2.17 appears not support >512M RAM Disk

2000-09-20 Thread Andreas Dilger
ecause nobody ever tries such things due to reason of sanity... It may be you are trying to do something which can better be done another way. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him s

Re: The INN/mmap bug

2000-09-18 Thread Andreas Dilger
Daniel writes: > Alexander Viro wrote: > > On Mon, 18 Sep 2000, Andreas Dilger wrote: > > > This may actually be a problem in the future... what about shared access > > > block devices like FCAL or a distributed filesystem? It has to be > > > possible for pa

Re: problem with cscope and 2.4-test8 source file

2000-09-18 Thread Andreas Dilger
> problem. Looking at this printk makes me think that this is better off in the man page than in the kernel... Maybe you should just submit a patch which removes the whole hpfs_help() function, and updates the mount(8) man page... Cheers, Andreas -- Andreas Dilger \ "If a man ate

Re: stuck on TLB IPI wait (CPU#0) at 2.2.17+reiserfs+ide+raid

2000-09-18 Thread Andreas Dilger
goto tq_scheduler_back; Does this have an impact on the system when not using reiserfs? What is it that reiserfs does that affects the scheduler? Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leavi

Re: NFS locking bug -- limited mtime resolution means nfs_lock() doesnot provide coherency guarantee

2000-09-14 Thread Andreas Dilger
pport, but can be used for a variety of other extensions to ext2. As Ted indicates, the EAs are stored in another block, so it will reduce performance if the block is not already in memory. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,

Re: Duplicate messages

2000-09-12 Thread Andreas Dilger
email was delivered to the reiserfs mailing list and then resent out to the kernel mailing list. Either it is an issue at the reiserfs mailing list, or a problem at "[EMAIL PROTECTED]" which is a real domain, despite the name. Cheers, Andreas PS - this note has been CC'd

Re: GPL violations: make it harder

2000-09-05 Thread Andreas Dilger
Brian Hayward writes: > I also think it's a logical conclusion that a patch to a GPL'd program is > released under the GPL - even if you don't specifically say so. Actually, this totally makes sense, because a patch contains "context" lines and therefore includes GPL code in it - hence it MUST be

Re: Small bugfix in ext2/namei.c

2000-09-01 Thread Andreas Dilger
Theodore Ts'o writes: > Dr. Michael Weller writes: > > Sorry, I've no idea about the ext2 and fs implementation. > > However did you read the comment below and convince yourself that 'err' is > > always set correctly? > > I looked at it and was convinced. Ted and I submitted patches to this e

<    2   3   4   5   6   7