diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2009-09-20 22:06:22 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2009-09-20 22:06:22 -0400 |
commit | 1e1db02be05149e637381b4006e466f6ed265a37 (patch) | |
tree | 44edb7a74bc5409ffcf3ffbaeeb896fc984620b7 /netnuke.c | |
parent | 51512bad2ab9e384344f96191834583f110b4a17 (diff) | |
download | NetNuke-1e1db02be05149e637381b4006e466f6ed265a37.tar.gz |
Eventually I would like each mediaList iteration perform a user defined scan of 1 to XXXX. Right now, SATA detection isues this method, but the rest of the subsystems should as well.
Diffstat (limited to 'netnuke.c')
-rw-r--r-- | netnuke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -258,7 +258,7 @@ int nuke(media_t device) bytesWritten = write(fd, wTable, byteSize); if(bytesWritten != byteSize) - fprintf(stderr, "\nwrite() function is not returning the correct size.\n"); + fprintf(stderr, "%s: %s, while writing chunk %jd\n", device.nameshort, strerror(errno), block); } /* BLOCK WRITE */ @@ -298,7 +298,7 @@ void buildMediaList(media_t devices[]) #ifdef __FreeBSD__ /* Account for SATA devices. mediaList will always have IDE/SATA as position 0 */ - if(device.usable != USABLE_MEDIA && mt == 0 && i < 4) + if(device.usable != USABLE_MEDIA && mt == 0 && i < 255) { i++; continue; |