aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-03-30com32/chain: Correct copyrightsyslinux-4.xxGene Cumm11-11/+11
Should have a defined time Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2014-12-01chain module: backport changes from master to syslinux-4.xxMichal Soltys13-821/+1078
Signed-off-by: Michal Soltys <soltys@ziu.info>
2014-02-12hdt-cli: Correct malloc() size argumentMatt Fleming1-1/+1
We need to be allocating sizeof(char *) (4) not sizeof(char) (1) for 'new_argv'. Cc: Erwan Velu <erwanaliasr1@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2014-02-01acpi: Removing memset of bufferErwan Velu1-1/+0
There is no need to memset the buffer since the strncat will end the string with a \0. The memset was also almost wrong as doing a sizeof() on a char * could return 1 if buff was malloc'ed. We had chance as all the current calls are done with static buffers. Removing this memset call will make things clearer but also will prevent compilation warnings like : com32/gpllib/acpi/acpi.c:38:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(buffer, 0, sizeof(buffer));
2014-02-01hdt: Fixing memory leak in cliFelipe Pena1-0/+2
The dynamically alloc'd string to protect from strtok modification has not been free'd on start_auto_mode() function. This patch insure the free is done properly.
2014-02-01isohybrid: Improve help/manGene Cumm2-7/+10
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2014-02-01Add manpages for isohybrid, memdiskfindPeter Jones2-0/+71
Signed-off-by: Peter Jones <pjones@redhat.com>
2014-01-18Makefiles: don't include *.tmpH. Peter Anvin9-9/+9
Since checkin: bd09a6d828fa Major Makefile cleanups; gcc 4.3.0 compatiblity ... we include *.tmp into the Makefiles as well as .*.d. This seems to have been a mistake in made when adding *.tmp to cleanup rules, probably using a sed script. This causes problems, because *.tmp files are generated by the gcc_ok macro and do not contain Makefile rules at all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2014-01-17version: Update to 4.08, update year to 2014H. Peter Anvin1-1/+1
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2014-01-08diag/geodsp: README fixesGene Cumm1-7/+25
Should clarify the situation; also word-wrap & save example Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2014-01-08diag/geodsp: fix MakefileGene Cumm1-3/+3
Results in null image Reported-By: ioannis Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2013-12-30Remove some whitespaceRuben Kerkhof1-1/+1
Signed-off-by: Ruben Kerkhof <ruben at rubenkerkhof.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2013-12-11isolinux: Clear upper half of EDX before usingH. Peter Anvin1-1/+1
In checkin: cb015497a4e4 isolinux: Update LBA in getlinsec loop ... we use EDX as a sector count, but the sector count is actually in DX, and the upper half of EDX is uninitialized. If the BIOS enters with a nonzero value in the upper half of EDX, this breaks horribly. At least one set of BIOSes has been identified where if the LBA > 64K then the upper half of EDX will be nonzero. Reported-by: Carl Duff <cdrw2400@gmail.com> Reported-by: Philip Müller <philm@manjaro.org> Tested-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-07-25NEWS: document changes in 4.07syslinux-4.07Matt Fleming1-0/+8
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2013-07-12version: bump version and datesyslinux-4.07-pre1Matt Fleming1-1/+1
Welcome to the 4.07 release cycle Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2013-02-27menugen: Make it compatible with Py3kPaulo Alcantara1-28/+28
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2013-01-14isolinux: Update LBA in getlinsec loopMatt Fleming1-0/+3
We need to increment the Logical Block Address in eax by the number of sectors we passed to getlinsec after every invocation, otherwise we'll start with the same sector everytime. This bug was discovered when booting an isohybrid image, which failed to boot after printing the following error, "Image checksum error, sorry..." because the isolinux.bin was bigger than 32K, and thus invoked the getlinsec loop that reads the file in chunks. Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-12-04Merge branch 'searchdir_leak-406' of git://git.zytor.com/users/sha0/syslinux ↵Matt Fleming1-108/+155
into stable Pull a change that fixes a resource leak from Shao Miller, * 'searchdir_leak-406' of git://git.zytor.com/users/sha0/syslinux: fs: Fix searchdir resource leak
2012-11-29fs: Fix searchdir resource leakShao Miller1-108/+155
This is a significant rewrite of the generic lookup logic inside core/fs/fs.c's searchdir function. Previously, there was a memory leak if a path involved multiple directories. After a sufficiently large number of invocations, this could be observed. Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Shao Miller <sha0.miller@gmail.com>
2012-11-05extlinux: Avoid dereferencing a garbage pointerMatt Fleming1-3/+1
If opt.reset_adv is set the call to ext_read_adv() is skipped which would have initialised 'filename'. This means that a pointer containing random data from the stack is passed to ext_write_adv(). Just delete the opt.reset_adv logic since modify_adv() handles that case anyway. Reported-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-23memdisk: Fix order of sectors/track and bytes/sectorsyslinux-4.06Kenneth J. Davis1-2/+2
Swap order of sectors/track with bytes/sector to match diskette parameter table order (as pointed to by INT 1Eh). References: (additional ones available if necessary) 'System BIOS for IBM PC/XT/AT computers and compatibles' by Phoenix Technologies Ltd. copyright 1987,88,89 3rd printing 1990 ISBN: 0-201-51806-6 pages 61-62 'PC Interrupts' 2nd edition by Ralf Brown & Jim Kyle copyright 1994 1st printing 1993 ISBN: 0-201-62485-0 page 211 Note: this fixes an issue with older FreeDOS kernels that expect this structure to contain valid values. Signed-off-by: Kenneth J. Davis <jeremyd@fdos.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-23NEWS: Document the VFAT relative path fixMatt Fleming1-0/+2
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-23README: Clarify the requirements for utils/isohybridMatt Fleming1-3/+3
Be clear that utils/isohybrid requires the UUID library as well as /usr/include/uuid/uuid.h. Reported-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-23NEWS: Fix some typosMatt Fleming1-4/+4
Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-23doc: minor documentation updatesVanush "Misha" Paturyan2-2/+2
syslinux.txt: syslinux binary is in "linux" directory menu.txt: menu.c32 and vesamenu.c32 are in com32/menu directory
2012-10-22Revert "win: Add -mno-ms-bitfields"H. Peter Anvin2-6/+5
This reverts commit 7d9ee65cc9577eb69782a49a34895ae80820e9ff. I am concerned that this may cause the Windows ABI header files to be misinterpreted. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-10-22Packed definition: workaround for mingw + gcc 4.7H. Peter Anvin1-6/+17
__attribute__((packed)) does the wrong thing when in ms-struct mode; this breaks compiling on mingw-w64. Therefore force gcc struct mode when we use packed. This obsoletes checkin 7d9ee65 win: Add -mno-ms-bitfields Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-10-15comboot: remove comapi_chainbootsyslinux-4.06-pre14Sebastian Herbszt2-37/+2
comapi_chainboot was obsoleted in 3.80. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-15comboot: fix documentationSebastian Herbszt1-51/+1
comapi_shuffle was obsoleted in 3.80. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-15README: document the need for /usr/include/uuid/uuid.hGeert Stappers1-0/+7
utils/isohybrid build depends on /usr/include/uuid/uuid.h The package name varies between distribution families.
2012-10-12menu: Disallow navigation to a disabled entry via *any* keyMatt Fleming1-2/+3
Generalise the fix from commit c823574f53c1 ("menu: Don't highlight disabled entries") as it only handled the case where we navigated to a disabled last entry by pressing Ctrl + N or the DOWN arrow key. Obviously, we can navigate with other keys such as END, PGDN, etc so we need to handle all cases. Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-11prdhcp.c32: Turn off DEBUGsyslinux-4.06-pre13Matt Fleming1-1/+1
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-11Merge branch 'pxechn-fix-news-for-hpa-2' of git://github.com/geneC/syslinuxMatt Fleming5-38/+287
Conflicts: NEWS com32/modules/Makefile
2012-10-11win: Add -mno-ms-bitfieldsShao Miller2-5/+6
Recent MinGW GCCs now have -mms-bitfields on by default, but it appears to break our intentions with __attribute__((packed)). See GCC bug 52991, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 The undesired behaviour was noticed when the win32 installer had troubles identifying the media type field of a boot sector. Signed-off-by: Shao Miller <sha0.miller@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-10isohybrid: fix isohybrid.c compileFrediano Ziglio1-5/+5
Make isohybrid.c compile on gcc 4.4 32 bit instead of producing the following error, isohybrid.c: In function ‘lendian_64’: isohybrid.c:437: error: integer constant is too large for ‘long’ type Cc: Matthew Garrett <mjg@redhat.com> Cc: Michal Soltys <soltys@ziu.info> Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-10ext2: add additional check to ext2 loaderFrediano Ziglio1-0/+3
Check if a pointer is NULL due to specifying an invalid inode group number. Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-09mboot: fix typo in commentFrediano Ziglio1-1/+1
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-09make some functions static remove unused NADV defineFrediano Ziglio2-6/+4
Just some minor cleanup Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-09menu: Add MENU GOTO support to the MENU DEFAULT parsing codeMatt Fleming1-1/+3
Tomas reported that the 'test1' submenu in the following config file snippet doesn't honour the MENU DEFAULT directive, MENU BEGIN test0 MENU START LABEL - MENU DEFAULT MENU LABEL OptionA MENU GOTO test1 MENU END MENU BEGIN test1 LABEL - MENU LABEL OptionA1 MENU GOTO test0 LABEL - MENU DEFAULT MENU LABEL OptionB1 MENU GOTO test0 MENU END The reason is that the menu config code doesn't know how to handle a default item that is a MENU GOTO directive. A trivial addition to the code in record() fixes this. Reported-by: Tomas M <tomas@slax.org> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-09menu: Don't highlight disabled entriesMatt Fleming1-2/+1
There's an off-by-one bug in the menu input handling code which makes it possible to highlight/select the last entry in a menu even if that entry is disabled. It should be noted that you can't actually *do* anything with the disabled entry, i.e. edit or execute it. Still, allowing it to be highlighted does look a little strange. Reported-by: Matt Sephton <matt.sephton@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-08com32: Add ifmemdsk.c32 to MakefileMatt Fleming1-1/+1
... so that it actually gets built. This should have been added to the Makefile when ifmemdsk.c was created. Reported-by: Ady <ady-sf@hotmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-10-05NEWS: Document changes between 4.05 and 4.06syslinux-4.06-pre12Matt Fleming1-0/+8
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
2012-09-22In the current Lua.c32 DMI implementation, it is a flat table with dotted ↵Hung-chi Lihn2-208/+420
names in table entries. It also misses a number DMI sub-tables. This patch, cleans up the DMI table structure using Lua's nested table structure and adds all missing DMI sub-tables. If a DMI sub-table is not supported by the hardware (not filled), then the corresponding sub-table will not be generated. This helps to make the table structure cleaner and reflects the actual DMI information. Signed-off-by: Hung-chi Lihn <hlihn@google.com> Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
2012-09-22Bug fix: Added the missing entry (boot_from_pcmcia) in struct s_characteristics.Hung-chi Lihn1-1/+2
In bios_charac_strings[] of /com32/gpllib/dmi/dmi_bios.c there are actually 29 entries. However, BIOS_CHAR_NB_ELEMENTS in /com32/gplinclude/dmi/dmi_bios.h was defined as 28 and struct s_characteristics in the same file also only had 28 entries. It turns out that there was a missing entry "boot_from_pcmcia" (the 16th entry representing bit 18) in s_characteristics. Signed-off-by: Hung-chi Lihn <hlihn@google.com> Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
2012-09-22Added the native syslinux functions config_file(), ipappend_strs(), and ↵Hung-chi Lihn1-0/+33
reboot() to Lua.c32. This allows the Lua script to query the config file name and the ipappend strings (pxelinux only), as well as to perform reboot (warm and cold) to the system. In Lua.c32, the extension will be used as the following: 1. syslinux.config_file() will return the config file string. 2. syslinux.ipappend_strs() will return a table of IPAPPEND strings with numerical indices. 3. syslinux.reboot() will perform cold reboot, while syslinux.reboot(1) will perform warm reboot. Signed-off-by: Hung-chi Lihn <hlihn@google.com> Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
2012-09-22The current Lua.c32 does not enable io.read() due to some missing library ↵Hung-chi Lihn1-11/+29
functions. However, this strongly limits the Lua script from getting user inputs and reading files (even in pxelinux via TFTP). This patch enables io.read() in Lua.c32 with some restrictions: 1. the io.read("*line") is fully supported. 2. the io.read("*number") is not supported due to the missing buffering in underlying file I/Os. However, the user can read a line using io.read() and convert the string to numbers using the built in pattern matching and number conversion features. 3. io.read(bytes) is supported. However, io.read(0) will not be a valid test for EOF due to the missing I/O buffering. io.read() will return nil if EOF is encountered. This offers an alternative way to handle EOF. Signed-off-by: Hung-chi Lihn <hlihn@google.com> Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
2012-09-16doc/pxechn.txt: updateGene Cumm1-5/+5
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-09-10NEWS: Adding 'silent' option from HDTErwan Velu1-1/+1
2012-09-10hdt: Release 0.5.2hdt/0.5.2Erwan Velu1-1/+1
New release with codename Manon
2012-09-10hdt: Adding Silent modeErwan Velu3-9/+19
By using the "silent" option at the cmdline, HDT tries not displaying any boring message. This is particulary interesting with the "display" option.
2012-09-10hdt: Removing remaining printf()Erwan Velu5-22/+22
Using more_printf allow to manage more easily several pages printing.
2012-09-10NEWS: Updating for HDT & kontron_wdtErwan Velu1-0/+6
2012-09-10kontron_wdt: Fixing makefileErwan Velu1-1/+1
Typo.
2012-09-10kontron_wdt: Enforce timeout value if already setErwan Velu1-0/+4
If the watchdog was already engaged, let's rewrite the timeout to insure the proper value is set.
2012-09-10kontron_wdt: Adjusting exit pathErwan Velu1-7/+10
If we fail, at least let's boot the expected image
2012-09-10kontron_wdt: Adding watchdog com32 moduleErwan Velu3-1/+525
When using a Kontron ETX board, it's possible to initialize and start the watchdog during syslinux booting. This allow protecting a boot sequence with a defined timeout. Bootloader is starting, engage the watchdog and then start a default entry (typically a Linux image). If the loaded OS, feed or reinitalize the watchdog, nothing occurs unless the system will reboot Conflicts: com32/modules/Makefile
2012-09-06doc/pxechn.txt: Fix old exampleGene Cumm1-4/+1
Command line options changed. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-09-05Merge remote-tracking branch 'hpa/master'Erwan Velu23-126/+839
2012-09-03doc/pxechn.txt: word wrapGene Cumm1-17/+49
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-09-03doc/pxechn.txt: Updates for clarity/flowGene Cumm1-27/+33
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-09-03doc/pxechn.txt: Change title for manpage use.Gene Cumm1-1/+1
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-07-19Correct initialization of the cache doubly-linked listsyslinux-4.06-pre11H. Peter Anvin1-2/+2
The initialization of the cache doubly-linked list had head->next->prev instead of head->prev->next; this entry is supposed to initialize the ->next entry of the last entry in the list (which points back to the head node.) For clarity, consistently use "head" to refer to the head node; the mixing of "head" and "dev->cache_head" needlessly obfuscated the code. The wild pointer reference caused crashes on some systems. Reported-by: Jan Safrata <jsafrata@centrum.cz> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-29linux.c32: add missing break;syslinux-4.06-pre10H. Peter Anvin1-0/+1
Add missing break; for ENOMEM. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29linux.c32: allow loading arbitrary setup_data blobsH. Peter Anvin1-12/+36
Allow loading arbitrary setup_data blobs via the syntax blob.NN=filename where NN is a decimal number. This also allows loading multiple device tree blobs. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29setup_data: if nothing to load and version < 2.09, no harm no foulH. Peter Anvin1-3/+3
If the setup_data is empty, it is okay if the version is < 2.09. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29setup_data: check to make sure kernel version >= 0x0209H. Peter Anvin1-0/+7
Versions before 2.09 had no setup_data support. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29linux.c32: add support for a device tree blob (dtb)H. Peter Anvin1-2/+25
Based on a patch by Thierry Reding, add support for loading a device tree blob using the generic setup_data framework. I used the name dtb= instead of fdt= since it looks like dtb= is the common acronym for the filenames and what is used in the kernel. Originally-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29<syslinux/linux.h>: add missing setup_data_init() definitionH. Peter Anvin1-0/+2
Missing prototype. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29Change fdt-specific loader into a generic setup_data loaderH. Peter Anvin6-68/+90
Make it a generic setup_data loader keyed by type. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Thierry Reding <thierry.reding@avionic-design.de>
2012-06-29com32: Add device tree supportThierry Reding6-6/+98
This commit adds support for passing a Flattened Device Tree (FDT) blob to the Linux kernel. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29fat: Make mangle behavior similar to the standard oneH. Peter Anvin1-16/+19
Handle mangle in FAT the same as in the generic version, except for \ -> / conversion. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-29win: Use lower-case private definition of STORAGE_DEVICE_NUMBERH. Peter Anvin1-6/+6
Since we can't know if <winioctl.h> actually defines STORAGE_DEVICE_NUMBER, just use a private definition of the structure but with a lower-case name. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-28Actually keep track of the pathnames for all elementssyslinux-4.06-pre9H. Peter Anvin4-81/+80
Actually keep track of the pathnames for all elements for on-disk filesystems. This makes sure we can always reconstruct the correct path. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-28chdir: collapse /./ and /../ in path for conventional filesystemssyslinux-4.06-pre8H. Peter Anvin1-6/+50
For conventional filesystems (i.e. not PXE), collapse /./ and /../ in the path when doing chdir. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-27win32: assume STORAGE_DEVICE_NUMBER is definedH. Peter Anvin1-1/+1
If using mingw-w64 to build for win32, this will be defined. This is confusing, especially since mingw-w64 defined __MINGW32__ but nothing else... thus hide this definition for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-20syslxopt: fix syntax errorssyslinux-4.06-pre7H. Peter Anvin1-2/+2
Oops :) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-20NEWS: document extlinux --deviceH. Peter Anvin1-0/+1
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-20extlinux: add --device option to override device detectH. Peter Anvin4-5/+27
Add a --device option for scripts and expert users to override the device detection. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-20extlinux: centralize and reuse btrfs validationH. Peter Anvin1-34/+77
We can re-use btrfs device validation now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-06-19extlinux: better methods for finding device matchesH. Peter Anvin5-44/+474
1. Support parsing /proc/self/mountinfo for devices; 2. For btrfs, query the device names from btrfs itself. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-13Merge remote-tracking branch 'hpa/master'Erwan Velu3-9/+39
2012-06-11Merge remote-tracking branch 'genec/linux-com32-error-message-for-hpa'syslinux-4.06-pre6H. Peter Anvin1-7/+34
2012-06-11isohybrid: Fix building with --as-neededMicah Gersten1-1/+1
The library link order was wrong. This patch was picked from Ubuntu. Reported-and-tested-by: Tim Fletcher <tim@night-shade.org.uk> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-09linux.c32: Make errors clearer for usersGene Cumm1-7/+34
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-06-04btrfs: Fix booting off a btrfs subvolume.Alexander E. Patrakov1-1/+4
The subvolume name in path.data is not NUL-terminated, so don't use strcmp on it. Before this patch, it would accumulate the following (given subvolumes with names "ext2_saved", "home", "gentoo" and "boot"): ext2_saved home_saved gentooaved bootooaved Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-06-02prdhcp.c32: Fix what is retrieved.Gene Cumm1-2/+3
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-06-02prdhcp.c32: Add to MakefileGene Cumm1-1/+1
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-06-02prdhcp.c32: Print DHCP packetsGene Cumm1-0/+163
For PXELINUX, print the generically parsed contents of the DHCP packets for examining the options used in all 3. It currently accepts no options. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-06-01doc/pxechn.txt: add -S, examples, clarifyGene Cumm1-8/+11
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-06-01pxechn.c32: add -S to transform sname to siaddrGene Cumm1-2/+31
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-31doc/pxechn.txt: WDS specifics, example, issueGene Cumm1-4/+10
Notes on using the WDS option. Known issue with gPXE/iPXE Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-30Merge remote-tracking branch 'hpa/master'Erwan Velu1-8/+9
2012-05-29relocs: Move stop to the endH. Peter Anvin1-8/+9
The Linux kernel puts the stop word at the beginning of the relocation list (the list is processed backwards); Syslinux puts the stop word at the beginning of the relocation list (the list is processed forwards.) Missed that change when syncing with the kernel version. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-05-29NEWS: add pxechn.c32Gene Cumm1-0/+3
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-29hdt: Removing builting sleep support in sayErwan Velu2-19/+1
If people want to sleep while saying message, they now have to use the sleep command instead of the previous specific %x syntax.
2012-05-29hdt: 0.5.2-pre3 releasehdt/0.5.2-pre3Erwan Velu1-1/+1
2012-05-29Merge branch 'master' of git://git.zytor.com/syslinux/syslinuxErwan Velu14-130/+1847
2012-05-29hdt: Adding sleep commandErwan Velu5-1/+21
This command will help users getting some delay between two automatic commands. As an example, it can be used to show a serie of pictures.
2012-05-29hdt: Adding display command to change backgroundErwan Velu5-0/+30
This command allow switching the background image. This could be used for example to give more explicit message to users. Idea is coming from the FGTC project
2012-05-29relocs: sync with the Linux kernelH. Peter Anvin3-98/+286
Sync the relocs tool with the Linux kernel. The new version of this tool correctly verifies that any absolute symbol is either listed as allowed absolute or is listed as relative. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-05-28core: add support for .init/fini_tableH. Peter Anvin1-4/+5
We don't actually have any constructors/destructors in the core at this time, but handle .init/fini_table in case that happens... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-05-28com32.ld: handle .init_array and .fini_arraysyslinux-4.06-pre5H. Peter Anvin1-23/+10
Handle constructors/destructors via .init_array and .fini_array, as generated by newer gccs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-05-28pxechn: Turn off debugGene Cumm1-3/+13
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-27Merge remote-tracking branch 'hdt/master'syslinux-4.06-pre4H. Peter Anvin19-91/+707
2012-05-27Merge remote-tracking branch 'genec/diag-mbr-fix-for-hpa'H. Peter Anvin2-3/+5
2012-05-27diag/mbr: Clarify READMEGene Cumm1-1/+3
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-27Update diag/mbr instruction to match the current filename.Jean-Christian de Rivaz1-2/+2
I suspect that some instructions about how to use the diag/mbr was not updated when the source file was renamed to handoff.S. Here is a simple proposition to fix that only into the handoff.S file. Jean-Christian de Rivaz Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-27pxechn.c32: PXE NBP chainloaderGene Cumm3-1/+1218
Designed as a more versatile COM32-based alternative to pxechain.com. It can use the PXE RESTART or chain to the new NBP without the PXE stack. It also enables a user to boot Microsoft Windows Server 2008R2 Windows Deployment Services's wdsnbp.com from PXELINUX. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-27COM32: add DHCP pack/unpack functionsH. Peter Anvin4-1/+323
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2012-05-27hdt: 0.5.2-pre2 releasehdt/0.5.2-pre2Erwan Velu1-1/+1
2012-05-27hdt: Adding say & postexec demoErwan Velu1-0/+9
When building official hdt image, let's add a say & postexec example.
2012-05-27hdt: Adding say commandErwan Velu2-0/+62
This command is just for displaing a message to the cli during a defined period of time. Syntax is like the following : say `my message`%<number_of_seconds> An example : say `This is my text message to display during 5 seconds`%5
2012-05-27hdt: Adding nomodule support in cliErwan Velu9-5/+84
Some new commands might need being able to manage the argv directly instead of the much more oriented scheme we had until now. This commit add a .nomodule option to cli object to explically tell they don't have a module as parameter but only arguments. This will be needed for the 'say' command.
2012-05-27hdt: Fixing argument mgmt in cliErwan Velu1-2/+2
Sizeof(char *) is definetly wrong for getting the length of a string.
2012-05-27hdt: Adding more debug traces in cliErwan Velu1-6/+8
Adding more debug traces in the cli management to ease debugging & feature adding.
2012-05-25hdt: Fixing chain32 target in makefileErwan Velu1-1/+1
chain32 moved, let's adjust the "release" target.
2012-05-25Merge remote-tracking branch 'hpa/master'Erwan Velu32-1964/+5044
2012-04-25Merge remote-tracking branch 'genec/diag-geodsp-perl-for-hpa'H. Peter Anvin2-4/+102
2012-03-26libinstaller: Avoid using <linux/ext2_fs.h>syslinux-4.06-pre3H. Peter Anvin3-11/+886
Don't use <linux/ext2_fs.h> if we can avoid it. The ioctl constants have been globalized and moved to <linux/fs.h>. Use a private copy of ext2_fs.h from e2fsprogs with the ioctl constants removed for the data structures. Do at least attempt backward compatibility for old kernel headers, but no real hope of proper operation there... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-03-26version: Update year to 2012H. Peter Anvin1-1/+1
It is the year MMXII of the Common Era... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-03-26Makefile: Use -Ox option to NASMH. Peter Anvin2-2/+2
We already require a new enough version of NASM that the -Ox option is supported, so just use it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-03-26Merge branch 'chaindev'H. Peter Anvin21-1937/+4000
2012-03-26chain.c: Fix misplaced #endif breaking non-DEBUG buildsH. Peter Anvin1-1/+1
Fix misplaced #endif which made it impossible to build without DEBUG. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-03-26isohybrid: Generate MBR even when in EFI modeMatthew Garrett1-5/+49
Various EFI systems insist that there be no active flag in the pMBR in order to parse the GPT. The only way around this is to also generate a valid MBR - the firmware will then pick that up and use the system partition provided there. In order to deal with other EFI "sanity" checks, the partition type for the non-EFI partitions is set to 0 to skip the firmware bailing because of overlapping partitions. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2012-03-21altmbr: actually invoke the correct partitionsyslinux-4.06-pre2H. Peter Anvin1-1/+1
We would fail to correctly invoke primary partitions 2-4 because of a register usage bug. Reported-by: Maxim Kammerer <mk@dee.su> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-03-12com32/lib/pci/scan.c: Fix free_pci_domain()Henri Roosen1-3/+3
free_pci_domain is releasing the memory too early; should be out of the for loops, because in the loop the memory is still dereferenced.
2012-02-24Merge remote-tracking branch 'hpa/master'Erwan Velu10-156/+431
2012-02-12NEWS: trivial changePaulo Alcantara1-1/+1
Change Paulo Cezar to Paulo Alcantara. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: check for index entry which has INDEX_ENTRY_END flag setPaulo Alcantara2-2/+10
In ntfs_readdir(), if one entry has INDEX_ENTRY_END flag set, it won't contain indexed_file member, that'd be used afterwards when looking for the MFT record that is associated with that index entry. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: remove wrong checksPaulo Alcantara1-48/+24
As an attribute may be stored in a NTFS record rather than the current record being used, these checks wouldn't work anymore for this case. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: keep looking for attributes with the latest found MFT recordPaulo Alcantara1-19/+47
Once ntfs_attr_lookup() is called, it may change the MFT record passed as parameter so that the next calls that need the latest found MFT record don't have it anymore. So the __ntfs_attr_lookup() variant will provide support to the ntfs_attr_lookup() function handling both old and new MFT records. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: MFT record may be changed when invoking ntfs_attr_lookup()Paulo Alcantara1-16/+20
After invoking ntfs_attr_lookup(), the attribute type that we're looking for may be allocated in a other MFT record, so the parameter which gets the current MFT record can be changed once to point to the other MFT record that actually contains the wanted attribute type. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: add missing field in ntfs_attr_list_entry structurePaulo Alcantara2-6/+15
This missing field just messed up when reading the ntfs_attr_list_entry's fields to be used in any case. Also add a check to avoid reading the same MFT record which contains the attribute list and also the wanted attribute type. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: print function names on debug modePaulo Alcantara1-0/+30
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: handle offsets when walking through attribute list's entriesPaulo Alcantara2-17/+21
Instead of either hanging out or printing a fatal message on the screen when not finding attributes from attribute list's entries, handle offsets that will determine if we reached end of a attribute list. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: handle MFT records that contain $ATTRIBUTE_LIST attributePaulo Alcantara2-33/+185
MFT records that contain $ATTRIBUTE_LIST attributes, for example, are those that there are many hards links, or the file itself is very fragmented, and so on. So when attributes of a MFT record that don't fit in a MFT record, those will be stored in one or more MFT records and can be found through the attribute list's entries of the MFT record being acessed, which are in the $ATTRIBUTE_LIST attribute. ntfs_attr_list_lookup() function will be called once we didn't find the attribute within the MFT record itself so that the attribute will presumably be stored in another MFT record, according to the information that has been retrieved from the attribute list's entry. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ldlinux: workaround for avoiding EDD error on btrfs probePaulo Alcantara1-2/+2
When installing Syslinux in an NTFS volume and then booting it up, Syslinux will print on the screen an EDD error ocurred on btrfs probing because that volume is not actually a btrfs one. Thus, to work around that issue add ntfs_fs_ops structure just before the btrfs_fs_ops so that fs_init() function will execute the ntfs_fs_ops->fs_init() function first, and on success, btrfs_fs_ops->fs_init() won't be executed either. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: fix POSIX vs Win32 filename comparesPaulo Alcantara1-10/+0
When using the COMBOOT32 module "ls" for listining directory entries on an NTFS volume, for e.g. directories as "/Foobar" (a Win32 filename) could be only listed as "ls.c32 /foobar" and neither "ls.c32 "/Foobar" nor "ls.c32 /FOOBAR". POSIX filenames must be handled in a case-sensitivity way, while Win32 filenames are handled in a non-case-sensitivity way. Note also that the POSIX/Win32 filename compare is done in the ntfs_filename_cmp() function. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-11ntfs: fix license headersPaulo Alcantara3-3/+3
Add missing year information in the license headers. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2012-02-08Merge remote-tracking branch 'pcacjr/mingw-ubuntu-prefix-for-hpa'H. Peter Anvin1-1/+2
2012-02-08extlinux: use sysfs to find the device node if need beH. Peter Anvin1-10/+66
If neither /proc/mounts nor /etc/mtab contains a functional pointer to the device node for the installer, try to see if we can find the device node by looking for a symlink in /sys/dev/block. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-08extlinux: clean up main.c formattingH. Peter Anvin1-36/+35
Clean up some ugly formatting in main.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-08extlinux: main.c should not be executableH. Peter Anvin1-0/+0
Remove stray x bit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-06bootsect.inc: try to catch obvious .0 problemsH. Peter Anvin1-1/+15
A typical Linux kernel will be way, way too big for the low memory bootstrap area, so throw an error message if we end up in the bootstrap path with something that cannot possibly fit below 640K. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-06strreplace: additional cleanupsH. Peter Anvin2-2/+2
Additional formatting cleanups. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-06strreplace: clean up and simplifyH. Peter Anvin1-20/+24
Clean up and simplify strreplace(); in particular there is no need to call strlen() repeatedly on the same strings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-01-26win32: add new mingw prefixPaulo Alcantara1-1/+2
This prefix is used on at least Ubuntu 12.04 when installing the mingw-w64 package. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reported-by: Gert Hulselmans <hulselmansgert@gmail.com>
2012-01-07lua: Adding dhcp supportTimm Gleason5-0/+412
Adds DHCPINFO functionality to the lua.c32 binary gettable() returns a table of the BOOTP message fields returned by the DHCP server for use in a Lua pxeboot script See http://tools.ietf.org/html/rfc1542 lua key value RFC key ----------------------------------------------------------------------- opcode op message opcode hardware.type htype Hardware address type hardware.length hlen Hardware address length hops hops Used by relay agents transaction.id xid transaction id elapsed.seconds secs Secs elapsed since client boot flags flags DHCP Flags field client.ip.addr ciaddr client IP addr your.ip.addr yiaddr 'Your' IP addr. (from server) server.ip.addr siaddr Boot server IP addr gateway.ip.addr giaddr Relay agent IP addr client.mac chaddr Client hardware addr server.hostname sname Optl. boot server hostname boot.file file boot file name (ascii path) magic.cookie cookie Magic cookie getoptions() returns a table of the DHCP Options field of the BOOTP message returned by the DHCP server for use in a Lua pxeboot script. Many of the options are reurned formatted in as strings in a standard, recognizable format, such as IP addresses. 1, 2, and 4 byte numerical options are returned as integers. Other Options with non-standard formats are returned as strings of the raw binary number that was returned by the DHCP server and must be decoded in a Lua script The Options table returns the Option code as the key except where there are multiple values returned. In those cases, an extra key increment number is added to allow individual access to each Option value. lua key value value Name ----------------------------------------------------------------------- 1 Subnet Mask 6.1 DNS Server [element 1] 6.2 DNS Server [element 2] 6.3 DNS Server [element 3] 209 PXE Configuration File 21.1 Policy Filter [element 1] 21.2 Policy Filter [element 2] Options that can have a list of values, but contain only one (like Option 6) will not return with .sub key values. Usage: t = dhcp.gettable() for k,v in pairs(t) do print(k.." : "..v) end
2012-01-07ifcpu: Adding hypervisor supportErwan Velu1-10/+15
This simple hack add the ability to detect the hypervisor presence.
2011-12-31diag/geodsp: Use perl to make the image; Fix MakefileGene Cumm1-4/+8
This reduces the host binary dependence and prevents the need for a rebuild of the images after a 'make clean'. This has the unfortunate side effect of going from 0.03s to 0.30s to build an image. Also fix Makefile to include (optional) raw targets and use $(GZIPPROG) Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
2011-12-31diag/geodsp: add mk-lba-img.plGene Cumm1-0/+94
To be used to replace the native C binary
2011-12-22gpllib/disk: Massive updates of fs labelsErwan Velu1-66/+113
Inspired by Gerth and updated from both fdisk list & also from http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
2011-12-17hdt: Adding postexec= optionErwan Velu3-4/+34
When HDT is exiting, you might need executing something else. This could be used in the following scenario : You start HDT, do an automatic command like 'dump; exit', but then after you might need to launch something else from syslinux. The postexec option will allow you to define what label you'd love running one HDT got terminated. Syntaxt is like the following: postexec='menu_label_to_run_once_hdt_got_exited' Note the quotes (') after the equal sign (=) This could looks like : APPEND auto='dump; exit' postexec='memtest'
2011-12-17hdt: On the road to 0.5.2Erwan Velu1-2/+2
2011-12-17Merge remote-tracking branch 'hpa/master'Erwan Velu39-103/+2957
2011-12-14Clarify the license for the Syslinux logosyslinux-4.06-pre1H. Peter Anvin1-0/+5
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2011-12-14version: now working on version 4.06H. Peter Anvin1-1/+1
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2011-12-14NEWS: document NTFS supportH. Peter Anvin1-0/+3
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2011-12-13find-mingw64: yet another set of prefixes to test...H. Peter Anvin1-0/+4
This seems to be the current set of prefixes used by the Fedora-cross project. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-12-13Merge remote-tracking branch 'pcacjr/ntfs-for-hpa'H. Peter Anvin32-96/+2938
2011-12-09Add logo by Abi Rasheedsyslinux-4.05H. Peter Anvin2-0/+2
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2011-12-07Makefile.private: remove obsolete targetsyslinux-4.05-pre7H. Peter Anvin1-4/+0
Remove target made obsolete by upstream changes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2011-12-05NEWS: document mk-lba-img removalH. Peter Anvin1-1/+3
2011-12-05diag/geodsp: don't distribute mk-lba-imgH. Peter Anvin1-1/+1
Do not distribute the mk-lba-img host tool binary. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-11-02Merge remote-tracking branch 'hpa/master'Erwan Velu7-40/+1339
2011-09-22hdt: Don't search HDDs when no HDD got detectedErwan Velu1-1/+3
2011-09-22hdt: Avoid memory corruption on menu summaryErwan Velu1-2/+1
During CPU's capabilites computation, let's sure the buffer we manage is big enought....
2011-09-22hdt: Dumping disk failed when disk are presentErwan Velu1-1/+1
When physical disks were present, the computed items were not flushed and so not present on the disk file. Thanks to pscheie for reporting this.
2011-09-20ntfs: keep a state structure for ntfs_readdir() callersPaulo Alcantara2-21/+45
Latetly, we kept a state information within the inode structure, that was actually a mistake. Now, a ntfs_readdir_state structure is allocated to keep a state that'll help on listing directory entries from sucessive ntfs_readdir() calls. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-15ntfs: cleanupsPaulo Alcantara3-240/+116
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: Check for disk read error during FS probingShao Miller1-1/+4
If reading the NTFS BIOS parameter block fails for any reason, we will not attempt to continue to work towards finding an NTFS filesystem on the disk/partition. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: Deal with NTFS versions for MFT record lookupsShao Miller2-13/+139
The MFT record lookup strategies are different for NTFS versions 3.0 and 3.1, so we use a function pointer for the appropriate function. We start off using 3.0 by default, then use that to read the $Volume meta-file and find out the actual version. Then we adjust the function pointer, as needed. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: use a runlist for handling multiple data runsPaulo Alcantara3-23/+128
NTFS files can contain multiple data runs, so use a runlist for handling multiple data runs of a single file, and also modify ntfs_next_extent() in order to support this new feature. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11win: Fix an out-of-bounds array accessShao Miller1-1/+1
We should not attempt to make a map of more LDLINUX.SYS sectors than we have. Simply multiplying a cluster count times the number of sectors per cluster does not account for unused sectors in the last used cluster. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: don't start lookup from the same block in ntfs_mft_record_lookup()Paulo Alcantara1-5/+9
ntfs_mft_record_lookup() always started its lookup from the same block, which was though a mistake. So the lookup became very slow. Now determine its starting block number from the calculated MFT record's LCN number. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: fix ntfs_read()Paulo Alcantara1-3/+4
lbytes variable wasn't set correctly. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: and more fixes...Paulo Alcantara2-45/+39
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11win: Add further NTFS support to Windows installersShao Miller9-2/+896
We have a way of building a map of the LDLINUX.SYS sectors on an NTFS filesystem, now. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
2011-09-11ntfs: fix VCN calculation and the ntfs_readdir() functionPaulo Alcantara2-21/+59
Now I'd recommend to test it :-) Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: more bugfixesPaulo Alcantara2-137/+231
Need more tests, hence I don't recommend to rely on it right now. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: fix ntfs_fs_init()Paulo Alcantara1-13/+19
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: I think ntfs_readdir() is now fixedPaulo Alcantara2-51/+77
gerth and sha0, you need to test it! :-) Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: fix ntfs_readdir()Paulo Alcantara2-80/+166
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: mapping_chunk's length field must not be an uint8_t typePaulo Alcantara1-2/+2
Also change the other length field accordingly. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: better way to check whether a MFT record is file or directoryPaulo Alcantara2-40/+7
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: and more speed improvementsPaulo Alcantara2-81/+63
gerth, you HAVE to test it! :-) Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: fix ntfs_match_longname() and make index_lookup() fasterPaulo Alcantara1-82/+49
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: make index_inode_setup() fasterPaulo Alcantara1-16/+16
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: make ntfs_match_longname() fasterPaulo Alcantara1-30/+5
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: more cleanupsPaulo Alcantara1-21/+21
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: cleanupsPaulo Alcantara2-56/+5
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: fix bug in parse_data_run()Paulo Alcantara2-107/+79
parse_data_run() used to get the wrong value of VCNs starting at LCN, so it was only getting the value 1 and the NTFS driver didn't look at the other VCNs. Now, everything seems to work, except the readdir() function :-P Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: it's working, partially... :-/Paulo Alcantara1-120/+132
My tests were: menu.c32 (worked), cat.32 (worked, ls.c32 (not worked). Looks like we have a bug in ntfs_readdir(). It will check it out later. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-11ntfs: continue on its implementationPaulo Alcantara2-111/+190
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: heh :-)Paulo Alcantara2-94/+98
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: set block shift and size to their correct valuesPaulo Alcantara1-15/+13
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: implement fixups_realloc()Paulo Alcantara1-25/+32
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: implement ntfs_next_extent() and ntfs_getfssec()Paulo Alcantara1-5/+116
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: implement ntfs_readdir()Paulo Alcantara1-1/+85
Read one directory entry at one time. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
2011-09-07ntfs: implement get_inode_mode()Paulo Alcantara1-31/+43
Determine the mode of an inode from a given file record. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>