| To: | mingz@xxxxxxxxxxx |
|---|---|
| Subject: | Re: how to understand allocsp |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Thu, 24 Aug 2006 15:53:04 -0500 |
| Cc: | linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <1156450310.2700.85.camel@localhost.localdomain> |
| References: | <1156450310.2700.85.camel@localhost.localdomain> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 1.5.0.5 (X11/20060808) |
Ming Zhang wrote:
Hi All I honestly never keep this all straight without going back to the code, but I'd start by looking at the comments for, and code in, xfs_change_file_space and xfs_alloc_file_space. /*
* XFS_IOC_RESVSP and XFS_IOC_UNRESVSP will reserve or unreserve
* file space.
* These calls do NOT zero the data space allocated to the file,
* nor do they change the file size.
*
* XFS_IOC_ALLOCSP and XFS_IOC_FREESP will allocate and free file
* space.
* These calls cause the new file data to be zeroed and the file
* size to be changed.
*/The semantics of all this could be clearer, IMHO. -Eric |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | how to understand allocsp, Ming Zhang |
|---|---|
| Next by Date: | Re: how to understand allocsp, Ming Zhang |
| Previous by Thread: | how to understand allocsp, Ming Zhang |
| Next by Thread: | Re: how to understand allocsp, Ming Zhang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |