"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/verity/verity_fec.c" between
cryptsetup-2.0.6.tar.xz and cryptsetup-2.1.0.tar.xz

About: cryptsetup is a utility used to conveniently setup disk encryption based on the dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format.

verity_fec.c  (cryptsetup-2.0.6.tar.xz):verity_fec.c  (cryptsetup-2.1.0.tar.xz)
/* /*
* dm-verity Forward Error Correction (FEC) support * dm-verity Forward Error Correction (FEC) support
* *
* Copyright (C) 2015, Google, Inc. All rights reserved. * Copyright (C) 2015 Google, Inc. All rights reserved.
* Copyright (C) 2017-2018, Red Hat, Inc. All rights reserved. * Copyright (C) 2017-2019 Red Hat, Inc. All rights reserved.
* *
* This file is free software; you can redistribute it and/or * This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * version 2.1 of the License, or (at your option) any later version.
* *
* This file is distributed in the hope that it will be useful, * This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
skipping to change at line 247 skipping to change at line 247
fd = open(device_path(fec_device), O_RDONLY); fd = open(device_path(fec_device), O_RDONLY);
else else
fd = open(device_path(fec_device), O_RDWR); fd = open(device_path(fec_device), O_RDWR);
if (fd == -1) { if (fd == -1) {
log_err(cd, _("Cannot open device %s."), device_path(fec_device)) ; log_err(cd, _("Cannot open device %s."), device_path(fec_device)) ;
goto out; goto out;
} }
if (lseek(fd, params->fec_area_offset, SEEK_SET) < 0) { if (lseek(fd, params->fec_area_offset, SEEK_SET) < 0) {
log_dbg("Cannot seek to requested position in FEC device."); log_dbg(cd, "Cannot seek to requested position in FEC device.");
goto out; goto out;
} }
/* input devices */ /* input devices */
inputs[0].fd = open(device_path(inputs[0].device), O_RDONLY); inputs[0].fd = open(device_path(inputs[0].device), O_RDONLY);
if (inputs[0].fd == -1) { if (inputs[0].fd == -1) {
log_err(cd, _("Cannot open device %s."), device_path(inputs[0].de vice)); log_err(cd, _("Cannot open device %s."), device_path(inputs[0].de vice));
goto out; goto out;
} }
inputs[1].fd = open(device_path(inputs[1].device), O_RDONLY); inputs[1].fd = open(device_path(inputs[1].device), O_RDONLY);
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)