syscall_emul.hh (3670:1ad04efc333e) | syscall_emul.hh (4061:45162dc462a7) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 363 unchanged lines hidden (view full) --- 372 tgt->st_size = host->st_size; 373 tgt->st_size = htog(tgt->st_size); 374 tgt->st_atimeX = host->st_atime; 375 tgt->st_atimeX = htog(tgt->st_atimeX); 376 tgt->st_mtimeX = host->st_mtime; 377 tgt->st_mtimeX = htog(tgt->st_mtimeX); 378 tgt->st_ctimeX = host->st_ctime; 379 tgt->st_ctimeX = htog(tgt->st_ctimeX); | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 363 unchanged lines hidden (view full) --- 372 tgt->st_size = host->st_size; 373 tgt->st_size = htog(tgt->st_size); 374 tgt->st_atimeX = host->st_atime; 375 tgt->st_atimeX = htog(tgt->st_atimeX); 376 tgt->st_mtimeX = host->st_mtime; 377 tgt->st_mtimeX = htog(tgt->st_mtimeX); 378 tgt->st_ctimeX = host->st_ctime; 379 tgt->st_ctimeX = htog(tgt->st_ctimeX); |
380 tgt->st_blksize = host->st_blksize; | 380 // Force the block size to be 8k. This helps to ensure buffered io works 381 // consistently across different hosts. 382 tgt->st_blksize = 0x2000; |
381 tgt->st_blksize = htog(tgt->st_blksize); 382 tgt->st_blocks = host->st_blocks; 383 tgt->st_blocks = htog(tgt->st_blocks); 384} 385 386// Same for stat64 387 388template <typename target_stat, typename host_stat64> --- 594 unchanged lines hidden --- | 383 tgt->st_blksize = htog(tgt->st_blksize); 384 tgt->st_blocks = host->st_blocks; 385 tgt->st_blocks = htog(tgt->st_blocks); 386} 387 388// Same for stat64 389 390template <typename target_stat, typename host_stat64> --- 594 unchanged lines hidden --- |