Intended behaviour of xxx_get_block in case of hole in file

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

 



Hi,

The get_block function (eg. ext2_get_block) reads or 
allocates a new block as required. 

* In general, if the block to be read corresponds to file 
hole, what should be filled in the buffer ?

* If iblock is beyond the end of file, does a new block 
has to be allocated only when 'create' flag is set ?

Thanks in advance,
Swapnil.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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