Searched refs:seek_hole (Results 1 – 3 of 3) 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 114 fn seek_hole() { in seek_hole() function 121 assert_eq!(file.seek_hole(0).unwrap(), None); in seek_hole() 126 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 128 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 133 assert_eq!(file.seek_hole(0x10000).unwrap(), None); in seek_hole() 135 assert_eq!(file.seek_hole(0x10001).unwrap(), None); in seek_hole() 144 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 146 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() [all …]
|
D | lib.rs | 30 mod seek_hole; module 71 pub use crate::seek_hole::SeekHole;
|
/external/crosvm/qcow/src/ |
D | qcow.rs | 1511 fn seek_hole(&mut self, offset: u64) -> io::Result<Option<u64>> { in seek_hole() method 1602 let next_hole = match reader.seek_hole(next_data).map_err(Error::SeekingFile)? { in convert_reader_writer() 2399 fn seek_hole() { in seek_hole() function 2402 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 2404 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 2409 assert_eq!(file.seek_hole(0x30000).unwrap(), None); in seek_hole() 2411 assert_eq!(file.seek_hole(0x30001).unwrap(), None); in seek_hole() 2420 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole() 2422 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole() 2427 assert_eq!(file.seek_hole(0x10000).unwrap(), Some(0x20000)); in seek_hole() [all …]
|