static struct fuse_conn *get_conn(struct file *file, struct super_block *sb)
{
struct fuse_conn *fc;
- struct inode *ino;
- ino = file->f_dentry->d_inode;
if (file->f_op != &fuse_dev_operations) {
printk("FUSE: bad communication file descriptor\n");
- printk("fuse_dev_operations: %p file->f_op: %p\n",
- &fuse_dev_operations, file->f_op);
return NULL;
- }
+ }
fc = new_conn();
if (fc == NULL) {
printk("FUSE: failed to allocate connection data\n");
return -1;
}
if (f->minorver < FUSE_KERNEL_MINOR_VERSION) {
- fprintf(stderr, "fuse: kernel interface too old: need >= %i.%i",
+ fprintf(stderr, "fuse: kernel interface too old: need >= %i.%i\n",
FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
return -1;
}
else {
res = addmntent(newfp, entp);
if (res != 0) {
- fprintf(stderr, "%s: failed to add entry to %s: %s", progname,
- mtab_new, strerror(errno));
+ fprintf(stderr, "%s: failed to add entry to %s: %s\n",
+ progname, mtab_new, strerror(errno));
}
}