* fhandler.h (class fhandler_dev_random): Add dummy_offset member.

* fhandler_random.cc (fhandler_dev_random::lseek): Fake seeking
	capability as on Linux.
This commit is contained in:
Corinna Vinschen
2007-12-22 13:26:47 +00:00
parent ec62ba9577
commit 04cb518d64
3 changed files with 33 additions and 2 deletions

View File

@ -1090,6 +1090,7 @@ class fhandler_dev_random: public fhandler_base
protected:
HCRYPTPROV crypt_prov;
long pseudo;
_off64_t dummy_offset;
bool crypt_gen_random (void *ptr, size_t len);
int pseudo_write (const void *ptr, size_t len);