diff options
author | Neil Brown <neilb@suse.de> | 2006-03-28 08:39:29 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-03-28 08:39:29 +0200 |
commit | 4027ddcaa4b613a2ac2e6aa4eb0b157d7708f156 (patch) | |
tree | 60bc54fab683976ba2f5ffdf2ca6ee970621ec07 /Detail.c | |
parent | Create missing /dev files where needed. (diff) | |
download | mdadm-4027ddcaa4b613a2ac2e6aa4eb0b157d7708f156.tar.xz mdadm-4027ddcaa4b613a2ac2e6aa4eb0b157d7708f156.zip |
Don't try to get bitmap info on old kernels.
.. this causes silly warnings.
Unfortuantely there are 2.6 kernels which will still produce
warnings. We cannot reliable detect those.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -180,8 +180,10 @@ int Detail(char *dev, int brief, int test) printf(" Persistence : Superblock is %spersistent\n", array.not_persistent?"not ":""); printf("\n"); - if (ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 && - bmf.pathname[0]) { + /* Only try GET_BITMAP_FILE for 0.90.01 and later */ + if (vers >= 9001 && + ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 && + bmf.pathname[0]) { printf(" Intent Bitmap : %s\n", bmf.pathname); printf("\n"); } else if (array.state & (1<<MD_SB_BITMAP_PRESENT)) |