vvfat.c (3c9331c47f22224118d5019b0af8eac704824d8d) | vvfat.c (67a0fd2a9bca204d2b39f910a97c7137636a0715) |
---|---|
1/* vim:set shiftwidth=4 ts=4: */ 2/* 3 * QEMU Block driver for virtual VFAT (shadows a local directory) 4 * 5 * Copyright (c) 2004,2005 Johannes E. Schindelin 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 2870 unchanged lines hidden (view full) --- 2879 BDRVVVFATState *s = bs->opaque; 2880 qemu_co_mutex_lock(&s->lock); 2881 ret = vvfat_write(bs, sector_num, buf, nb_sectors); 2882 qemu_co_mutex_unlock(&s->lock); 2883 return ret; 2884} 2885 2886static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs, | 1/* vim:set shiftwidth=4 ts=4: */ 2/* 3 * QEMU Block driver for virtual VFAT (shadows a local directory) 4 * 5 * Copyright (c) 2004,2005 Johannes E. Schindelin 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 2870 unchanged lines hidden (view full) --- 2879 BDRVVVFATState *s = bs->opaque; 2880 qemu_co_mutex_lock(&s->lock); 2881 ret = vvfat_write(bs, sector_num, buf, nb_sectors); 2882 qemu_co_mutex_unlock(&s->lock); 2883 return ret; 2884} 2885 2886static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs, |
2887 int64_t sector_num, int nb_sectors, int* n) | 2887 int64_t sector_num, int nb_sectors, int *n, BlockDriverState **file) |
2888{ 2889 BDRVVVFATState* s = bs->opaque; 2890 *n = s->sector_count - sector_num; 2891 if (*n > nb_sectors) { 2892 *n = nb_sectors; 2893 } else if (*n < 0) { 2894 return 0; 2895 } --- 148 unchanged lines hidden --- | 2888{ 2889 BDRVVVFATState* s = bs->opaque; 2890 *n = s->sector_count - sector_num; 2891 if (*n > nb_sectors) { 2892 *n = nb_sectors; 2893 } else if (*n < 0) { 2894 return 0; 2895 } --- 148 unchanged lines hidden --- |