X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=8221ffa8561f1d99502ec1010fb0aba3c3a03604;hb=2972987d0257d9c3d26b53f961e802d121b436cd;hp=bf62c1dab42f135f41fb9042740ee09e8b7e2da6;hpb=840536ea5a0568296dfd3e483442c76b93c5a949;p=libguestfs.git diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index bf62c1d..8221ffa 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -101,8 +101,7 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, * other component. In any case, reread the partition table * unconditionally here. */ - if (do_blockdev_rereadpt (device) == -1) - return -1; + (void) command (NULL, NULL, "blockdev", "--rereadpt", device, NULL); udev_settle ();