Jan Engelhardt <jengelh@linux01.gwdg.de> writes: > I would say we all forgot to RTFM. Because O_EXCL does nothing *unless* > O_CREAT is specified, which probably *is not* specified in cdrecord or > hal. That would be the case if the CD writter wasn't a block device. For a block device fs/block_dev.c: static int blkdev_open(struct inode * inode, struct file * filp) { ... if (!(filp->f_flags & O_EXCL) ) return 0; if (!(res = bd_claim(bdev, filp))) return 0; blkdev_put(bdev); return res; -- Krzysztof Halasa - 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/
- References:
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Albert Cahalan <acahalan@gmail.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jan Engelhardt <jengelh@linux01.gwdg.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Albert Cahalan <acahalan@gmail.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Joerg Schilling <schilling@fokus.fraunhofer.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Olivier Galibert <galibert@pobox.com>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: "Jim Crilly" <jim@why.dont.jablowme.net>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Krzysztof Halasa <khc@pm.waw.pl>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- From: Jan Engelhardt <jengelh@linux01.gwdg.de>
- Re: CD writing in future Linux (stirring up a hornets' nest)
- Prev by Date: Re: Wanted: hotfixes for -mm kernels
- Next by Date: Re: CD writing in future Linux (stirring up a hornets' nest)
- Previous by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Next by thread: Re: CD writing in future Linux (stirring up a hornets' nest)
- Index(es):
![]() |