summaryrefslogtreecommitdiff
path: root/sys/src/cmd/disk
AgeCommit message (Collapse)Author
2023-05-03disk/qcowfs: correct GET2 off by oneJacob Moody
2023-04-01qcowfs(8)Jacob Moody
2022-11-01disk/partfs: fix bogus "%r" error responsecinap_lenrek
2022-08-01disk/mkext: fix nil dereference in arg parsingB. Atticus Grobe
2021-11-01mainly just spelling and typosStuart Morrow
2021-04-09disk/fdisk: add OpenBSD partition typeHumm
2020-05-02make bind(2) error handling consistentcinap_lenrek
The mount() and bind() syscalls return -1 on error, and the mountid sequence number on success. The manpage states that the mountid sequence number is a positive integer, but the kernels implementation currently uses a unsigned 32-bit integer and does not guarantee that the mountid will not become negative. Most code just cares about the error, so test for the -1 error value only.
2019-08-19disk/format: implement long name supportcinap_lenrek
2018-11-12disk/mkfs: remove unused cputype variable (thanks kvik)cinap_lenrek
2017-12-05disk/edisk: allow printing and readonly inspection of hybrid MBR/GPT disks ↵cinap_lenrek
(thanks aiju) dumping hybrid MBR/GPT disks is fine, which can sometimes be found on USB sticks. but prohibit editing. however, always barf on disks with dos partitions and missing protecive MBR partition entry.
2017-08-01disk/edisk: add some headroom in the type table for dynamic entriescinap_lenrek
2017-08-01disk/edisk: add more partition type uuid's from wikipedia (thanks qeed)cinap_lenrek
2016-10-24fix bugs and cleanup cryptsetup codecinap_lenrek
devfs: - fix memory leak in devfs leaking the aes key - allocate aes-xts cipher state in secure memory - actually check if the hexkey got fully parsed cryptsetup: - get rid of stupid "type YES" prompt - use genrandom() to generate salts and keys - rewrite cryptsetup to use common pbkdf2 and readcons routines - fix alot of error handling and simplify the code - move cryptsetup command to disk/cryptsetup - update cryptsetup(8) manual page
2016-07-08disk/prep: if no 9fat, reserve space for plan9 partition table in autopart ↵cinap_lenrek
(thanks Shamar) usually, the plan9 partition table is contained in the first 9fat partition after the pbs/fat header, but when no 9fat partition is requested, we have to make sure partitions wont overlap the partition table (start at sector offset >= 2).
2016-01-05fdisk: properly convert byte units K,M,G and T to cylinders/sectorscinap_lenrek
the shared command language assumed 512 byte sectors, which is not the case for fdisk as it uses cylinders for the block unit. so we introduce an extra argument in the Edit structure and parseexpr() function so byte sizes are properly converted to the block unit when the K,M,G and T postfixes are used.
2015-08-21remove kfs and kfscmdcinap_lenrek
2015-08-21disk/mkfs: rmeove kfs supportcinap_lenrek
2015-08-20kfs: adjust to new libauthsrvcinap_lenrek
2015-08-05kfs: set permission of / to 0775 on reamcinap_lenrek
this allows members of the -1 group to create new directories in / without having to fiddle with the fileserver console. this also makes it consistent to hjfs and cwfs.
2015-07-14mk9660: write data in alphabetical ordercinap_lenrek
*after* writing, the directory tree gets alphabetically sorted for path table. this causes data to not be in the same order as it was written causing seeks when taring up the filesystem. so instead write the files in alphabetical order as well to better match the directory sorting.
2015-06-13vblade, cifs, usbuhci: fix parenthesiscinap_lenrek
2015-06-05disk/edisk: create esp partition in addition to plan9 partition in auto modecinap_lenrek
2015-06-04disk/format: create Fatinfo sector for fat32cinap_lenrek
2015-06-03disk/edisk: fix blank modecinap_lenrek
there where two problems with blank (-b flag): we did not update the backup header when there was already a valid backup header in place. we always want to initialize a new backup header in blank mode! we now also check the backup header matches the primary (or the other way arround depending on which header could be read), reporting any mismatches and restoring the backup from the data of the primary. the protective mbr needs to start at sector 1 not 0 (apparently, this matters for ovmf).
2015-05-31disk/fdisk: learn about EFI system partition (type 0xEF), honor protective ↵cinap_lenrek
mbr (type 0xEE) efi systems may use traditional dos partition table with an esp (efi system partition). otherwise, honor the protective mbr partition (0xEE) and exit when we encounter it.
2015-05-31disk/edisk: little improvementscinap_lenrek
- make UU() shorter by using long long constant to encode node field - store Flag as a mask, not as a shift count - put the attributes before the name in cmdsum() as it is fixed length
2015-05-30disk/edisk: fix usage (was disk/gdisk)cinap_lenrek
2015-05-30disk/edisk: gpt partition table editor (no manpage, work in progress)cinap_lenrek
2015-05-30disk/partfs: adding identical partition is no-opcinap_lenrek
2015-05-30disk/fdisk: fix help textcinap_lenrek
2014-12-19vblade: fix code so #pragma pack isnt neededcinap_lenrek
2014-12-19add erik quanstros vblade utilitycinap_lenrek
2014-12-15disk/mkfs: add -o flag to list source filescinap_lenrek
2014-10-31mk9660: add -E option to create EFI boot entrycinap_lenrek
2013-10-16fdisk: fix struct padding for amd64 (from erik quanstros fdisk-64-bit-table ↵cinap_lenrek
patch) small little patch to help fdisk work properly on 64-bit machines. sizeof(Table) is 4 bytes too big.
2013-06-29dump9660: fix volume space size field (from sources, paure)cinap_lenrek
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-119.pdf page 19: Volume Space Size (BP 81 to 88) This field shall specify as a 32-bit number the number of Logical Blocks in which the Volume Space of the volume is recorded. This field shall be recorded according to 7.3.3.
2013-01-309p message size too smallcinap_lenrek
various fileservers do not check if the message size is too small (they subtract IOHDRSZ later from it to calculate iounit) which can overflow.
2012-12-31fix utf and rune handling in preparation for 32bit runescinap_lenrek
2012-09-20Add disk/smart to mkfilegoogle
2012-09-20Add Erik Quanstrom's smart tool for ATA SMART.google
2012-09-09Print correct sizes in prep autopart.google
2012-09-09Add alignment hints for e512 ATA drives.google
2012-08-01kfs: fix read offset integer overflowcinap_lenrek
2012-07-30import updated compilers from sourcescinap_lenrek
2012-05-08disk/format, 9boot: fix alignment issuescinap_lenrek
2012-05-07disk/format: FAT32 supportcinap_lenrek
2012-05-06disk/format: choose default cluster size if not givencinap_lenrek
2012-03-09disk/mbr: always use 512 byte sectors (imported changes from sources)cinap_lenrek
2011-08-18attempt to fix 9vx buildaiju
2011-07-17fdisk: attempt fixing extended partition handlingcinap_lenrek