Searched refs:seek_hole (Results 1 – 4 of 4) sorted by relevance
/external/crosvm/sys_util/src/ |
D | seek_hole.rs | 17 fn seek_hole(&mut self, offset: u64) -> Result<Option<u64>>; in seek_hole() method 45 fn seek_hole(&mut self, offset: u64) -> Result<Option<u64>> { in seek_hole() method 110 fn seek_hole() { in seek_hole() function 114 assert_eq!(file.seek_hole(0).unwrap(), None); in seek_hole() 119 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 121 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 126 assert_eq!(file.seek_hole(0x10000).unwrap(), None); in seek_hole() 128 assert_eq!(file.seek_hole(0x10001).unwrap(), None); in seek_hole() 137 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 139 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() [all …]
|
D | lib.rs | 42 mod seek_hole; module 90 pub use crate::seek_hole::SeekHole;
|
/external/crosvm/disk/src/qcow/ |
D | mod.rs | 1722 fn seek_hole(&mut self, offset: u64) -> io::Result<Option<u64>> { in seek_hole() method 2610 fn seek_hole() { in seek_hole() function 2613 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 2615 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 2620 assert_eq!(file.seek_hole(0x30000).unwrap(), None); in seek_hole() 2622 assert_eq!(file.seek_hole(0x30001).unwrap(), None); in seek_hole() 2631 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 2633 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 2638 assert_eq!(file.seek_hole(0x10000).unwrap(), Some(0x20000)); in seek_hole() 2641 assert_eq!(file.seek_hole(0x10001).unwrap(), Some(0x20000)); in seek_hole() [all …]
|
/external/crosvm/disk/src/ |
D | disk.rs | 201 let next_hole = match reader.seek_hole(next_data).map_err(Error::SeekingFile)? { in convert_reader_writer()
|