raw-posix: add a raw_open_common helper
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Jun 2009 11:53:38 +0000 (13:53 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 15 Jun 2009 11:53:38 +0000 (13:53 +0200)
commit90babde0cad8a485e5f74a2113c0425c08395a47
tree31ac0562b0dbdbe64bbd00448c5392ef38dfe9a3
parent0e1d8f4c549e51fd19793a154862979fdc199477
raw-posix: add a raw_open_common helper

raw_open and hdev_open contain the same basic logic.  Add a new
raw_open_common helper containing the guts of the open routine
and call it from raw_open and hdev_open.

We use the new open_flags field in BDRVRawState to allow passing
additional open flags to raw_open_common from both.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/raw-posix.c