search for: zero_buf

Displaying 11 results from an estimated 11 matches for "zero_buf".

Did you mean: err_buf
2008 Oct 22
1
BUG: Bad passwords from Vampire / NT migration
...calls rpc_vampire_internals, which calls libnet/libnet_samsync.c, which calls samsync_fix_delta_array() with rid_crypt always set to false. I think that's correct. But the second bug has carried through in the sam_account_from_delta() function: 208 if (memcmp(r->ntpassword.hash, zero_buf, 16) != 0) { 209 sam_pwd_hash(r->rid, r->ntpassword.hash, lm_passwd, 0); 210 pdb_set_lanman_passwd(account, lm_passwd, PDB_CHANGED); 211 } 212 213 if (memcmp(r->lmpassword.hash, zero_buf, 16) != 0) { 214 sam_pwd_hash(r-...
2010 Sep 19
2
can't get write_sectors to work...
...ell me what I'm doing wrong. First, the code. I placed this at the bottom of the main loop in com32/modules/disk.c as a simple test of writing to the disk: printf(" Host bus: %s, Interface type: %s\n\n", d->edd_params.host_bus_type, d->edd_params.interface_type); zero_buf = calloc(1, d->edd_params.bytes_per_sector); for(int sector = 0; sector < d->edd_params.sectors; sector++){ err = write_verify_sectors(d, sector,zero_buf,1); if (err == -1) { printf("sector: %d error: %d\n", sector, disk_errno); //disk_errno is always zero here } pri...
2007 Nov 16
8
[PATCH 0/6] Add online resize for ocfs2-tools,take 1
Add online resize in tunefs.ocfs2 so that user can increase the volume when it is mounted.
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...tive or out of range", (unsigned) mask); return -1; } diff --git a/daemon/zero.c b/daemon/zero.c index 505c4bb..d152210 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -172,7 +172,7 @@ do_zero_device (const char *device) if (!is_zero (buf, sizeof buf)) { r = pwrite (fd, zero_buf, n, pos); if (r == -1) { - reply_with_perror ("pwrite: %s (with %" PRId64 " bytes left to write)", + reply_with_perror ("pwrite: %s (with %" PRIu64 " bytes left to write)", device, size); close (fd);...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...tive or out of range", (unsigned) mask); return -1; } diff --git a/daemon/zero.c b/daemon/zero.c index 505c4bb..d152210 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -172,7 +172,7 @@ do_zero_device (const char *device) if (!is_zero (buf, sizeof buf)) { r = pwrite (fd, zero_buf, n, pos); if (r == -1) { - reply_with_perror ("pwrite: %s (with %" PRId64 " bytes left to write)", + reply_with_perror ("pwrite: %s (with %" PRIu64 " bytes left to write)", device, size); close (fd);...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...ESTFS_XFS_REPAIR_FORCELOGZERO_BITMASK) { diff --git a/daemon/zero.c b/daemon/zero.c index 14aef75..1a66881 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -30,6 +30,8 @@ #include "actions.h" #include "optgroups.h" +GUESTFSD_EXT_CMD(str_wipefs, wipefs); + static const char zero_buf[4096]; int @@ -77,7 +79,7 @@ do_zero (const char *device) int optgroup_wipefs_available (void) { - return prog_exists ("wipefs"); + return prog_exists (str_wipefs); } int @@ -86,7 +88,7 @@ do_wipefs (const char *device) int r; char *err = NULL; - const char *wipefs[]...
2012 Aug 30
1
[PATCH] collect list of called external commands
...GUESTFS_XFS_ADMIN_EXTUNWRITTEN_BITMASK)) diff --git a/daemon/zero.c b/daemon/zero.c index 14aef75..22d2958 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -30,6 +30,8 @@ #include "actions.h" #include "optgroups.h" +GUESTFS_EXT_CMD(str_wipefs, wipefs); + static const char zero_buf[4096]; int @@ -77,7 +79,7 @@ do_zero (const char *device) int optgroup_wipefs_available (void) { - return prog_exists ("wipefs"); + return prog_exists (str_wipefs); } int @@ -86,7 +88,7 @@ do_wipefs (const char *device) int r; char *err = NULL; - const char *wipefs[]...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...S_XFS_REPAIR_FORCELOGZERO_BITMASK) { diff --git a/daemon/zero.c b/daemon/zero.c index 5166807b5..faeb3bcfd 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -32,8 +32,6 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_wipefs, wipefs); - static const char zero_buf[4096]; int @@ -81,7 +79,7 @@ do_zero (const char *device) int optgroup_wipefs_available (void) { - return prog_exists (str_wipefs); + return prog_exists ("wipefs"); } /* See RHBZ#872831 */ @@ -93,7 +91,7 @@ wipefs_has_force_option (void) CLEANUP_FREE char *out = NULL, *err...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...a/daemon/zero.c b/daemon/zero.c index 5166807b5..e9126b757 100644 --- a/daemon/zero.c +++ b/daemon/zero.c @@ -32,7 +32,7 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_wipefs, wipefs); +DECLARE_EXTERNAL_COMMANDS ("wipefs") static const char zero_buf[4096]; @@ -81,7 +81,7 @@ do_zero (const char *device) int optgroup_wipefs_available (void) { - return prog_exists (str_wipefs); + return prog_exists ("wipefs"); } /* See RHBZ#872831 */ @@ -93,7 +93,7 @@ wipefs_has_force_option (void) CLEANUP_FREE char *out = NULL, *err = NUL...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’