Re: Re: Possibly OT: no. of blocks allocated to a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> 
> [karthik@darkstar ch1]$ ./blocks blocks.c
> size: 637
> blksize: 4096
> blocks: 16
> blocks * 512 = 8192

> I ran the blocks program on its own source - as you 
> can see, it only requires 4096 bytes, since the file 
> size is 637 bytes, but the allocated amount is 8192 
> bytes, 4096 in excess of what is required.
>

It seems that you have applied patch for block reservation to your kernel source. 

Check file include/linux/ext3_fs.h for following piece of code.

#define EXT3_RESERVATION
#define EXT3_DEFAULT_RESERVE_BLOCKS 8

try commenting "#define EXT3_RESERVATION" statement.
compile and check if it works.

niTin


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux