[PATCH] do not mount the same filesystem on the same mount point

2000-09-10 Thread Andries Brouwer
Dear Linus, Al, all: Below a patch to prevent mounting the same filesystem repeatedly on the same mount point. This 4-line patch is + /* Refuse the same filesystem on the same mount point */ + retval = -EBUSY; + if (nd.mnt && nd.mnt->mnt_sb == sb + &&

[PATCH] do not mount the same filesystem on the same mount point

2000-09-10 Thread Andries Brouwer
Dear Linus, Al, all: Below a patch to prevent mounting the same filesystem repeatedly on the same mount point. This 4-line patch is + /* Refuse the same filesystem on the same mount point */ + retval = -EBUSY; + if (nd.mnt nd.mnt-mnt_sb == sb +