Hi folks,
One of my colleages found that a NULL pointer dereference BUG occurs
when trying to mount a snapshot without readonly mount option (i.e. -r).
Here is a patch to fix the problem below.
It can be applied by,
$ cd nilfs-2.0.0-testing-8
$ patch -p0 < patch_file
Though the bug doesn't occur for proper options, it would trouble
people trying snapshots.
I'm sorry for the inconvenience if it got you in trouble.
Regards,
Ryusuke Konishi
NILFS team.
---
Index: fs/super.c
===================================================================
--- fs.orig/super.c 2008-01-08 11:56:53.000000000 +0900
+++ fs/super.c 2008-01-08 11:57:08.000000000 +0900
@@ -1146,7 +1146,6 @@
sd.cno = 0;
sd.flags = flags;
if (nilfs_identify((char *)data, &sd)) {
- close_bdev_excl(sd.bdev);
err = -EINVAL;
goto failed;
}
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users