summaryrefslogtreecommitdiffstats
path: root/sys/geom/label
Commit message (Collapse)AuthorAgeFilesLines
* Handle MSDOS file systems properly. Before the change file systemspjd2006-08-122-34/+295
| | | | | | | | created on Windows XP (and others maybe) were not detected. We detected only those created with newfs_msdos(8). Submitted by: Tobias Reifenberger <treif@mayn.de> style(9)ified by: pjd
* Verify if a label doesn't point to the parent directory.pjd2006-08-121-0/+24
|
* We need to check if file system size is equal to provider's size, becausepjd2006-03-041-2/+7
| | | | | | | | | | | | sysinstall(8) still bogusly puts first partition at offset 0 instead of 16, so glabel/ufs will find file system on slice instead of partition. Before sysinstall is fixed, we must keep this code, which means that we wont't be able to detect UFS file systems created with 'newfs -s ...'. PS. bsdlabel(8) creates partitions properly. MFC after: 3 days
* Inform when label disappears.pjd2006-02-181-16/+36
| | | | MFC after: 3 days
* - Do not depend on fact that file system covers entire provider.pjd2006-02-181-19/+13
| | | | | | | | It won't work for file systems created with -s option. Use better file system verfication. - Add myself to the copyright. MFC after: 3 days
* This function returns nothing.pjd2006-02-181-1/+1
|
* If provider's sector size prevents reading SBLOCKSIZE bytes returnpjd2006-02-181-8/+10
| | | | immediatelly.
* Remove trailing spaces.pjd2006-02-015-10/+10
|
* Style cleanups.pjd2006-01-181-24/+21
| | | | X-MFC-after: Already MFCed to RELENG_6 by accident.
* Don't pass error value pointer to g_read_data(9) at all if we don'tsobomax2005-11-303-6/+6
| | | | | | have any use of it. Suggested by: pjd
* Check for g_read_data(9) errors properly:sobomax2005-11-303-3/+3
| | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk
* We do nothing with returned error value, so just remove it.pjd2005-11-291-3/+2
|
* Check value returned by g_read_data(9), otherwise we can end in panic(9)sobomax2005-11-291-0/+3
| | | | | | if read error happens. MFC after: 1 week
* Add checking for File record magic.takawata2005-10-261-0/+6
|
* Verify length of the data to read as well.pjd2005-08-281-0/+2
|
* Verify offset before reading.pjd2005-08-261-1/+5
| | | | MFC after: 2 days
* Add NTFS labeling function.takawata2005-08-263-0/+115
| | | | Reviewed by:pjd
* Verify if we can actually read the data at given offset.pjd2005-08-232-6/+13
| | | | Reported by: Martin <nakal@nurfuerspam.de>
* Back-out the change from revision 1.14 and allow for '/' in labels again.pjd2005-08-201-8/+0
| | | | | Convinced by: green, Gavin Atkinson, dougb, gordon MFC after: 1 day
* Provide more complete "How to add a new file system to glabel." list.pjd2005-08-121-3/+7
| | | | MFC after: 1 week
* Add code for Ext2FS and ReiserFS labels recognition.pjd2005-08-124-0/+206
| | | | | | Submitted by: Stanislav Sedov <stas@310.ru> PR: kern/84638 MFC after: 1 week
* Avoid creating directories in devfs by changing all '/' in labels to '_'.pjd2005-08-121-0/+8
| | | | | Idea from: Stanislav Sedov <stas@310.ru> MFC after: 3 days
* The size of a filesystem may be less than the size of the provider itwollman2005-04-191-2/+2
| | | | | | | resides on. Fix the special case of the filesystem fragment size not evenly dividing the size of the provider. Fixing the general case probably requires better superblock validation (left as an exercise to the reader).
* - Add md_provsize field to metadata, which will help withpjd2005-02-272-3/+25
| | | | | | | | | | | | | | | | | shared-last-sector problem. After this change, even if there is more than one provider with the same last sector, the proper one will be chosen based on its size. It still doesn't fix the 'c' partition problem (when da0s1 can be confused with da0s1c) and situation when 'a' partition starts at offset 0 (then da0s1a can be confused with da0s1 and da0s1c). One can use '-h' option there, when creating device or avoid sharing last sector. Actually, when providers share the same last sector and their size is equal, they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c) isn't important at all. - Provide backward compatibility. - Update copyright's year. MFC after: 1 week
* merge from geom_vol_ffs.c rev 1.14 (avoid unaligned I/O requests)des2005-02-081-0/+10
|
* Only allow for unloading when there are no geoms in LABEL GEOM class.pjd2004-10-141-1/+16
| | | | | | | | | We have to use our own destroy_geom method, because default one, which is a part of geom_slice is broken. MT5 candidate. PR: kern/72467 Submitted by: Vladimir Novoseltsev
* This is not needed anymore, it is forced in GEOM now.pjd2004-09-201-3/+0
| | | | | | | | | Actually, it can even cause some problems, because GEOM requires sectorsize to be more than 0 on first access, not on provider creation, so we can skip valid providers by doing this check here. Reported by: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Sven Willenberger <sven@dmv.com>
* Allow to configure debug level from /boot/loader.conf.pjd2004-08-301-0/+1
|
* Skip providers with not defined sector size.pjd2004-08-261-0/+3
| | | | Reported by: kuriyama
* Do not use g_wither_geom(9). I doesn't work in the way which is expectedpjd2004-08-091-12/+8
| | | | | here anymore (after g_wither_washer() was introduced), i.e. geom and consumer will not be immediately destroyed if possible.
* Tag all geom classes in the tree with a version number.phk2004-08-081-0/+1
|
* Remove unused macro.pjd2004-07-131-9/+0
|
* Decrease log level of one debug message, so there is no hole (level 2pjd2004-07-131-1/+1
| | | | wasn't used at all).
* Add missing argument.pjd2004-07-061-1/+1
|
* Properly free resources if g_access() fails.pjd2004-07-061-1/+3
|
* - Add 'stop' command, which works just like 'destroy' command, but soundspjd2004-07-052-2/+3
| | | | | | less dangerous. - Update manual pages and extend examples. - Bump versions.
* Introduce GEOM_LABEL class.pjd2004-07-025-0/+785
This class is used for detecting volume labels on file systems: UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660. It also provide native labelization (there is no need for file system). g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow. g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found where volume labels are stored and I use those offsets here, but with this class it should be easy to do it as it should be done by someone who know how. Implementing volume labels detection for other file systems also should be trivial. New providers are created in those directories: /dev/ufs/ (UFS1, UFS2) /dev/msdosfs/ (FAT12, FAT16, FAT32) /dev/iso9660/ (ISO9660) /dev/label/ (native labels, configured with glabel(8)) Manual page cleanups and some comments inside were submitted by Simon L. Nielsen, who was, as always, very helpful. Thanks!
OpenPOWER on IntegriCloud