首页> 外国专利> Methods, systems, and computer program products for preserving atomic writes using leaves and bitmaps

Methods, systems, and computer program products for preserving atomic writes using leaves and bitmaps

机译:用于使用叶子和位图保留原子写入的方法,系统和计算机程序产品

摘要

Methods, systems, and computer program products for preserving atomic writes to disk arrays are disclosed. According to one method, portions of a file are stored in paired locations on a disk array such that a first location of a location pair for a file portion stores scratch data for the file portion and a second portion of the location pair for the file portion stores valid data for the file portion. A bitmap is stored on the disk array. The bitmap has bits indicating whether valid data for each file portion resides in the first or the second location for its respective location pair. A write request to write data to a portion of the file being less than the entire file is received. The bitmap indicates that valid data for the portion of the file to be written to resides in a first memory location of one of the location pairs on the disk array. In response to the write request, the bitmap is copied to memory, the data for the portion of the file requested to be modified is copied from the first location of the one location pair to a second location of the one location pair on the disk array without copying the entire file and modifying the data in the second location based on the data to be written. The bitmap stored in memory is modified to indicate that valid data for the portion of the file resides in the second location of the one location pair and that scratch data for the portion of the file resides in the first location on the disk array. A request to save the modification is received, and, in response to the request to save the modified data, the bitmap stored on the disk array is replaced with the modified bitmap.
机译:公开了用于保存对磁盘阵列的原子写的方法,系统和计算机程序产品。根据一种方法,文件的部分被存储在磁盘阵列上的成对的位置中,使得文件部分的位置对的第一位置存储文件部分的暂存数据,而文件部分的位置对的第二部分存储文件部分的第二数据。存储文件部分的有效数据。位图存储在磁盘阵列上。位图具有指示每个文件部分的有效数据是驻留在其相应位置对的第一位置还是第二位置中的位。接收到将数据写到文件中小于整个文件的一部分的写请求。该位图指示用于文件的要写入的部分的有效数据位于磁盘阵列上的位置对之一的第一存储位置中。响应写请求,将位图复制到内存,将请求修改的文件部分的数据从一个位置对的第一位置复制到磁盘阵列上的一个位置对的第二位置无需复制整个文件并根据要写入的数据修改第二个位置的数据。修改存储在内存中的位图,以指示文件的该部分的有效数据位于一个位置对的第二个位置,文件的该部分的暂存数据位于磁盘阵列上的第一个位置。接收到保存修改的请求,并且响应于保存修改的数据的请求,用修改后的位图替换存储在磁盘阵列上的位图。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号