add some debug output useful on freebsd for aligned access testing

edge.strict_endians
yura 2006-12-18 13:32:58 +00:00
parent 3c668b7d03
commit bedd6f4a13
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/local/bin/bash
# Run this to generate configure, Makefile.in's, etc
if test "$srcdir" == ""; then

View File

@ -165,8 +165,10 @@ static long ntfs_fuse_get_nr_free_mft_records(ntfs_volume *vol, long nr_free)
nr_free--;
}
free(buf);
if (!total || br < 0)
if (!total || br < 0) {
ntfs_log_error("pread: %s\n", strerror(errno));
return -errno;
}
ctx->free_mft = nr_free;
ctx->state &= ~(NF_FreeMFTOutdate);
return nr_free;
@ -197,8 +199,10 @@ static long ntfs_fuse_get_nr_free_clusters(ntfs_volume *vol)
nr_free--;
}
free(buf);
if (!total || br < 0)
if (!total || br < 0) {
ntfs_log_error("pread: %s\n", strerror(errno));
return -errno;
}
ctx->free_clusters = nr_free;
ctx->state &= ~(NF_FreeClustersOutdate);
return nr_free;