]> err.no Git - systemd/commitdiff
[PATCH] change pgsize
authorananth@in.ibm.com <ananth@in.ibm.com>
Tue, 23 Dec 2003 04:54:51 +0000 (20:54 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000 (21:13 -0700)
In udev-009 and previous releases, for klibc compatibility, the pgsize var
in sysfs_read_attribute() (file sysfs_dir.c under libsysfs) is handcoded
to 0x4000.

Should it not be 4096 bytes (0x1000 in hex) instead of 0x4000 (16k bytes)?

libsysfs/sysfs_dir.c

index 7dbee8aba85c2f74f0b1dd66a0d80a1b46ff0802..c159db7af8738de2047d369997438218effc855e 100644 (file)
@@ -274,7 +274,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
                return -1;
        }
 #ifdef __KLIBC__
-       pgsize = 0x4000;
+       pgsize = 0x1000;                
 #else
        pgsize = sysconf(_SC_PAGESIZE);
 #endif