Quoting myself .. whee. Just re-read and found it lame , here is the
modified patch:
--- linux/drivers/block/loop.c Tue Aug 12 22:06:54 1997
+++ /usr/src/linux/drivers/block/loop.c Mon Mar 30 16:38:28 1998
@@ -286,6 +286,7 @@
{
struct file *file;
struct inode *inode;
+ int i;
if (arg >= NR_OPEN || !(file = current->files->fd[arg]))
return -EBADF;
@@ -296,6 +297,9 @@
printk("loop_set_fd: NULL inode?!?\n");
return -EINVAL;
}
+ for( i=0; i < MAX_LOOP ; i++ )
+ if ( loop_dev[i].lo_inode == inode )
+ return -EBUSY;
if (S_ISBLK(inode->i_mode)) {
int error = blkdev_open(inode, file);
if (error)
Regards,
Franck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu