{ "info": { "author": "I.S. van Oostveen", "author_email": "trbs@trbs.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=========\nfallocate\n=========\n\n.. image:: https://travis-ci.org/trbs/fallocate.svg?branch=master\n :target: https://travis-ci.org/trbs/fallocate\n\nfallocate exposes an interface to fallocate(2), posix_fallocate(3) and\nposix_fadvise(3).\n\nUnder Mac OS X the fallocate() method will use the apple equivalent of\nfallocate(2). Note that this might not be exactly the same.\n\nWhen using the wrapper functions around the fallocate(2) call the arguments\ngiven to the function are slightly different then the c call.\n\nThis module has the arguments like:\n\n::\n\n fallocate(fd, offset, length, mode=0)\n\nWhile in C the function looks like:\n\n::\n\n fallocate(fd, mode, offset, length)\n\nThe main reason for this is that the mode argument tends not to be used much and\nthus having the default as a keyword argument is much easier then having to\nspecify 0 everytime.\n\nUsage\n=====\n\nFuncation: fallocate(fd, offset, len, [mode=0])\n\nCalls fallocate() on the file object or file descriptor. This allows\nthe caller to directly manipulate the allocated disk space for the file\nreferred to by fd for the byte range starting at offset and continuing\nfor len bytes.\n\nmode is only available in Linux.\n\nIt should always be 0 unless one of the following possible flags are\nspecified\n\n::\n\n FALLOC_FL_KEEP_SIZE - do not grow file, default is extend size\n FALLOC_FL_PUNCH_HOLE - punches a hole in file, de-allocates range\n FALLOC_FL_COLLAPSE_SIZE - remove a range of a file without leaving a hole\n\n*Note*: `FALLOC_FL_COLLAPSE_SIZE` was introduced in Linux kernel v3.15 and is\nonly available on certain filesystems (e.g. ext4, xfs, etc). In order to get\naccess to it, you must build and run on a kernel and filesystem that both\nsupport it.\n\nExample:\n\n::\n\n # preallocate using fallocate a 1kb file\n with open(\"/tmp/test.file\", \"w+b\") as f:\n fallocate(f, 0, 1024)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/trbs/fallocate", "keywords": "posix_fallocate posix_fadvise fallocate", "license": "Python Software Foundation License", "maintainer": "", "maintainer_email": "", "name": "fallocate", "package_url": "https://pypi.org/project/fallocate/", "platform": "", "project_url": "https://pypi.org/project/fallocate/", "project_urls": { "Homepage": "https://github.com/trbs/fallocate" }, "release_url": "https://pypi.org/project/fallocate/1.6.4/", "requires_dist": null, "requires_python": "", "summary": "Module to expose posix_fallocate(3), posix_fadvise(3) and fallocate(2)", "version": "1.6.4" }, "last_serial": 4320474, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "a5f1031f9c701bdbc35954dfb78e76d1", "sha256": "bfacb9e47f62c3eb4f037056ead920dae6bfc35f0d5a47ccf8720cf25bd87e44" }, "downloads": -1, "filename": "fallocate-1.0.tar.gz", "has_sig": false, "md5_digest": "a5f1031f9c701bdbc35954dfb78e76d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3638, "upload_time": "2013-09-02T13:21:38", "url": "https://files.pythonhosted.org/packages/1f/c4/30e474036bc7728da3c7298b94d87b83aa1d5c06667c4c5ce87bcf5b8469/fallocate-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1c20ddf005eabffc5b69eeb802355a47", "sha256": "b73dca696cc0cd1bbb63d39ffc2e62dff8ab9272d48cc62d0bc5ed29df511684" }, "downloads": -1, "filename": "fallocate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1c20ddf005eabffc5b69eeb802355a47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8815, "upload_time": "2013-09-02T16:22:33", "url": "https://files.pythonhosted.org/packages/f9/ab/aae00d626233196b9a0906648078ed1f6119ed415eb5dad2eb1bd00f22fc/fallocate-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d57e68099de4849cac8f616eeb8ae7dd", "sha256": "06a2a896c5e61ba8146d66fee7b8a766e2eee2323c85cea30920b059bb8994a9" }, "downloads": -1, "filename": "fallocate-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d57e68099de4849cac8f616eeb8ae7dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8785, "upload_time": "2013-09-07T16:23:35", "url": "https://files.pythonhosted.org/packages/2e/b8/6434d2fbb027f6e7f5657460910809232e6c5efe8cbbbdaaf3016d3349dd/fallocate-1.0.2.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "1e932a063136424bfce943d405fe3f7f", "sha256": "2291624e64ee876fa53fbbff0212b89fd305ab73feb7117875c409da26484d0a" }, "downloads": -1, "filename": "fallocate-1.2.0.tar.gz", "has_sig": false, "md5_digest": "1e932a063136424bfce943d405fe3f7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8793, "upload_time": "2014-03-23T14:45:13", "url": "https://files.pythonhosted.org/packages/f5/64/c6aafbada6a73faec24e60123aa2e09a06805f25ed38d52bb7a3f51ee9c6/fallocate-1.2.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "4c03e83699b7f4bb88c3d205032d9371", "sha256": "ff12a31661b297e9ae1a675b64f922c0d2c759521d529bd1afa0d3c6b5ad433d" }, "downloads": -1, "filename": "fallocate-1.4.0.tar.gz", "has_sig": true, "md5_digest": "4c03e83699b7f4bb88c3d205032d9371", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8804, "upload_time": "2014-05-06T20:12:56", "url": "https://files.pythonhosted.org/packages/86/5d/a2fc946fd9945f8a5789b6cff5eb5082d5ca518d42c9484a28c15a2f4d22/fallocate-1.4.0.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "b3caf783a03708e31874468d65c2d958", "sha256": "3b0abae33f704bad8a07d70255b95d9c89a92098c3b0c5e0578ccf4753b7efa9" }, "downloads": -1, "filename": "fallocate-1.5.0.tar.gz", "has_sig": false, "md5_digest": "b3caf783a03708e31874468d65c2d958", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10003, "upload_time": "2016-05-06T20:27:56", "url": "https://files.pythonhosted.org/packages/77/53/37338e0fc7a766e619380db3cdc55f62a5fe81684f2d0ffcc3f67a4d5b87/fallocate-1.5.0.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "fc9dfc815a5825b467e0c99968d2637d", "sha256": "e07e46aa34578eb6f7f144f4d7bcf93eaa2245f68955f9ac73d50123c9a4a0d8" }, "downloads": -1, "filename": "fallocate-1.6.0.tar.gz", "has_sig": false, "md5_digest": "fc9dfc815a5825b467e0c99968d2637d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10128, "upload_time": "2016-05-06T20:31:34", "url": "https://files.pythonhosted.org/packages/ab/70/03c4534cc4b7998577db53a75de9b9b54e8ea387a9b97e3b3d72565fc897/fallocate-1.6.0.tar.gz" } ], "1.6.1": [ { "comment_text": "", "digests": { "md5": "1954825fd6cae532b83579c163ac9b35", "sha256": "36c4a94f82b2072a206557549fde9c918d6666c66008cb279ba9709695d33bc5" }, "downloads": -1, "filename": "fallocate-1.6.1.tar.gz", "has_sig": true, "md5_digest": "1954825fd6cae532b83579c163ac9b35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8620, "upload_time": "2016-05-06T20:37:29", "url": "https://files.pythonhosted.org/packages/6b/f1/d1e26f3510ca8881d852a87bdda86fbb01fab48e3644fa5473365ce87046/fallocate-1.6.1.tar.gz" } ], "1.6.2": [ { "comment_text": "", "digests": { "md5": "6118a449c812f0de4edf9cce4d479bfd", "sha256": "43eb2b2a85f2c3a145214bac1a30d2dcbc6905340ef84b808eafa9b7ad8264fb" }, "downloads": -1, "filename": "fallocate-1.6.2.tar.gz", "has_sig": true, "md5_digest": "6118a449c812f0de4edf9cce4d479bfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8685, "upload_time": "2017-05-22T20:50:32", "url": "https://files.pythonhosted.org/packages/b8/30/ed53c94d17f6f9a486a97620e95085120898284ee9ffce3912119fe27272/fallocate-1.6.2.tar.gz" } ], "1.6.3": [ { "comment_text": "", "digests": { "md5": "8aeea32f87937eea1cefc40135420a3a", "sha256": "ca7ef018ccb680dba4dc6a6b92288eea09c32b861289f3aaa66ccddc2e9ca252" }, "downloads": -1, "filename": "fallocate-1.6.3.tar.gz", "has_sig": true, "md5_digest": "8aeea32f87937eea1cefc40135420a3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8597, "upload_time": "2018-07-08T16:02:12", "url": "https://files.pythonhosted.org/packages/ec/82/244ce13e5d3537b6b7a57ad31edecf9100aa7429a32e59a5606d48eaa1e1/fallocate-1.6.3.tar.gz" } ], "1.6.4": [ { "comment_text": "", "digests": { "md5": "02c09a188399447c5b89916e17d2fc87", "sha256": "85ebeb2786761fbe80d88c52590a610bd3425fc89e188c208a3f261a5bd6acb3" }, "downloads": -1, "filename": "fallocate-1.6.4.tar.gz", "has_sig": true, "md5_digest": "02c09a188399447c5b89916e17d2fc87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8922, "upload_time": "2018-09-28T15:22:23", "url": "https://files.pythonhosted.org/packages/50/a1/bf19d1bde4833d3dce97ed8f78c20035b1b83c4d79f033a7f00d2ba1fad1/fallocate-1.6.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "02c09a188399447c5b89916e17d2fc87", "sha256": "85ebeb2786761fbe80d88c52590a610bd3425fc89e188c208a3f261a5bd6acb3" }, "downloads": -1, "filename": "fallocate-1.6.4.tar.gz", "has_sig": true, "md5_digest": "02c09a188399447c5b89916e17d2fc87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8922, "upload_time": "2018-09-28T15:22:23", "url": "https://files.pythonhosted.org/packages/50/a1/bf19d1bde4833d3dce97ed8f78c20035b1b83c4d79f033a7f00d2ba1fad1/fallocate-1.6.4.tar.gz" } ] }