geom_part.c (67350cb56a69468c118bd4ccf6e361b7ebfa9eb4) | geom_part.c (2117cdd4b4ebda7db0270c56f5a3cbdd37ec8cfc) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2007, 2008 Marcel Moolenaar 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1313 unchanged lines hidden (view full) --- 1322 /* autofill parameters (if applicable). */ 1323 error = gpart_autofill(req); 1324 if (error) { 1325 warnc(error, "autofill"); 1326 status = EXIT_FAILURE; 1327 goto done; 1328 } 1329 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2007, 2008 Marcel Moolenaar 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 1313 unchanged lines hidden (view full) --- 1322 /* autofill parameters (if applicable). */ 1323 error = gpart_autofill(req); 1324 if (error) { 1325 warnc(error, "autofill"); 1326 status = EXIT_FAILURE; 1327 goto done; 1328 } 1329 |
1330 bzero(buf, sizeof(buf)); 1331 gctl_rw_param(req, "output", sizeof(buf), buf); | 1330 buf[0] = '\0'; 1331 gctl_add_param(req, "output", sizeof(buf), buf, 1332 GCTL_PARAM_WR | GCTL_PARAM_ASCII); |
1332 errstr = gctl_issue(req); 1333 if (errstr == NULL || errstr[0] == '\0') { 1334 if (buf[0] != '\0') 1335 printf("%s", buf); 1336 status = EXIT_SUCCESS; 1337 goto done; 1338 } 1339 1340 gpart_print_error(errstr); 1341 status = EXIT_FAILURE; 1342 1343 done: 1344 gctl_free(req); 1345 exit(status); 1346} | 1333 errstr = gctl_issue(req); 1334 if (errstr == NULL || errstr[0] == '\0') { 1335 if (buf[0] != '\0') 1336 printf("%s", buf); 1337 status = EXIT_SUCCESS; 1338 goto done; 1339 } 1340 1341 gpart_print_error(errstr); 1342 status = EXIT_FAILURE; 1343 1344 done: 1345 gctl_free(req); 1346 exit(status); 1347} |