consider this small patch against linux-2.2.19 with devfs-patch-v99.20,
to
allow users of 2.2 kernel the use of devfsd 1.3.13.
--- fs/devfs/base.c 2001/07/27 13:30:51 1.17
+++ fs/devfs/base.c 2001/08/10 12:22:00
@@ -2829,6 +2829,7 @@
static int devfs_unlink (struct inode *dir, struct dentry *dentry)
{
struct devfs_inode *di;
+ struct inode *inode = dentry->d_inode;
#ifdef CONFIG_DEVFS_DEBUG
char txt[STRING_LENGTH];
@@ -2847,6 +2848,8 @@
di = get_devfs_inode_from_vfs_inode (dentry->d_inode);
if (di == NULL) return -ENOENT;
if (!di->de->registered) return -ENOENT;
+ devfsd_notify_one (di->de, DEVFSD_NOTIFY_DELETE, inode->i_mode,
+ inode->i_uid, inode->i_gid,
inode->i_sb->u.generic_sbp);
di->de->registered = FALSE;
di->de->hide = TRUE;
free_dentries (di->de);
diff -u -r1.1.1.1 devfs_fs.h
--- include/linux/devfs_fs.h 2000/06/09 08:56:12 1.1.1.1
+++ include/linux/devfs_fs.h 2001/08/10 12:22:01
@@ -20,6 +20,7 @@
#define DEVFSD_NOTIFY_LOOKUP 4
#define DEVFSD_NOTIFY_CHANGE 5
#define DEVFSD_NOTIFY_CREATE 6
+#define DEVFSD_NOTIFY_DELETE 7
#define DEVFS_PATHLEN 1024 /* Never change this
otherwise the
binary interface will
change */
-- Daniel Wagner | mailto:daniel@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/