Re: starting with 2.7

From: Bill Davidsen
Date: Tue Jan 04 2005 - 14:01:23 EST


On Tue, 4 Jan 2005, Jens Axboe wrote:

> On Mon, Jan 03 2005, Bill Davidsen wrote:
> > Jens Axboe wrote:
> > >On Mon, Jan 03 2005, Bill Davidsen wrote:
> > >
> > >>SCSI command filtering - while I totally support the idea (and always
> > >>have), I miss running cdrecord as a normal user. Multisession doesn't work
> > >>as a normal user (at least if you follow the man page) because only root
> > >>can use -msinfo. There's also some raw mode which got a permission denied,
> > >>don't remember as I was trying something not doing production stuff.
> > >
> > >
> > >So look at dmesg, the kernel will dump the failed command. Send the
> > >result here and we can add that command, done deal. 2.6.10 will do this
> > >by default.
> > >
> >
> > Is this enough? I'm building 2.6.10-bk6 on a spare machine to try this
> > on a system with a "scsi" CD interface via USB. The commands appear to
> > go through the same process, but I'll know in an hour or so.
> >
> > I was going to look these up before suggesting that they were
> > trustworthy, but I'll take this as a offer to do that and accept!
> > Obviously security comes first, if these are not trustworthy I won't
> > argue for their inclusion.
> >
> > kjournald starting. Commit interval 5 seconds
> > EXT3 FS on hdb1, internal journal
> > EXT3-fs: mounted filesystem with ordered data mode.
> > scsi: unknown opcode 0x01
> > scsi: unknown opcode 0x55
> > scsi: unknown opcode 0x1e
> > scsi: unknown opcode 0x35
>
> You don't have write permissions on the device.

Nope, /dev/hdc is owned by davidsen, group disk, permissions 660. I am me
and in group disk as well. And I can write single session CDs without
error, it's only the use -msinfo which fails, the first burn works just
fine.

I think all of that but the permissions stuff was in the original post...
See the man page and/or README.multi if you don't use multisession,
-msinfo just returns the size of the initial session(s) already written.

I can aslo write as me using growisofs, but it only works on DVD, kind of
overkill for what I'm doing.

--
bill davidsen <davidsen@xxxxxxx>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/