ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
March 2016
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
13 participants
263 discussions
Start a n
N
ew thread
[akhaldi] 71057: [REISERFS] Import ReiserFS file system driver for Windows. It will be enabled later on. Brought to you by Peter Hater. CORE-11005
by akhaldi@svn.reactos.org
Author: akhaldi Date: Sat Mar 26 20:40:42 2016 New Revision: 71057 URL:
http://svn.reactos.org/svn/reactos?rev=71057&view=rev
Log: [REISERFS] Import ReiserFS file system driver for Windows. It will be enabled later on. Brought to you by Peter Hater. CORE-11005 Added: trunk/reactos/drivers/filesystems/reiserfs/ trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/ trunk/reactos/drivers/filesystems/reiserfs/inc/gplntifs.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/ trunk/reactos/drivers/filesystems/reiserfs/inc/linux/bit_spinlock.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/bitops.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/config.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/errno.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/fs.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/jbd.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/journal-head.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/kernel.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/list.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/log2.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/module.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/nls.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_acl.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs_i.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs_sb.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_xattr.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/slab.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/spinlock.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/stddef.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/string.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/types.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/linux/version.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h (with props) trunk/reactos/drivers/filesystems/reiserfs/inc/rfsd.h (with props) trunk/reactos/drivers/filesystems/reiserfs/src/ trunk/reactos/drivers/filesystems/reiserfs/src/blockio.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/cleanup.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/close.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/cmcb.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/create.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/debug.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/devctl.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/dirctl.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/dispatch.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/except.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/fastio.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/fileinfo.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/flush.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/fsctl.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/init.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/lockctl.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/memory.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/misc.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/ trunk/reactos/drivers/filesystems/reiserfs/src/nls.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_base.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_big5.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp1251.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp1255.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp437.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp737.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp775.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp850.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp852.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp855.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp857.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp860.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp861.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp862.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp863.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp864.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp865.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp866.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp869.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp874.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp932.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp936.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp949.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp950.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_euc-jp.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_euc-kr.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_gb2312.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-1.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-13.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-14.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-15.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-2.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-3.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-4.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-5.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-6.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-7.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-8.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-9.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-r.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-ru.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-u.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_sjis.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_tis-620.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_utf8.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/pnp.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/read.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/rfsd.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/rfsd.rc (with props) trunk/reactos/drivers/filesystems/reiserfs/src/rfsdblock.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/shutdown.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/volinfo.c (with props) trunk/reactos/drivers/filesystems/reiserfs/src/write.c (with props) Modified: trunk/reactos/drivers/filesystems/CMakeLists.txt [This mail would be too long, it was shortened to contain the URLs only.] Modified: trunk/reactos/drivers/filesystems/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/CMakeL…
Added: trunk/reactos/drivers/filesystems/reiserfs/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/gplntifs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/bit_spinlock.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/bitops.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/config.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/errno.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/fs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/jbd.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/journal-head.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/kernel.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/list.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/log2.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/module.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/nls.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_acl.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs_i.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_fs_sb.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/reiserfs_xattr.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/slab.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/spinlock.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/stddef.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/string.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/types.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/linux/version.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/reiserfs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/inc/rfsd.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/blockio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/cleanup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/close.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/cmcb.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/create.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/debug.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/devctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/dirctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/dispatch.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/except.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/fastio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/fileinfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/flush.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/fsctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/init.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/lockctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/memory.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_base.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_big5.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp1251.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp1255.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp437.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp737.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp775.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp850.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp852.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp855.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp857.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp860.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp861.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp862.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp863.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp864.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp865.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp866.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp869.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp874.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp932.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp936.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp949.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_cp950.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_euc-jp.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_euc-kr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_gb2312.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-1.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-13.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-14.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-15.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-2.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-3.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-4.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-5.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-6.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-7.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-8.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_iso8859-9.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-r.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-ru.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_koi8-u.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_sjis.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_tis-620.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/nls/nls_utf8.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/pnp.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/read.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/rfsd.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/rfsd.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/rfsdblock.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/shutdown.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/volinfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
Added: trunk/reactos/drivers/filesystems/reiserfs/src/write.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/reiser…
8 years, 9 months
1
0
0
0
[tfaber] 71056: [USER32] - Use the correct, previously calculated width and height in BITMAP_LoadImageW instead of assuming pbmi is an actual BITMAPINFO. Fixes loading bitmaps using BITMAPCOREINFO ...
by tfaber@svn.reactos.org
Author: tfaber Date: Sat Mar 26 15:35:21 2016 New Revision: 71056 URL:
http://svn.reactos.org/svn/reactos?rev=71056&view=rev
Log: [USER32] - Use the correct, previously calculated width and height in BITMAP_LoadImageW instead of assuming pbmi is an actual BITMAPINFO. Fixes loading bitmaps using BITMAPCOREINFO format. Patch by Mark Jansen. CORE-10889 Modified: trunk/reactos/win32ss/user/user32/windows/cursoricon.c Modified: trunk/reactos/win32ss/user/user32/windows/cursoricon.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
============================================================================== --- trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] Sat Mar 26 15:35:21 2016 @@ -1298,7 +1298,7 @@ if(!hbmpOld) goto end; if(!StretchDIBits(hdc, 0, 0, cxDesired, cyDesired, - 0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biHeight, + 0, 0, width, height, pvBits, pbmiCopy, DIB_RGB_COLORS, SRCCOPY)) { ERR("StretchDIBits failed!.\n");
8 years, 9 months
1
0
0
0
[pschweitzer] 71055: [NTFS] Fix a typo. Patch by Trevor Thompson CORE-10998
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sat Mar 26 13:22:32 2016 New Revision: 71055 URL:
http://svn.reactos.org/svn/reactos?rev=71055&view=rev
Log: [NTFS] Fix a typo. Patch by Trevor Thompson CORE-10998 Modified: trunk/reactos/drivers/filesystems/ntfs/misc.c trunk/reactos/drivers/filesystems/ntfs/ntfs.h Modified: trunk/reactos/drivers/filesystems/ntfs/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] Sat Mar 26 13:22:32 2016 @@ -76,7 +76,7 @@ RtlZeroMemory(IrpContext, sizeof(NTFS_IRP_CONTEXT)); - IrpContext->Identifier.Type = NTFS_TYPE_IRP_CONTEST; + IrpContext->Identifier.Type = NTFS_TYPE_IRP_CONTEXT; IrpContext->Identifier.Size = sizeof(NTFS_IRP_CONTEXT); IrpContext->Irp = Irp; IrpContext->DeviceObject = DeviceObject; Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Sat Mar 26 13:22:32 2016 @@ -86,8 +86,8 @@ #define NTFS_TYPE_CCB '20SF' #define NTFS_TYPE_FCB '30SF' -#define NTFS_TYPE_VCB '50SF' -#define NTFS_TYPE_IRP_CONTEST '60SF' +#define NTFS_TYPE_VCB '50SF' +#define NTFS_TYPE_IRP_CONTEXT '60SF' #define NTFS_TYPE_GLOBAL_DATA '70SF' typedef struct
8 years, 9 months
1
0
0
0
[pschweitzer] 71054: [FREELDR] Cherrypick r71053
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sat Mar 26 13:19:09 2016 New Revision: 71054 URL:
http://svn.reactos.org/svn/reactos?rev=71054&view=rev
Log: [FREELDR] Cherrypick r71053 Modified: trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c Modified: trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/lib/f…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/lib/fs/ntfs.c [iso-8859-1] Sat Mar 26 13:19:09 2016 @@ -313,7 +313,7 @@ { CurrentOffset += DataRunLength * Volume->ClusterSize; DataRun = NtfsDecodeRun(DataRun, &DataRunOffset, &DataRunLength); - if (DataRunLength != (ULONGLONG)-1) + if (DataRunOffset != (ULONGLONG)-1) { DataRunStartLCN = LastLCN + DataRunOffset; LastLCN = DataRunStartLCN;
8 years, 9 months
1
0
0
0
[pschweitzer] 71053: [NTFS] Fix a bug in sparse files reading. Spotted and fixed by Aman Priyadarshi
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sat Mar 26 13:15:14 2016 New Revision: 71053 URL:
http://svn.reactos.org/svn/reactos?rev=71053&view=rev
Log: [NTFS] Fix a bug in sparse files reading. Spotted and fixed by Aman Priyadarshi Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c Modified: trunk/reactos/drivers/filesystems/ntfs/mft.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
============================================================================== --- trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/ntfs/mft.c [iso-8859-1] Sat Mar 26 13:15:14 2016 @@ -260,7 +260,7 @@ { CurrentOffset += DataRunLength * Vcb->NtfsInfo.BytesPerCluster; DataRun = DecodeRun(DataRun, &DataRunOffset, &DataRunLength); - if (DataRunLength != (ULONGLONG)-1) + if (DataRunOffset != (ULONGLONG)-1) { DataRunStartLCN = LastLCN + DataRunOffset; LastLCN = DataRunStartLCN;
8 years, 9 months
1
0
0
0
[pschweitzer] 71052: [BTRFS] Upgrade the WinBtrfs to release 0.3. Mostly bugfixes CORE-11024 #resolve #comment Committed in r71052
by pschweitzer@svn.reactos.org
Author: pschweitzer Date: Sat Mar 26 11:53:07 2016 New Revision: 71052 URL:
http://svn.reactos.org/svn/reactos?rev=71052&view=rev
Log: [BTRFS] Upgrade the WinBtrfs to release 0.3. Mostly bugfixes CORE-11024 #resolve #comment Committed in r71052 Added: trunk/reactos/drivers/filesystems/btrfs/btrfsioctl.h (with props) Modified: trunk/reactos/drivers/filesystems/btrfs/btrfs.c trunk/reactos/drivers/filesystems/btrfs/btrfs_drv.h trunk/reactos/drivers/filesystems/btrfs/cache.c trunk/reactos/drivers/filesystems/btrfs/create.c trunk/reactos/drivers/filesystems/btrfs/fastio.c trunk/reactos/drivers/filesystems/btrfs/fileinfo.c trunk/reactos/drivers/filesystems/btrfs/fsctl.c trunk/reactos/drivers/filesystems/btrfs/read.c trunk/reactos/drivers/filesystems/btrfs/treefuncs.c trunk/reactos/drivers/filesystems/btrfs/write.c Modified: trunk/reactos/drivers/filesystems/btrfs/btrfs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/btrfs.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/btrfs.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -1550,8 +1550,8 @@ // FIXME - delete all children if deleting directory if (fcb->deleted) { - ERR("trying to delete already-deleted file\n"); - return STATUS_INTERNAL_ERROR; + WARN("trying to delete already-deleted file\n"); + return STATUS_SUCCESS; } if (!fcb->par) { @@ -1772,7 +1772,7 @@ InitializeListHead(&changed_sector_list); - if (fcb->type != BTRFS_TYPE_DIRECTORY) { + if (fcb->type != BTRFS_TYPE_DIRECTORY && fcb->inode_item.st_size > 0) { Status = excise_extents(fcb->Vcb, fcb, 0, sector_align(fcb->inode_item.st_size, fcb->Vcb->superblock.sector_size), &changed_sector_list, rollback); if (!NT_SUCCESS(Status)) { ERR("excise_extents returned %08x\n", Status); @@ -1879,9 +1879,9 @@ #ifdef DEBUG_FCB_REFCOUNTS // WARN("fcb %p: refcount now %i (%.*S)\n", fcb, rc, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer); #ifdef DEBUG_LONG_MESSAGES - _debug_message(func, file, line, "fcb %p: refcount now %i (%.*S)\n", fcb, rc, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer); + _debug_message(func, 1, file, line, "fcb %p: refcount now %i (%.*S)\n", fcb, rc, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer); #else - _debug_message(func, "fcb %p: refcount now %i (%.*S)\n", fcb, rc, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer); + _debug_message(func, 1, "fcb %p: refcount now %i (%.*S)\n", fcb, rc, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer); #endif #endif @@ -1930,9 +1930,9 @@ ExFreePool(fcb); #ifdef DEBUG_FCB_REFCOUNTS #ifdef DEBUG_LONG_MESSAGES - _debug_message(func, file, line, "freeing fcb %p\n", fcb); + _debug_message(func, 1, file, line, "freeing fcb %p\n", fcb); #else - _debug_message(func, "freeing fcb %p\n", fcb); + _debug_message(func, 1, "freeing fcb %p\n", fcb); #endif #endif } @@ -1964,12 +1964,9 @@ ExFreePool(ccb); } - if (fcb->refcount == 1) - CcUninitializeCacheMap(FileObject, NULL, NULL); + CcUninitializeCacheMap(FileObject, NULL, NULL); free_fcb(fcb); - - FileObject->FsContext = NULL; return STATUS_SUCCESS; } @@ -2072,6 +2069,9 @@ IoRemoveShareAccess(FileObject, &fcb->share_access); oc = InterlockedDecrement(&fcb->open_count); +#ifdef DEBUG_FCB_REFCOUNTS + ERR("fcb %p: open_count now %i\n", fcb, oc); +#endif if (oc == 0) { if (fcb->delete_on_close && fcb != fcb->Vcb->root_fcb && fcb != fcb->Vcb->volume_fcb) { @@ -2115,10 +2115,10 @@ TRACE("flushed cache on close (FileObject = %p, fcb = %p, AllocationSize = %llx, FileSize = %llx, ValidDataLength = %llx)\n", FileObject, fcb, fcb->Header.AllocationSize.QuadPart, fcb->Header.FileSize.QuadPart, fcb->Header.ValidDataLength.QuadPart); } - } - - if (fcb->Vcb && fcb != fcb->Vcb->volume_fcb) - CcUninitializeCacheMap(FileObject, NULL, NULL); + + if (fcb->Vcb && fcb != fcb->Vcb->volume_fcb) + CcUninitializeCacheMap(FileObject, NULL, NULL); + } FileObject->Flags |= FO_CLEANUP_COMPLETE; } @@ -3029,12 +3029,23 @@ for (j = 0; j < ci->num_stripes; j++) { if (cis[j].offset + ci->size > superblock_addrs[i] && cis[j].offset <= superblock_addrs[i] + sizeof(superblock)) { + UINT32 size; + TRACE("cut out superblock in chunk %llx\n", c->offset); addr = (superblock_addrs[i] - cis[j].offset) + c->offset; TRACE("addr %llx\n", addr); - add_to_space_list(c, addr, sizeof(superblock), SPACE_TYPE_USED); + // This prevents trees from spanning a stripe boundary, which btrfs check complains + // about. It also prevents the chunk tree being placed at 0x11000, which for some + // reason makes the FS unmountable on Linux (it tries to read 0x10000, i.e. the + // superblock, instead). + if (ci->type & BLOCK_FLAG_SYSTEM || ci->type & BLOCK_FLAG_METADATA) + size = max(sizeof(superblock), Vcb->superblock.node_size); + else + size = sizeof(superblock); + + add_to_space_list(c, addr, size, SPACE_TYPE_USED); } } Modified: trunk/reactos/drivers/filesystems/btrfs/btrfs_drv.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/btrfs_drv.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/btrfs_drv.h [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -204,6 +204,7 @@ // UINT8 level; tree_header header; LONG refcount; + BOOL has_address; UINT32 size; struct _device_extension* Vcb; struct _tree* parent; @@ -213,6 +214,7 @@ LIST_ENTRY itemlist; LIST_ENTRY list_entry; UINT64 new_address; + BOOL has_new_address; UINT64 flags; } tree; Added: trunk/reactos/drivers/filesystems/btrfs/btrfsioctl.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/btrfsioctl.h (added) +++ trunk/reactos/drivers/filesystems/btrfs/btrfsioctl.h [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -0,0 +1,12 @@ +#ifndef BTRFSIOCTL_H_DEFINED +#define BTRFSIOCTL_H_DEFINED + +#define FSCTL_BTRFS_GET_FILE_IDS CTL_CODE(FILE_DEVICE_UNKNOWN, 0x829, METHOD_OUT_DIRECT, FILE_ANY_ACCESS) + +typedef struct { + UINT64 subvol; + UINT64 inode; + BOOL top; +} btrfs_get_file_ids; + +#endif Propchange: trunk/reactos/drivers/filesystems/btrfs/btrfsioctl.h ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/drivers/filesystems/btrfs/cache.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/cache.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/cache.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -26,7 +26,10 @@ TRACE("(%p, %u)\n", Context, Wait); - if (!fcb || FileObject->Flags & FO_CLEANUP_COMPLETE) +// if (!fcb || FileObject->Flags & FO_CLEANUP_COMPLETE) +// return FALSE; + + if (!ExAcquireResourceSharedLite(fcb->Header.PagingIoResource, Wait)) return FALSE; fcb->lazy_writer_thread = KeGetCurrentThread(); @@ -40,10 +43,12 @@ TRACE("(%p)\n", Context); - if (!fcb || FileObject->Flags & FO_CLEANUP_COMPLETE) - return; +// if (!fcb || FileObject->Flags & FO_CLEANUP_COMPLETE) +// return; fcb->lazy_writer_thread = NULL; + + ExReleaseResourceLite(fcb->Header.PagingIoResource); } static BOOLEAN STDCALL acquire_for_read_ahead(PVOID Context, BOOLEAN Wait) { Modified: trunk/reactos/drivers/filesystems/btrfs/create.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/create.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/create.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -648,6 +648,7 @@ static fcb* search_fcb_children(fcb* dir, PUNICODE_STRING name) { LIST_ENTRY* le; fcb *c, *deleted = NULL; + ULONG rc; le = dir->children.Flink; while (le != &dir->children) { @@ -657,9 +658,9 @@ if (c->deleted) { deleted = c; } else { - c->refcount++; + rc = InterlockedIncrement(&c->refcount); #ifdef DEBUG_FCB_REFCOUNTS - WARN("fcb %p: refcount now %i (%.*S)\n", c, c->refcount, c->full_filename.Length / sizeof(WCHAR), c->full_filename.Buffer); + WARN("fcb %p: refcount now %i (%.*S)\n", c, rc, c->full_filename.Length / sizeof(WCHAR), c->full_filename.Buffer); #endif return c; } @@ -668,20 +669,27 @@ le = le->Flink; } + if (deleted) { + rc = InterlockedIncrement(&deleted->refcount); +#ifdef DEBUG_FCB_REFCOUNTS + WARN("fcb %p: refcount now %i (%.*S)\n", deleted, rc, deleted->full_filename.Length / sizeof(WCHAR), deleted->full_filename.Buffer); +#endif + } + return deleted; } -#ifdef DEBUG_FCB_REFCOUNTS -static void print_fcbs(device_extension* Vcb) { - fcb* fcb = Vcb->fcbs; - - while (fcb) { - ERR("fcb %p (%.*S): refcount %u\n", fcb, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer, fcb->refcount); - - fcb = fcb->next; - } -} -#endif +// #ifdef DEBUG_FCB_REFCOUNTS +// static void print_fcbs(device_extension* Vcb) { +// fcb* fcb = Vcb->fcbs; +// +// while (fcb) { +// ERR("fcb %p (%.*S): refcount %u\n", fcb, fcb->full_filename.Length / sizeof(WCHAR), fcb->full_filename.Buffer, fcb->refcount); +// +// fcb = fcb->next; +// } +// } +// #endif NTSTATUS get_fcb(device_extension* Vcb, fcb** pfcb, PUNICODE_STRING fnus, fcb* relatedfcb, BOOL parent) { fcb *dir, *sf, *sf2; @@ -693,9 +701,9 @@ TRACE("(%p, %p, %.*S, %p, %s)\n", Vcb, pfcb, fnus->Length / sizeof(WCHAR), fnus->Buffer, relatedfcb, parent ? "TRUE" : "FALSE"); -#ifdef DEBUG_FCB_REFCOUNTS - print_fcbs(Vcb); -#endif +// #ifdef DEBUG_FCB_REFCOUNTS +// print_fcbs(Vcb); +// #endif fnus2 = *fnus; @@ -713,10 +721,12 @@ } if (fnus2.Length == sizeof(WCHAR)) { + LONG rc; + *pfcb = Vcb->root_fcb; - Vcb->root_fcb->refcount++; + rc = InterlockedIncrement(&Vcb->root_fcb->refcount); #ifdef DEBUG_FCB_REFCOUNTS - WARN("fcb %p: refcount now %i (root)\n", Vcb->root_fcb, Vcb->root_fcb->refcount); + WARN("fcb %p: refcount now %i (root)\n", Vcb->root_fcb, rc); #endif return STATUS_SUCCESS; } @@ -1028,9 +1038,9 @@ if (parts) ExFreePool(parts); -#ifdef DEBUG_FCB_REFCOUNTS - print_fcbs(Vcb); -#endif +// #ifdef DEBUG_FCB_REFCOUNTS +// print_fcbs(Vcb); +// #endif TRACE("returning %08x\n", Status); @@ -1064,6 +1074,7 @@ PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); ANSI_STRING utf8as; ULONG defda; + LONG rc; Status = RtlUnicodeToUTF8N(NULL, 0, &utf8len, fpus->Buffer, fpus->Length); if (!NT_SUCCESS(Status)) @@ -1281,9 +1292,9 @@ fcb->delete_on_close = TRUE; fcb->par = parfcb; - parfcb->refcount++; + rc = InterlockedIncrement(&parfcb->refcount); #ifdef DEBUG_FCB_REFCOUNTS - WARN("fcb %p: refcount now %i (%.*S)\n", parfcb, parfcb->refcount, parfcb->full_filename.Length / sizeof(WCHAR), parfcb->full_filename.Buffer); + WARN("fcb %p: refcount now %i (%.*S)\n", parfcb, rc, parfcb->full_filename.Length / sizeof(WCHAR), parfcb->full_filename.Buffer); #endif fcb->subvol = parfcb->subvol; fcb->inode = inode; @@ -1355,6 +1366,7 @@ ccb* ccb; static WCHAR datasuf[] = {':','$','D','A','T','A',0}; UNICODE_STRING dsus, fpus, stream; + LONG oc; TRACE("(%p, %p, %p, %.*S, %x, %x)\n", Irp, Vcb, FileObject, fnus->Length / sizeof(WCHAR), fnus->Buffer, disposition, options); @@ -1444,6 +1456,7 @@ KEY searchkey; traverse_ptr tp; INODE_ITEM* ii; + LONG rc; TRACE("fpus = %.*S\n", fpus.Length / sizeof(WCHAR), fpus.Buffer); TRACE("stream = %.*S\n", stream.Length / sizeof(WCHAR), stream.Buffer); @@ -1497,9 +1510,9 @@ fcb->delete_on_close = TRUE; fcb->par = parfcb; - parfcb->refcount++; + rc = InterlockedIncrement(&parfcb->refcount); #ifdef DEBUG_FCB_REFCOUNTS - WARN("fcb %p: refcount now %i (%.*S)\n", parfcb, parfcb->refcount, parfcb->full_filename.Length / sizeof(WCHAR), parfcb->full_filename.Buffer); + WARN("fcb %p: refcount now %i (%.*S)\n", parfcb, rc, parfcb->full_filename.Length / sizeof(WCHAR), parfcb->full_filename.Buffer); #endif fcb->subvol = parfcb->subvol; fcb->inode = parfcb->inode; @@ -1658,7 +1671,10 @@ ccb->has_wildcard = FALSE; ccb->specific_file = FALSE; - InterlockedIncrement(&fcb->open_count); + oc = InterlockedIncrement(&fcb->open_count); +#ifdef DEBUG_FCB_REFCOUNTS + ERR("fcb %p: open_count now %i\n", fcb, oc); +#endif FileObject->FsContext2 = ccb; @@ -1884,6 +1900,7 @@ PIO_STACK_LOCATION Stack = IoGetCurrentIrpStackLocation(Irp); ULONG access; PACCESS_STATE access_state = Stack->Parameters.Create.SecurityContext->AccessState; + LONG oc; Irp->IoStatus.Information = 0; @@ -1948,6 +1965,7 @@ if (NT_SUCCESS(Status) && fcb->deleted) { free_fcb(fcb); Status = STATUS_OBJECT_NAME_NOT_FOUND; + goto exit; } if (NT_SUCCESS(Status)) { @@ -2217,7 +2235,10 @@ } } - InterlockedIncrement(&fcb->open_count); + oc = InterlockedIncrement(&fcb->open_count); +#ifdef DEBUG_FCB_REFCOUNTS + ERR("fcb %p: open_count now %i\n", fcb, oc); +#endif } else { Status = file_create(Irp, DeviceObject->DeviceExtension, FileObject, &FileObject->FileName, RequestedDisposition, options, rollback); Irp->IoStatus.Information = NT_SUCCESS(Status) ? FILE_CREATED : 0; @@ -2316,6 +2337,7 @@ if (IrpSp->FileObject->FileName.Length == 0 && !IrpSp->FileObject->RelatedFileObject) { ULONG RequestedDisposition = ((IrpSp->Parameters.Create.Options >> 24) & 0xff); ULONG RequestedOptions = IrpSp->Parameters.Create.Options & FILE_VALID_OPTION_FLAGS; + LONG rc, oc; TRACE("open operation for volume\n"); @@ -2332,14 +2354,18 @@ goto exit; } - Vcb->volume_fcb->refcount++; + rc = InterlockedIncrement(&Vcb->volume_fcb->refcount); + oc = InterlockedIncrement(&Vcb->volume_fcb->open_count); #ifdef DEBUG_FCB_REFCOUNTS - WARN("fcb %p: refcount now %i (volume)\n", Vcb->volume_fcb, Vcb->volume_fcb->refcount); + WARN("fcb %p: refcount now %i (volume)\n", Vcb->volume_fcb, rc); + WARN("fcb %p: open_count now %i (volume)\n", Vcb->volume_fcb, oc); #endif attach_fcb_to_fileobject(Vcb, Vcb->volume_fcb, IrpSp->FileObject); // // NtfsAttachFCBToFileObject(DeviceExt, DeviceExt->VolumeFcb, FileObject); // // DeviceExt->VolumeFcb->RefCount++; -// + + IrpSp->FileObject->SectionObjectPointer = &Vcb->volume_fcb->nonpaged->segment_object; + Irp->IoStatus.Information = FILE_OPENED; Status = STATUS_SUCCESS; } else { Modified: trunk/reactos/drivers/filesystems/btrfs/fastio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/fastio.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/fastio.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -137,13 +137,51 @@ static NTSTATUS STDCALL fast_io_acquire_for_ccflush(PFILE_OBJECT FileObject, PDEVICE_OBJECT DeviceObject){ TRACE("STUB: fast_io_acquire_for_ccflush\n"); - return STATUS_NOT_IMPLEMENTED; + return STATUS_SUCCESS; } static NTSTATUS STDCALL fast_io_release_for_ccflush(PFILE_OBJECT FileObject, PDEVICE_OBJECT DeviceObject){ TRACE("STUB: fast_io_release_for_ccflush\n"); - return STATUS_NOT_IMPLEMENTED; -} + return STATUS_SUCCESS; +} + +#ifdef DEBUG +static BOOLEAN STDCALL fast_io_read(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, BOOLEAN Wait, ULONG LockKey, PVOID Buffer, PIO_STATUS_BLOCK IoStatus, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %x, %x, %x, %p, %p, %p)\n", FileObject, FileOffset, Length, Wait, LockKey, Buffer, IoStatus, DeviceObject); + + return FsRtlCopyRead(FileObject, FileOffset, Length, Wait, LockKey, Buffer, IoStatus, DeviceObject); +} + +static BOOLEAN STDCALL fast_io_write(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, BOOLEAN Wait, ULONG LockKey, PVOID Buffer, PIO_STATUS_BLOCK IoStatus, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %x, %x, %x, %p, %p, %p)\n", FileObject, FileOffset, Length, Wait, LockKey, Buffer, IoStatus, DeviceObject); + + return FsRtlCopyWrite(FileObject, FileOffset, Length, Wait, LockKey, Buffer, IoStatus, DeviceObject); +} + +static BOOLEAN STDCALL fast_io_mdl_read(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, ULONG LockKey, PMDL* MdlChain, PIO_STATUS_BLOCK IoStatus, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %x, %x, %p, %p, %p)\n", FileObject, FileOffset, Length, LockKey, MdlChain, IoStatus, DeviceObject); + + return FsRtlMdlReadDev(FileObject, FileOffset, Length, LockKey, MdlChain, IoStatus, DeviceObject); +} + +static BOOLEAN STDCALL fast_io_mdl_read_complete(PFILE_OBJECT FileObject, PMDL* MdlChain, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %p)\n", FileObject, MdlChain, DeviceObject); + + return FsRtlMdlReadCompleteDev(FileObject, MdlChain, DeviceObject); +} + +static BOOLEAN STDCALL fast_io_prepare_mdl_write(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, ULONG LockKey, PMDL* MdlChain, PIO_STATUS_BLOCK IoStatus, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %x, %x, %p, %p, %p)\n", FileObject, FileOffset, Length, LockKey, MdlChain, IoStatus, DeviceObject); + + return FsRtlPrepareMdlWriteDev(FileObject, FileOffset, Length, LockKey, MdlChain, IoStatus, DeviceObject); +} + +static BOOLEAN STDCALL fast_io_mdl_write_complete(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, PMDL* MdlChain, PDEVICE_OBJECT DeviceObject) { + TRACE("(%p, %p, %p, %p)\n", FileObject, FileOffset, MdlChain, DeviceObject); + + return FsRtlMdlWriteCompleteDev(FileObject, FileOffset, MdlChain, DeviceObject); +} +#endif void __stdcall init_fast_io_dispatch(FAST_IO_DISPATCH** fiod) { RtlZeroMemory(&FastIoDispatch, sizeof(FastIoDispatch)); @@ -151,8 +189,6 @@ FastIoDispatch.SizeOfFastIoDispatch = sizeof(FAST_IO_DISPATCH); FastIoDispatch.FastIoCheckIfPossible = fast_io_check_if_possible; - FastIoDispatch.FastIoRead = FsRtlCopyRead; - FastIoDispatch.FastIoWrite = FsRtlCopyWrite; FastIoDispatch.FastIoQueryBasicInfo = fast_query_basic_info; FastIoDispatch.FastIoQueryStandardInfo = fast_query_standard_info; FastIoDispatch.FastIoLock = fast_io_lock; @@ -165,10 +201,6 @@ FastIoDispatch.FastIoDetachDevice = fast_io_detach_device; FastIoDispatch.FastIoQueryNetworkOpenInfo = fast_io_query_network_open_info; FastIoDispatch.AcquireForModWrite = fast_io_acquire_for_mod_write; - FastIoDispatch.MdlRead = FsRtlMdlReadDev; - FastIoDispatch.MdlReadComplete = FsRtlMdlReadCompleteDev; - FastIoDispatch.PrepareMdlWrite = FsRtlPrepareMdlWriteDev; - FastIoDispatch.MdlWriteComplete = FsRtlMdlWriteCompleteDev; FastIoDispatch.FastIoReadCompressed = fast_io_read_compressed; FastIoDispatch.FastIoWriteCompressed = fast_io_write_compressed; FastIoDispatch.MdlReadCompleteCompressed = fast_io_mdl_read_complete_compressed; @@ -178,5 +210,21 @@ FastIoDispatch.AcquireForCcFlush = fast_io_acquire_for_ccflush; FastIoDispatch.ReleaseForCcFlush = fast_io_release_for_ccflush; +#ifdef DEBUG + FastIoDispatch.FastIoRead = fast_io_read; + FastIoDispatch.FastIoWrite = fast_io_write; + FastIoDispatch.MdlRead = fast_io_mdl_read; + FastIoDispatch.MdlReadComplete = fast_io_mdl_read_complete; + FastIoDispatch.PrepareMdlWrite = fast_io_prepare_mdl_write; + FastIoDispatch.MdlWriteComplete = fast_io_mdl_write_complete; +#else + FastIoDispatch.FastIoRead = FsRtlCopyRead; + FastIoDispatch.FastIoWrite = FsRtlCopyWrite; + FastIoDispatch.MdlRead = FsRtlMdlReadDev; + FastIoDispatch.MdlReadComplete = FsRtlMdlReadCompleteDev; + FastIoDispatch.PrepareMdlWrite = FsRtlPrepareMdlWriteDev; + FastIoDispatch.MdlWriteComplete = FsRtlMdlWriteCompleteDev; +#endif + *fiod = &FastIoDispatch; -} +} Modified: trunk/reactos/drivers/filesystems/btrfs/fileinfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/fileinfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/fileinfo.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -2194,7 +2194,7 @@ break; case FileRemoteProtocolInformation: - FIXME("STUB: FileRemoteProtocolInformation\n"); + TRACE("FileRemoteProtocolInformation\n"); break; #endif @@ -2884,7 +2884,7 @@ } case FileRemoteProtocolInformation: - FIXME("STUB: FileRemoteProtocolInformation\n"); + TRACE("FileRemoteProtocolInformation\n"); Status = STATUS_INVALID_PARAMETER; goto exit; #endif Modified: trunk/reactos/drivers/filesystems/btrfs/fsctl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/fsctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/fsctl.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -16,11 +16,36 @@ * along with WinBtrfs. If not, see <
http://www.gnu.org/licenses/
>. */ #include "btrfs_drv.h" +#include "btrfsioctl.h" #ifndef FSCTL_CSV_CONTROL #define FSCTL_CSV_CONTROL CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 181, METHOD_BUFFERED, FILE_ANY_ACCESS) #endif +static NTSTATUS get_file_ids(PFILE_OBJECT FileObject, void* data, ULONG length) { + btrfs_get_file_ids* bgfi; + fcb* fcb; + + if (length < sizeof(btrfs_get_file_ids)) + return STATUS_BUFFER_OVERFLOW; + + if (!FileObject) + return STATUS_INVALID_PARAMETER; + + fcb = FileObject->FsContext; + + if (!fcb) + return STATUS_INVALID_PARAMETER; + + bgfi = data; + + bgfi->subvol = fcb->subvol->id; + bgfi->inode = fcb->inode; + bgfi->top = fcb->Vcb->root_fcb == fcb ? TRUE : FALSE; + + return STATUS_SUCCESS; +} + NTSTATUS fsctl_request(PDEVICE_OBJECT DeviceObject, PIRP Irp, UINT32 type, BOOL user) { PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp); NTSTATUS Status; @@ -496,6 +521,9 @@ Status = STATUS_NOT_IMPLEMENTED; break; #endif + case FSCTL_BTRFS_GET_FILE_IDS: + Status = get_file_ids(IrpSp->FileObject, map_user_buffer(Irp), IrpSp->Parameters.DeviceIoControl.OutputBufferLength); + break; default: WARN("unknown control code %x (DeviceType = %x, Access = %x, Function = %x, Method = %x)\n", Modified: trunk/reactos/drivers/filesystems/btrfs/read.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/read.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/read.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -368,6 +368,9 @@ // } do { + UINT64 len; + EXTENT_DATA2* ed2; + ed = (EXTENT_DATA*)tp.item->data; if (tp.item->size < sizeof(EXTENT_DATA)) { @@ -384,7 +387,11 @@ goto exit; } - if (tp.item->key.offset + ed->decoded_size < start) { + ed2 = (EXTENT_DATA2*)ed->data; + + len = ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes; + + if (tp.item->key.offset + len < start) { ERR("Tried to read beyond end of file\n"); free_traverse_ptr(&tp); Status = STATUS_END_OF_FILE; @@ -416,9 +423,8 @@ case EXTENT_TYPE_INLINE: { UINT64 off = start + bytes_read - tp.item->key.offset; - UINT64 read; - - read = ed->decoded_size - off; + UINT64 read = len - off; + if (read > length) read = length; RtlCopyMemory(data + bytes_read, &ed->data[off], read); @@ -430,12 +436,11 @@ case EXTENT_TYPE_REGULAR: { - EXTENT_DATA2* ed2 = (EXTENT_DATA2*)ed->data; UINT64 off = start + bytes_read - tp.item->key.offset; UINT32 to_read, read; UINT8* buf; - read = ed->decoded_size - off; + read = len - off; if (read > length) read = length; if (ed2->address == 0) { @@ -476,9 +481,8 @@ case EXTENT_TYPE_PREALLOC: { UINT64 off = start + bytes_read - tp.item->key.offset; - UINT32 read; - - read = ed->decoded_size - off; + UINT32 read = len - off; + if (read > length) read = length; RtlZeroMemory(data + bytes_read, read); @@ -503,7 +507,7 @@ break; else if (next_tp.item->key.obj_id != inode || next_tp.item->key.obj_type != TYPE_EXTENT_DATA || - next_tp.item->key.offset != tp.item->key.offset + ed->decoded_size + next_tp.item->key.offset != tp.item->key.offset + len ) { free_traverse_ptr(&next_tp); break; Modified: trunk/reactos/drivers/filesystems/btrfs/treefuncs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/treefuncs.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/treefuncs.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -386,6 +386,7 @@ // t->address = addr; // t->level = th->level; t->refcount = 1; + t->has_address = TRUE; t->Vcb = Vcb; t->parent = NULL; t->root = r; @@ -393,6 +394,7 @@ t->paritem = NULL; t->size = 0; t->new_address = 0; + t->has_new_address = FALSE; #ifdef DEBUG_TREE_REFCOUNTS #ifdef DEBUG_LONG_MESSAGES _debug_message(func, file, line, "loaded tree %p (%llx)\n", t, addr); @@ -698,11 +700,20 @@ } if (t->header.level == 0 && cmp == 0 && !ignore && td && td->ignore) { + tree_data* origtd = td; + while (td && td->ignore) td = next_item(t, td); - if (td) + if (td) { cmp = keycmp(searchkey, &td->key); + + if (cmp != 0) { + td = origtd; + cmp = 0; + } + } else + td = origtd; } } while (td && cmp == 1); Modified: trunk/reactos/drivers/filesystems/btrfs/write.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/btrfs/…
============================================================================== --- trunk/reactos/drivers/filesystems/btrfs/write.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/btrfs/write.c [iso-8859-1] Sat Mar 26 11:53:07 2016 @@ -1093,13 +1093,13 @@ tree_cache* tc2 = CONTAINING_RECORD(le, tree_cache, list_entry); if (tc2->write) { - if (tc2->tree->header.num_items == 0) + if (tc2->tree->header.num_items == 0 && tc2->tree->parent) return FALSE; if (tc2->tree->size > maxsize) return FALSE; - if (tc2->tree->new_address == 0) + if (!tc2->tree->has_new_address) return FALSE; } @@ -1263,6 +1263,7 @@ free_traverse_ptr(&insert_tp); t->new_address = address; + t->has_new_address = TRUE; return TRUE; } @@ -1272,7 +1273,7 @@ EXTENT_ITEM_TREE2* eit2; traverse_ptr insert_tp; - TRACE("(%p, %p, %p, %p)\n", Vcb, t, c); + TRACE("(%p, %p, %p, %p)\n", Vcb, t, c, rollback); if (!find_address_in_chunk(Vcb, c, Vcb->superblock.node_size, &address)) return FALSE; @@ -1316,6 +1317,7 @@ free_traverse_ptr(&insert_tp); t->new_address = address; + t->has_new_address = TRUE; return TRUE; } @@ -1341,7 +1343,7 @@ // } // } - if (t->header.address != 0) { + if (t->has_address) { origchunk = get_chunk_from_address(Vcb, t->header.address); if (insert_tree_extent(Vcb, t, origchunk, rollback)) @@ -1384,7 +1386,7 @@ searchkey.obj_id = address; searchkey.obj_type = TYPE_METADATA_ITEM; - searchkey.offset = t->header.level; + searchkey.offset = 0xffffffffffffffff; Status = find_item(Vcb, Vcb->extent_root, &tp, &searchkey, FALSE); if (!NT_SUCCESS(Status)) { @@ -1392,7 +1394,7 @@ return FALSE; } - if (keycmp(&tp.item->key, &searchkey)) { + if (tp.item->key.obj_id != searchkey.obj_id || tp.item->key.obj_type != searchkey.obj_type) { TRACE("could not find %llx,%x,%llx in extent_root\n", searchkey.obj_id, searchkey.obj_type, searchkey.offset); free_traverse_ptr(&tp); return FALSE; @@ -1765,7 +1767,7 @@ while (le != &Vcb->tree_cache) { tree_cache* tc2 = CONTAINING_RECORD(le, tree_cache, list_entry); - if (tc2->write && tc2->tree->new_address == 0) { + if (tc2->write && !tc2->tree->has_new_address) { chunk* c; Status = get_tree_new_address(Vcb, tc2->tree, rollback); @@ -1776,7 +1778,7 @@ TRACE("allocated extent %llx\n", tc2->tree->new_address); - if (tc2->tree->header.address != 0) { + if (tc2->tree->has_address) { Status = reduce_tree_extent(Vcb, tc2->tree->header.address, tc2->tree, rollback); if (!NT_SUCCESS(Status)) { @@ -2088,7 +2090,7 @@ traverse_ptr tp; EXTENT_ITEM_TREE* eit; - if (tc2->tree->new_address == 0) { + if (!tc2->tree->has_new_address) { ERR("error - tried to write tree with no new address\n"); int3; } @@ -2226,13 +2228,8 @@ crash = TRUE; } - if (tc2->tree->new_address == 0) { - ERR("tree %llx, level %x: tried to write tree to address 0\n", tc2->tree->root->id, tc2->tree->header.level); - crash = TRUE; - } - - if (tc2->tree->header.num_items == 0) { - ERR("tree %llx, level %x: tried to write empty tree\n", tc2->tree->root->id, tc2->tree->header.level); + if (tc2->tree->header.num_items == 0 && tc2->tree->parent) { + ERR("tree %llx, level %x: tried to write empty tree with parent\n", tc2->tree->root->id, tc2->tree->header.level); crash = TRUE; } @@ -2257,6 +2254,7 @@ tc2->tree->header.address = tc2->tree->new_address; tc2->tree->header.generation = Vcb->superblock.generation; tc2->tree->header.flags |= HEADER_FLAG_MIXED_BACKREF; + tc2->tree->has_address = TRUE; data = ExAllocatePoolWithTag(NonPagedPool, Vcb->superblock.node_size, ALLOC_TAG); if (!data) { @@ -2564,11 +2562,13 @@ nt->header.flags = HEADER_FLAG_MIXED_BACKREF; nt->refcount = 0; + nt->has_address = FALSE; nt->Vcb = Vcb; nt->parent = t->parent; nt->root = t->root; // nt->nonpaged = ExAllocatePoolWithTag(NonPagedPool, sizeof(tree_nonpaged), ALLOC_TAG); nt->new_address = 0; + nt->has_new_address = FALSE; nt->flags = t->flags; InitializeListHead(&nt->itemlist); @@ -2637,6 +2637,22 @@ // // TRACE("last item is now (%x,%x,%x)\n", (UINT32)oldlastitem->key.obj_id, oldlastitem->key.obj_type, (UINT32)oldlastitem->key.offset); + if (nt->header.level > 0) { + LIST_ENTRY* le = nt->itemlist.Flink; + + while (le != &nt->itemlist) { + tree_data* td2 = CONTAINING_RECORD(le, tree_data, list_entry); + + if (td2->treeholder.tree) { + td2->treeholder.tree->parent = nt; + increase_tree_rc(nt); + free_tree(t); + } + + le = le->Flink; + } + } + if (nt->parent) { increase_tree_rc(nt->parent); @@ -2648,7 +2664,7 @@ td->key = newfirstitem->key; - InsertAfter(&t->itemlist, &td->list_entry, &t->paritem->list_entry); + InsertHeadList(&t->paritem->list_entry, &td->list_entry); td->ignore = FALSE; td->inserted = TRUE; @@ -2683,11 +2699,13 @@ pt->header.flags = HEADER_FLAG_MIXED_BACKREF; pt->refcount = 2; + pt->has_address = FALSE; pt->Vcb = Vcb; pt->parent = NULL; pt->paritem = NULL; pt->root = t->root; pt->new_address = 0; + pt->has_new_address = FALSE; // pt->nonpaged = ExAllocatePoolWithTag(NonPagedPool, sizeof(tree_nonpaged), ALLOC_TAG); pt->size = pt->header.num_items * sizeof(internal_node); pt->flags = t->flags; @@ -2743,6 +2761,7 @@ nt->parent = pt; end: + t->root->root_item.bytes_used += Vcb->superblock.node_size; // #ifdef DEBUG_PARANOID // lastkey2.obj_id = 0xffffffffffffffff; @@ -2857,6 +2876,22 @@ t->header.num_items += next_tree->header.num_items; t->size += next_tree->size; + if (next_tree->header.level > 0) { + le = next_tree->itemlist.Flink; + + while (le != &next_tree->itemlist) { + tree_data* td2 = CONTAINING_RECORD(le, tree_data, list_entry); + + if (td2->treeholder.tree) { + td2->treeholder.tree->parent = t; + increase_tree_rc(t); + free_tree(next_tree); + } + + le = le->Flink; + } + } + t->itemlist.Blink->Flink = next_tree->itemlist.Flink; t->itemlist.Blink->Flink->Blink = t->itemlist.Blink; t->itemlist.Blink = next_tree->itemlist.Blink; @@ -2877,7 +2912,7 @@ next_tree->header.num_items = 0; next_tree->size = 0; - if (next_tree->new_address != 0) { // delete associated EXTENT_ITEM + if (next_tree->has_new_address) { // delete associated EXTENT_ITEM Status = reduce_tree_extent(Vcb, next_tree->new_address, next_tree, rollback); if (!NT_SUCCESS(Status)) { @@ -2885,7 +2920,7 @@ free_tree(next_tree); return Status; } - } else if (next_tree->header.address != 0) { + } else if (next_tree->has_address) { Status = reduce_tree_extent(Vcb, next_tree->header.address, next_tree, rollback); if (!NT_SUCCESS(Status)) { @@ -2910,6 +2945,8 @@ RemoveEntryList(&nextparitem->list_entry); ExFreePool(next_tree->paritem); next_tree->paritem = NULL; + + next_tree->root->root_item.bytes_used -= Vcb->superblock.node_size; free_tree(next_tree); @@ -2950,6 +2987,12 @@ if (t->size + size < Vcb->superblock.node_size - sizeof(tree_header)) { RemoveEntryList(&td->list_entry); InsertTailList(&t->itemlist, &td->list_entry); + + if (next_tree->header.level > 0 && td->treeholder.tree) { + td->treeholder.tree->parent = t; + increase_tree_rc(t); + free_tree(next_tree); + } if (!td->ignore) { next_tree->size -= size; @@ -2991,6 +3034,106 @@ } return STATUS_SUCCESS; +} + +static NTSTATUS update_extent_level(device_extension* Vcb, UINT64 address, tree* t, UINT8 level, LIST_ENTRY* rollback) { + KEY searchkey; + traverse_ptr tp; + NTSTATUS Status; + + if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA) { + searchkey.obj_id = address; + searchkey.obj_type = TYPE_METADATA_ITEM; + searchkey.offset = t->header.level; + + Status = find_item(Vcb, Vcb->extent_root, &tp, &searchkey, FALSE); + if (!NT_SUCCESS(Status)) { + ERR("error - find_item returned %08x\n", Status); + return Status; + } + + if (!keycmp(&tp.item->key, &searchkey)) { + EXTENT_ITEM_SKINNY_METADATA* eism; + + if (tp.item->size > 0) { + eism = ExAllocatePoolWithTag(PagedPool, tp.item->size, ALLOC_TAG); + + if (!eism) { + ERR("out of memory\n"); + free_traverse_ptr(&tp); + return STATUS_INSUFFICIENT_RESOURCES; + } + + RtlCopyMemory(eism, tp.item->data, tp.item->size); + } else + eism = NULL; + + delete_tree_item(Vcb, &tp, rollback); + + if (!insert_tree_item(Vcb, Vcb->extent_root, address, TYPE_METADATA_ITEM, level, eism, tp.item->size, NULL, rollback)) { + ERR("insert_tree_item failed\n"); + ExFreePool(eism); + free_traverse_ptr(&tp); + return STATUS_INTERNAL_ERROR; + } + + free_traverse_ptr(&tp); + return STATUS_SUCCESS; + } + + free_traverse_ptr(&tp); + } + + searchkey.obj_id = address; + searchkey.obj_type = TYPE_EXTENT_ITEM; + searchkey.offset = 0xffffffffffffffff; + + Status = find_item(Vcb, Vcb->extent_root, &tp, &searchkey, FALSE); + if (!NT_SUCCESS(Status)) { + ERR("error - find_item returned %08x\n", Status); + return Status; + } + + if (tp.item->key.obj_id == searchkey.obj_id && tp.item->key.obj_type == searchkey.obj_type) { + EXTENT_ITEM_TREE* eit; + + if (tp.item->size < sizeof(EXTENT_ITEM_TREE)) { + ERR("(%llx,%x,%llx) was %u bytes, expected at least %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_ITEM_TREE)); + free_traverse_ptr(&tp); + return STATUS_INTERNAL_ERROR; + } + + eit = ExAllocatePoolWithTag(PagedPool, tp.item->size, ALLOC_TAG); + + if (!eit) { + ERR("out of memory\n"); + free_traverse_ptr(&tp); + return STATUS_INSUFFICIENT_RESOURCES; + } + + RtlCopyMemory(eit, tp.item->data, tp.item->size); + + delete_tree_item(Vcb, &tp, rollback); + + eit->level = level; + + if (!insert_tree_item(Vcb, Vcb->extent_root, tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, eit, tp.item->size, NULL, rollback)) { + ERR("insert_tree_item failed\n"); + ExFreePool(eit); + free_traverse_ptr(&tp); + return STATUS_INTERNAL_ERROR; + } + + free_traverse_ptr(&tp); + + return STATUS_SUCCESS; + } + + ERR("could not find EXTENT_ITEM for address %llx\n", address); + + free_traverse_ptr(&tp); + + return STATUS_INTERNAL_ERROR; } static NTSTATUS STDCALL do_splits(device_extension* Vcb, LIST_ENTRY* rollback) { @@ -3025,38 +3168,39 @@ empty = FALSE; if (tc2->tree->header.num_items == 0) { - LIST_ENTRY* le2; - KEY firstitem = {0xcccccccccccccccc,0xcc,0xcccccccccccccccc}; - - done_deletions = TRUE; - - le2 = tc2->tree->itemlist.Flink; - while (le2 != &tc2->tree->itemlist) { - tree_data* td = CONTAINING_RECORD(le2, tree_data, list_entry); - firstitem = td->key; - break; - } - - ERR("deleting tree in root %llx (first item was %llx,%x,%llx)\n", - tc2->tree->root->id, firstitem.obj_id, firstitem.obj_type, firstitem.offset); - - if (tc2->tree->new_address != 0) { // delete associated EXTENT_ITEM - Status = reduce_tree_extent(Vcb, tc2->tree->new_address, tc2->tree, rollback); + if (tc2->tree->parent) { + LIST_ENTRY* le2; + KEY firstitem = {0xcccccccccccccccc,0xcc,0xcccccccccccccccc}; - if (!NT_SUCCESS(Status)) { - ERR("reduce_tree_extent returned %08x\n", Status); - return Status; + done_deletions = TRUE; + + le2 = tc2->tree->itemlist.Flink; + while (le2 != &tc2->tree->itemlist) { + tree_data* td = CONTAINING_RECORD(le2, tree_data, list_entry); + firstitem = td->key; + break; } - } else if (tc2->tree->header.address != 0) { - Status = reduce_tree_extent(Vcb,tc2->tree->header.address, tc2->tree, rollback); + TRACE("deleting tree in root %llx (first item was %llx,%x,%llx)\n", + tc2->tree->root->id, firstitem.obj_id, firstitem.obj_type, firstitem.offset); - if (!NT_SUCCESS(Status)) { - ERR("reduce_tree_extent returned %08x\n", Status); - return Status; + tc2->tree->root->root_item.bytes_used -= Vcb->superblock.node_size; + + if (tc2->tree->has_new_address) { // delete associated EXTENT_ITEM + Status = reduce_tree_extent(Vcb, tc2->tree->new_address, tc2->tree, rollback); + + if (!NT_SUCCESS(Status)) { + ERR("reduce_tree_extent returned %08x\n", Status); + return Status; + } + } else if (tc2->tree->has_address) { + Status = reduce_tree_extent(Vcb,tc2->tree->header.address, tc2->tree, rollback); + + if (!NT_SUCCESS(Status)) { + ERR("reduce_tree_extent returned %08x\n", Status); + return Status; + } } - } - - if (tc2->tree->parent) { + if (!tc2->tree->paritem->ignore) { tc2->tree->paritem->ignore = TRUE; tc2->tree->parent->header.num_items--; @@ -3071,19 +3215,25 @@ RemoveEntryList(le); ExFreePool(tc2); - } else { - FIXME("trying to delete top root, not sure what to do here\n"); // FIXME - return STATUS_INTERNAL_ERROR; + } else if (tc2->tree->header.level != 0) { + if (tc2->tree->has_new_address) { + Status = update_extent_level(Vcb, tc2->tree->new_address, tc2->tree, 0, rollback); + + if (!NT_SUCCESS(Status)) { + ERR("update_extent_level returned %08x\n", Status); + return Status; + } + } + + tc2->tree->header.level = 0; } - } else { - if (tc2->tree->size > Vcb->superblock.node_size - sizeof(tree_header)) { - TRACE("splitting overlarge tree (%x > %x)\n", tc2->tree->size, Vcb->superblock.node_size - sizeof(tree_header)); - Status = split_tree(Vcb, tc2->tree); - - if (!NT_SUCCESS(Status)) { - ERR("split_tree returned %08x\n", Status); - return Status; - } + } else if (tc2->tree->size > Vcb->superblock.node_size - sizeof(tree_header)) { + TRACE("splitting overlarge tree (%x > %x)\n", tc2->tree->size, Vcb->superblock.node_size - sizeof(tree_header)); + Status = split_tree(Vcb, tc2->tree); + + if (!NT_SUCCESS(Status)) { + ERR("split_tree returned %08x\n", Status); + return Status; } } } @@ -3145,16 +3295,16 @@ le2 = le2->Flink; } - ERR("deleting top-level tree in root %llx with one item\n", tc2->tree->root->id); + TRACE("deleting top-level tree in root %llx with one item\n", tc2->tree->root->id); - if (tc2->tree->new_address != 0) { // delete associated EXTENT_ITEM + if (tc2->tree->has_new_address) { // delete associated EXTENT_ITEM Status = reduce_tree_extent(Vcb, tc2->tree->new_address, tc2->tree, rollback); if (!NT_SUCCESS(Status)) { ERR("reduce_tree_extent returned %08x\n", Status); return Status; } - } else if (tc2->tree->header.address != 0) { + } else if (tc2->tree->has_address) { Status = reduce_tree_extent(Vcb,tc2->tree->header.address, tc2->tree, rollback); if (!NT_SUCCESS(Status)) { @@ -3180,8 +3330,11 @@ if (child_tree) { child_tree->parent = NULL; + child_tree->paritem = NULL; free_tree(tc2->tree); } + + tc2->tree->root->root_item.bytes_used -= Vcb->superblock.node_size; free_tree(tc2->tree); @@ -3208,7 +3361,7 @@ TRACE("(%p)\n", Vcb); // If only changing superblock, e.g. changing label, we still need to rewrite - // the root tree so the generations mach. Otherwise you won't be able to mount on Linux. + // the root tree so the generations match, otherwise you won't be able to mount on Linux. if (Vcb->write_trees > 0) { KEY searchkey; traverse_ptr tp; @@ -4236,6 +4389,8 @@ do { EXTENT_DATA* ed = (EXTENT_DATA*)tp.item->data; + EXTENT_DATA2* ed2 = (EXTENT_DATA2*)ed->data; + UINT64 len; if (tp.item->size < sizeof(EXTENT_DATA)) { ERR("(%llx,%x,%llx) was %u bytes, expected at least %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_DATA)); @@ -4251,7 +4406,9 @@ b = find_next_item(Vcb, &tp, &next_tp, FALSE); - if (tp.item->key.offset < end_data && tp.item->key.offset + ed->decoded_size >= start_data) { + len = ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes; + + if (tp.item->key.offset < end_data && tp.item->key.offset + len >= start_data) { if (ed->compression != BTRFS_COMPRESSION_NONE) { FIXME("FIXME - compression not supported at present\n"); Status = STATUS_NOT_SUPPORTED; @@ -4270,20 +4427,18 @@ goto end; } - // FIXME - is ed->decoded_size the size of the whole extent, or just this bit of it? - if (ed->type == EXTENT_TYPE_INLINE) { - if (start_data <= tp.item->key.offset && end_data >= tp.item->key.offset + ed->decoded_size) { // remove all + if (start_data <= tp.item->key.offset && end_data >= tp.item->key.offset + len) { // remove all delete_tree_item(Vcb, &tp, rollback); - fcb->inode_item.st_blocks -= ed->decoded_size; - } else if (start_data <= tp.item->key.offset && end_data < tp.item->key.offset + ed->decoded_size) { // remove beginning + fcb->inode_item.st_blocks -= len; + } else if (start_data <= tp.item->key.offset && end_data < tp.item->key.offset + len) { // remove beginning EXTENT_DATA* ned; UINT64 size; delete_tree_item(Vcb, &tp, rollback); - size = ed->decoded_size - (end_data - tp.item->key.offset); + size = len - (end_data - tp.item->key.offset); ned = ExAllocatePoolWithTag(PagedPool, sizeof(EXTENT_DATA) - 1 + size, ALLOC_TAG); if (!ned) { @@ -4309,7 +4464,7 @@ } fcb->inode_item.st_blocks -= end_data - tp.item->key.offset; - } else if (start_data > tp.item->key.offset && end_data >= tp.item->key.offset + ed->decoded_size) { // remove end + } else if (start_data > tp.item->key.offset && end_data >= tp.item->key.offset + len) { // remove end EXTENT_DATA* ned; UINT64 size; @@ -4340,8 +4495,8 @@ goto end; } - fcb->inode_item.st_blocks -= tp.item->key.offset + ed->decoded_size - start_data; - } else if (start_data > tp.item->key.offset && end_data < tp.item->key.offset + ed->decoded_size) { // remove middle + fcb->inode_item.st_blocks -= tp.item->key.offset + len - start_data; + } else if (start_data > tp.item->key.offset && end_data < tp.item->key.offset + len) { // remove middle EXTENT_DATA* ned; UINT64 size; @@ -4372,7 +4527,7 @@ goto end; } - size = tp.item->key.offset + ed->decoded_size - end_data; + size = tp.item->key.offset + len - end_data; ned = ExAllocatePoolWithTag(PagedPool, sizeof(EXTENT_DATA) - 1 + size, ALLOC_TAG); if (!ned) { @@ -4400,39 +4555,24 @@ fcb->inode_item.st_blocks -= end_data - start_data; } } else if (ed->type == EXTENT_TYPE_REGULAR || ed->type == EXTENT_TYPE_PREALLOC) { - EXTENT_DATA2* ed2 = (EXTENT_DATA2*)&ed->data[0]; - - if (start_data <= tp.item->key.offset && end_data >= tp.item->key.offset + ed->decoded_size) { // remove all + if (start_data <= tp.item->key.offset && end_data >= tp.item->key.offset + len) { // remove all if (ed2->address != 0) { - Status = remove_extent_ref(Vcb, ed2->address, ed2->size, fcb->subvol, fcb->inode, tp.item->key.offset, changed_sector_list, rollback); + Status = remove_extent_ref(Vcb, ed2->address, ed2->size, fcb->subvol, fcb->inode, tp.item->key.offset - ed2->offset, changed_sector_list, rollback); if (!NT_SUCCESS(Status)) { ERR("remove_extent_ref returned %08x\n", Status); goto end; } - fcb->inode_item.st_blocks -= ed->decoded_size; + fcb->inode_item.st_blocks -= len; } delete_tree_item(Vcb, &tp, rollback); - } else if (start_data <= tp.item->key.offset && end_data < tp.item->key.offset + ed->decoded_size) { // remove beginning + } else if (start_data <= tp.item->key.offset && end_data < tp.item->key.offset + len) { // remove beginning EXTENT_DATA* ned; EXTENT_DATA2* ned2; - if (ed2->address != 0) { - Status = add_extent_ref(Vcb, ed2->address, ed2->size, fcb->subvol, fcb->inode, end_data, rollback); - if (!NT_SUCCESS(Status)) { - ERR("add_extent_ref returned %08x\n", Status); - goto end; - } - - Status = remove_extent_ref(Vcb, ed2->address, ed2->size, fcb->subvol, fcb->inode, tp.item->key.offset, changed_sector_list, rollback); - if (!NT_SUCCESS(Status)) { - ERR("remove_extent_ref returned %08x\n", Status); - goto end; - } - + if (ed2->address != 0) fcb->inode_item.st_blocks -= end_data - tp.item->key.offset; - } delete_tree_item(Vcb, &tp, rollback); @@ -4446,7 +4586,7 @@ ned2 = (EXTENT_DATA2*)&ned->data[0]; ned->generation = Vcb->superblock.generation; - ned->decoded_size = ed->decoded_size - (end_data - tp.item->key.offset); + ned->decoded_size = ed->decoded_size; ned->compression = ed->compression; ned->encryption = ed->encryption; ned->encoding = ed->encoding; @@ -4462,12 +4602,12 @@ Status = STATUS_INTERNAL_ERROR; goto end; } - } else if (start_data > tp.item->key.offset && end_data >= tp.item->key.offset + ed->decoded_size) { // remove end + } else if (start_data > tp.item->key.offset && end_data >= tp.item->key.offset + len) { // remove end EXTENT_DATA* ned; EXTENT_DATA2* ned2; if (ed2->address != 0) - fcb->inode_item.st_blocks -= tp.item->key.offset + ed->decoded_size - start_data; + fcb->inode_item.st_blocks -= tp.item->key.offset + len - start_data; delete_tree_item(Vcb, &tp, rollback); @@ -4481,7 +4621,7 @@ ned2 = (EXTENT_DATA2*)&ned->data[0]; ned->generation = Vcb->superblock.generation; - ned->decoded_size = start_data - tp.item->key.offset; + ned->decoded_size = ed->decoded_size; ned->compression = ed->compression; ned->encryption = ed->encryption; ned->encoding = ed->encoding; @@ -4497,19 +4637,12 @@ Status = STATUS_INTERNAL_ERROR; goto end; } - } else if (start_data > tp.item->key.offset && end_data < tp.item->key.offset + ed->decoded_size) { // remove middle + } else if (start_data > tp.item->key.offset && end_data < tp.item->key.offset + len) { // remove middle EXTENT_DATA* ned; EXTENT_DATA2* ned2; - if (ed2->address != 0) { - Status = add_extent_ref(Vcb, ed2->address, ed2->size, fcb->subvol, fcb->inode, end_data, rollback); - if (!NT_SUCCESS(Status)) { - ERR("add_extent_ref returned %08x\n", Status); - goto end; - } - + if (ed2->address != 0) fcb->inode_item.st_blocks -= end_data - start_data; - } delete_tree_item(Vcb, &tp, rollback); @@ -4523,7 +4656,7 @@ ned2 = (EXTENT_DATA2*)&ned->data[0]; ned->generation = Vcb->superblock.generation; - ned->decoded_size = start_data - tp.item->key.offset; + ned->decoded_size = ed->decoded_size; ned->compression = ed->compression; ned->encryption = ed->encryption; ned->encoding = ed->encoding; @@ -4550,7 +4683,7 @@ ned2 = (EXTENT_DATA2*)&ned->data[0]; ned->generation = Vcb->superblock.generation; - ned->decoded_size = tp.item->key.offset + ed->decoded_size - end_data; + ned->decoded_size = ed->decoded_size; ned->compression = ed->compression; ned->encryption = ed->encryption; ned->encoding = ed->encoding; @@ -4558,7 +4691,7 @@ ned2->address = ed2->address; ned2->size = ed2->size; ned2->offset = ed2->address == 0 ? 0 : (ed2->offset + (end_data - tp.item->key.offset)); - ned2->num_bytes = tp.item->key.offset + ed->decoded_size - end_data; + ned2->num_bytes = tp.item->key.offset + len - end_data; if (!insert_tree_item(Vcb, fcb->subvol, fcb->inode, TYPE_EXTENT_DATA, end_data, ned, sizeof(EXTENT_DATA) - 1 + sizeof(EXTENT_DATA2), NULL, rollback)) { ERR("insert_tree_item failed\n"); @@ -4830,9 +4963,16 @@ TRACE("not extending extent which is not EXTENT_TYPE_REGULAR\n"); goto end; } - - if (tp.item->key.offset + ed->decoded_size != start_data) { - TRACE("last EXTENT_DATA does not run up to start_data (%llx + %llx != %llx)\n", tp.item->key.offset, ed->decoded_size, start_data); + + ed2 = (EXTENT_DATA2*)ed->data; + + if (tp.item->size < sizeof(EXTENT_DATA) - 1 + sizeof(EXTENT_DATA2)) { + ERR("(%llx,%x,%llx) was %u bytes, expected %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_DATA) - 1 + sizeof(EXTENT_DATA2)); + goto end; + } + + if (tp.item->key.offset + ed2->num_bytes != start_data) { + TRACE("last EXTENT_DATA does not run up to start_data (%llx + %llx != %llx)\n", tp.item->key.offset, ed2->num_bytes, start_data); goto end; } @@ -4851,14 +4991,7 @@ goto end; } - ed2 = (EXTENT_DATA2*)ed->data; - - if (tp.item->size < sizeof(EXTENT_DATA) - 1 + sizeof(EXTENT_DATA2)) { - ERR("(%llx,%x,%llx) was %u bytes, expected %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_DATA) - 1 + sizeof(EXTENT_DATA2)); - goto end; - } - - if (ed2->size - ed2->offset != ed->decoded_size) { + if (ed2->size - ed2->offset != ed2->num_bytes) { TRACE("last EXTENT_DATA does not run all the way to the end of the extent\n"); goto end; } @@ -5033,6 +5166,7 @@ traverse_ptr tp; NTSTATUS Status; EXTENT_DATA* ed; + UINT64 len; searchkey.obj_id = fcb->inode; searchkey.obj_type = TYPE_EXTENT_DATA; @@ -5065,19 +5199,24 @@ // return STATUS_INTERNAL_ERROR; // } - if (tp.item->key.obj_type == TYPE_EXTENT_DATA && tp.item->size >= sizeof(EXTENT_DATA)) + if (tp.item->key.obj_type == TYPE_EXTENT_DATA && tp.item->size >= sizeof(EXTENT_DATA)) { + EXTENT_DATA2* ed2; + ed = (EXTENT_DATA*)tp.item->data; - else + ed2 = (EXTENT_DATA2*)ed->data; + + len = ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes; + } else ed = NULL; - if (tp.item->key.obj_id != fcb->inode || tp.item->key.obj_type != TYPE_EXTENT_DATA || !ed || tp.item->key.offset + ed->decoded_size < start_data) { + if (tp.item->key.obj_id != fcb->inode || tp.item->key.obj_type != TYPE_EXTENT_DATA || !ed || tp.item->key.offset + len < start_data) { if (tp.item->key.obj_id != fcb->inode || tp.item->key.obj_type != TYPE_EXTENT_DATA) Status = insert_sparse_extent(Vcb, fcb->subvol, fcb->inode, 0, start_data, rollback); else if (!ed) ERR("(%llx,%x,%llx) was %u bytes, expected at least %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_DATA)); else { - Status = insert_sparse_extent(Vcb, fcb->subvol, fcb->inode, tp.item->key.offset + ed->decoded_size, - start_data - tp.item->key.offset - ed->decoded_size, rollback); + Status = insert_sparse_extent(Vcb, fcb->subvol, fcb->inode, tp.item->key.offset + len, + start_data - tp.item->key.offset - len, rollback); } if (!NT_SUCCESS(Status)) { ERR("insert_sparse_extent returned %08x\n", Status); @@ -5388,14 +5527,17 @@ oldalloc = 0; if (tp.item->key.obj_id == fcb->inode && tp.item->key.obj_type == TYPE_EXTENT_DATA) { + EXTENT_DATA* ed = (EXTENT_DATA*)tp.item->data; + EXTENT_DATA2* ed2 = (EXTENT_DATA2*)ed->data; + if (tp.item->size < sizeof(EXTENT_DATA)) { ERR("(%llx,%x,%llx) was %u bytes, expected at least %u\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, tp.item->size, sizeof(EXTENT_DATA)); free_traverse_ptr(&tp); return STATUS_INTERNAL_ERROR; } - oldalloc = tp.item->key.offset + ((EXTENT_DATA*)tp.item->data)->decoded_size; - cur_inline = ((EXTENT_DATA*)tp.item->data)->type == EXTENT_TYPE_INLINE; + oldalloc = tp.item->key.offset + (ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes); + cur_inline = ed->type == EXTENT_TYPE_INLINE; if (cur_inline && end > fcb->Vcb->max_inline) { LIST_ENTRY changed_sector_list; @@ -5405,7 +5547,7 @@ TRACE("giving inline file proper extents\n"); - origlength = ((EXTENT_DATA*)tp.item->data)->decoded_size; + origlength = ed->decoded_size; cur_inline = FALSE; @@ -5426,7 +5568,7 @@ if (length > origlength) RtlZeroMemory(data + origlength, length - origlength); - RtlCopyMemory(data, ((EXTENT_DATA*)tp.item->data)->data, origlength); + RtlCopyMemory(data, ed->data, origlength); fcb->inode_item.st_blocks -= origlength; @@ -5447,7 +5589,6 @@ } if (cur_inline) { - EXTENT_DATA* ed; ULONG edsize; if (end > oldalloc) { @@ -5868,7 +6009,7 @@ ed = (EXTENT_DATA*)tp.item->data; ed2 = (EXTENT_DATA2*)&ed->data[0]; - length = oldlength = ed->decoded_size; + length = oldlength = ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes; lastoff = tp.item->key.offset; TRACE("(%llx,%x,%llx) length = %llx\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, length); @@ -5895,7 +6036,7 @@ ed = (EXTENT_DATA*)tp.item->data; ed2 = (EXTENT_DATA2*)&ed->data[0]; - length = ed->decoded_size; + length = ed->type == EXTENT_TYPE_INLINE ? ed->decoded_size : ed2->num_bytes; TRACE("(%llx,%x,%llx) length = %llx\n", tp.item->key.obj_id, tp.item->key.obj_type, tp.item->key.offset, length);
8 years, 9 months
1
0
0
0
[hbelusca] 71051: [SYSSETUP] - Reduce the C COM "ugliness" by using suitable macros. Thanks to Mark Jansen for having pointed that. - Use sizeof() instead of ARRAYSIZE() * sizeof(WCHAR) to do the s...
by hbelusca@svn.reactos.org
Author: hbelusca Date: Sat Mar 26 02:11:58 2016 New Revision: 71051 URL:
http://svn.reactos.org/svn/reactos?rev=71051&view=rev
Log: [SYSSETUP] - Reduce the C COM "ugliness" by using suitable macros. Thanks to Mark Jansen for having pointed that. - Use sizeof() instead of ARRAYSIZE() * sizeof(WCHAR) to do the same thing. Modified: trunk/reactos/dll/win32/syssetup/install.c Modified: trunk/reactos/dll/win32/syssetup/install.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
============================================================================== --- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Sat Mar 26 02:11:58 2016 @@ -28,6 +28,8 @@ #include "precomp.h" +#define COBJMACROS + #include <io.h> #include <wincon.h> #include <winnls.h> @@ -35,6 +37,7 @@ #include <userenv.h> #include <shlobj.h> #include <shlwapi.h> +#include <shobjidl.h> #include <rpcproxy.h> #include <ndk/cmfuncs.h> @@ -83,44 +86,44 @@ INT iIconNr, LPCWSTR pszComment) { - IShellLink *psl; + IShellLinkW *psl; IPersistFile *ppf; HRESULT hr = CoCreateInstance(&CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, &IID_IShellLink, (LPVOID*)&psl); if (SUCCEEDED(hr)) { - hr = psl->lpVtbl->SetPath(psl, pszCmd); + hr = IShellLinkW_SetPath(psl, pszCmd); if (pszArg) { - hr = psl->lpVtbl->SetArguments(psl, pszArg); + hr = IShellLinkW_SetArguments(psl, pszArg); } if (pszDir) { - hr = psl->lpVtbl->SetWorkingDirectory(psl, pszDir); + hr = IShellLinkW_SetWorkingDirectory(psl, pszDir); } if (pszIconPath) { - hr = psl->lpVtbl->SetIconLocation(psl, pszIconPath, iIconNr); + hr = IShellLinkW_SetIconLocation(psl, pszIconPath, iIconNr); } if (pszComment) { - hr = psl->lpVtbl->SetDescription(psl, pszComment); - } - - hr = psl->lpVtbl->QueryInterface(psl, &IID_IPersistFile, (LPVOID*)&ppf); + hr = IShellLinkW_SetDescription(psl, pszComment); + } + + hr = IShellLinkW_QueryInterface(psl, &IID_IPersistFile, (LPVOID*)&ppf); if (SUCCEEDED(hr)) { - hr = ppf->lpVtbl->Save(ppf, pszLinkPath, TRUE); - ppf->lpVtbl->Release(ppf); - } - - psl->lpVtbl->Release(psl); + hr = IPersistFile_Save(ppf, pszLinkPath, TRUE); + IPersistFile_Release(ppf); + } + + IShellLinkW_Release(psl); } return hr; @@ -297,7 +300,7 @@ } /* Get temp dir */ - dwLength = ARRAYSIZE(szBuffer) * sizeof(WCHAR); + dwLength = sizeof(szBuffer); if (RegQueryValueExW(hKey, VarName, NULL,
8 years, 9 months
1
0
0
0
[hbelusca] 71050: [SYSSETUP]: Code formatting, and exclusively use UNICODE strings.
by hbelusca@svn.reactos.org
Author: hbelusca Date: Sat Mar 26 01:43:34 2016 New Revision: 71050 URL:
http://svn.reactos.org/svn/reactos?rev=71050&view=rev
Log: [SYSSETUP]: Code formatting, and exclusively use UNICODE strings. Modified: trunk/reactos/dll/win32/syssetup/install.c Modified: trunk/reactos/dll/win32/syssetup/install.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
============================================================================== --- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Sat Mar 26 01:43:34 2016 @@ -28,7 +28,7 @@ #include "precomp.h" -#include <tchar.h> +#include <io.h> #include <wincon.h> #include <winnls.h> #include <winsvc.h> @@ -75,19 +75,16 @@ static HRESULT CreateShellLink( - LPCTSTR pszLinkPath, - LPCTSTR pszCmd, - LPCTSTR pszArg, - LPCTSTR pszDir, - LPCTSTR pszIconPath, - int iIconNr, - LPCTSTR pszComment) + LPCWSTR pszLinkPath, + LPCWSTR pszCmd, + LPCWSTR pszArg, + LPCWSTR pszDir, + LPCWSTR pszIconPath, + INT iIconNr, + LPCWSTR pszComment) { IShellLink *psl; IPersistFile *ppf; -#ifndef _UNICODE - WCHAR wszBuf[MAX_PATH]; -#endif /* _UNICODE */ HRESULT hr = CoCreateInstance(&CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, &IID_IShellLink, (LPVOID*)&psl); @@ -119,14 +116,7 @@ if (SUCCEEDED(hr)) { -#ifdef _UNICODE hr = ppf->lpVtbl->Save(ppf, pszLinkPath, TRUE); -#else /* _UNICODE */ - MultiByteToWideChar(CP_ACP, 0, pszLinkPath, -1, wszBuf, MAX_PATH); - - hr = ppf->lpVtbl->Save(ppf, wszBuf, TRUE); -#endif /* _UNICODE */ - ppf->lpVtbl->Release(ppf); } @@ -139,75 +129,73 @@ static BOOL CreateShortcut( - LPCTSTR pszFolder, - LPCTSTR pszName, - LPCTSTR pszCommand, - LPCTSTR pszDescription, + LPCWSTR pszFolder, + LPCWSTR pszName, + LPCWSTR pszCommand, + LPCWSTR pszDescription, INT iIconNr, - LPCTSTR pszWorkingDir) -{ - TCHAR szPath[MAX_PATH]; - TCHAR szExeName[MAX_PATH]; - TCHAR szWorkingDirBuf[MAX_PATH]; - LPTSTR Ptr; - LPTSTR lpFilePart; + LPCWSTR pszWorkingDir) +{ + WCHAR szPath[MAX_PATH]; + WCHAR szExeName[MAX_PATH]; + WCHAR szWorkingDirBuf[MAX_PATH]; + LPWSTR Ptr; + LPWSTR lpFilePart; DWORD dwLen; - if (ExpandEnvironmentStrings(pszCommand, - szPath, - sizeof(szPath) / sizeof(szPath[0])) == 0) - { - _tcscpy(szPath, pszCommand); - } - - if ((_taccess(szPath, 0 )) == -1) + if (ExpandEnvironmentStringsW(pszCommand, szPath, ARRAYSIZE(szPath)) == 0) + { + wcscpy(szPath, pszCommand); + } + + if (_waccess(szPath, 0) == -1) /* Expected error, don't return FALSE */ return TRUE; - dwLen = GetFullPathName(szPath, - sizeof(szWorkingDirBuf) / sizeof(szWorkingDirBuf[0]), - szWorkingDirBuf, - &lpFilePart); - if (dwLen != 0 && dwLen <= sizeof(szWorkingDirBuf) / sizeof(szWorkingDirBuf[0])) + dwLen = GetFullPathNameW(szPath, + ARRAYSIZE(szWorkingDirBuf), + szWorkingDirBuf, + &lpFilePart); + if (dwLen != 0 && dwLen <= ARRAYSIZE(szWorkingDirBuf)) { /* Since those should only be called with (.exe) files, lpFilePart has not to be NULL */ ASSERT(lpFilePart != NULL); /* Save the file name */ - _tcscpy(szExeName, lpFilePart); - - if (pszWorkingDir == NULL || pszWorkingDir[0] == _T('\0')) + wcscpy(szExeName, lpFilePart); + + if (pszWorkingDir == NULL || pszWorkingDir[0] == L'\0') { /* We're only interested in the path. Cut the file name off. Also remove the trailing backslash unless the working directory is only going to be a drive, ie. C:\ */ - *(lpFilePart--) = _T('\0'); - if (!(lpFilePart - szWorkingDirBuf == 2 && szWorkingDirBuf[1] == _T(':') && - szWorkingDirBuf[2] == _T('\\'))) + *(lpFilePart--) = L'\0'; + if (!(lpFilePart - szWorkingDirBuf == 2 && szWorkingDirBuf[1] == L':' && + szWorkingDirBuf[2] == L'\\')) { - *lpFilePart = _T('\0'); + *lpFilePart = L'\0'; } pszWorkingDir = szWorkingDirBuf; } } - else if (pszWorkingDir && pszWorkingDir[0] == _T('\0')) + else if (pszWorkingDir && pszWorkingDir[0] == L'\0') { pszWorkingDir = NULL; } - _tcscpy(szPath, pszFolder); + wcscpy(szPath, pszFolder); Ptr = PathAddBackslash(szPath); - _tcscpy(Ptr, pszName); + wcscpy(Ptr, pszName); // FIXME: we should pass 'command' straight in here, but shell32 doesn't expand it - return SUCCEEDED(CreateShellLink(szPath, szExeName, _T(""), pszWorkingDir, szExeName, iIconNr, pszDescription)); -} - - -static BOOL CreateShortcutsFromSection(HINF hinf, LPWSTR pszSection, LPCWSTR pszFolder) + return SUCCEEDED(CreateShellLink(szPath, szExeName, L"", pszWorkingDir, szExeName, iIconNr, pszDescription)); +} + + +static BOOL CreateShortcutsFromSection(HINF hinf, LPWSTR pszSection, LPCWSTR pszFolder) { INFCONTEXT Context; DWORD dwFieldCount; @@ -226,22 +214,22 @@ if (dwFieldCount < 4) continue; - if (!SetupGetStringFieldW(&Context, 1, szCommand, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&Context, 1, szCommand, ARRAYSIZE(szCommand), NULL)) continue; - if (!SetupGetStringFieldW(&Context, 2, szName, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&Context, 2, szName, ARRAYSIZE(szName), NULL)) continue; - if (!SetupGetStringFieldW(&Context, 3, szDescription, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&Context, 3, szDescription, ARRAYSIZE(szDescription), NULL)) continue; if (!SetupGetIntField(&Context, 4, &iIconNr)) continue; - if (dwFieldCount < 5 || !SetupGetStringFieldW(&Context, 5, szDirectory, MAX_PATH, NULL)) + if (dwFieldCount < 5 || !SetupGetStringFieldW(&Context, 5, szDirectory, ARRAYSIZE(szDirectory), NULL)) szDirectory[0] = L'\0'; - _tcscat(szName, L".lnk"); + wcscat(szName, L".lnk"); CreateShortcut(pszFolder, szName, szCommand, szDescription, iIconNr, szDirectory); @@ -268,13 +256,13 @@ if (SetupGetFieldCount(&Context) < 2) continue; - if (!SetupGetStringFieldW(&Context, 0, szFolderSection, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&Context, 0, szFolderSection, ARRAYSIZE(szFolderSection), NULL)) continue; if (!SetupGetIntField(&Context, 1, &csidl)) continue; - if (!SetupGetStringFieldW(&Context, 2, szFolder, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&Context, 2, szFolder, ARRAYSIZE(szFolder), NULL)) continue; if (FAILED(SHGetFolderPathAndSubDirW(NULL, csidl|CSIDL_FLAG_CREATE, (HANDLE)-1, SHGFP_TYPE_DEFAULT, szFolder, szPath))) @@ -282,7 +270,7 @@ CreateShortcutsFromSection(hinf, szFolderSection, szPath); - }while (SetupFindNextLine(&Context, &Context)); + } while (SetupFindNextLine(&Context, &Context)); CoUninitialize(); @@ -299,32 +287,30 @@ HKEY hKey; if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, - L"SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", - 0, - KEY_QUERY_VALUE, - &hKey) != ERROR_SUCCESS) + L"SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", + 0, + KEY_QUERY_VALUE, + &hKey) != ERROR_SUCCESS) { FatalError("Error: %lu\n", GetLastError()); return; } /* Get temp dir */ - dwLength = MAX_PATH * sizeof(WCHAR); + dwLength = ARRAYSIZE(szBuffer) * sizeof(WCHAR); if (RegQueryValueExW(hKey, - VarName, - NULL, - NULL, - (LPBYTE)szBuffer, - &dwLength) != ERROR_SUCCESS) + VarName, + NULL, + NULL, + (LPBYTE)szBuffer, + &dwLength) != ERROR_SUCCESS) { FatalError("Error: %lu\n", GetLastError()); goto cleanup; } /* Expand it */ - if (!ExpandEnvironmentStringsW(szBuffer, - szTempDir, - MAX_PATH)) + if (!ExpandEnvironmentStringsW(szBuffer, szTempDir, ARRAYSIZE(szTempDir))) { FatalError("Error: %lu\n", GetLastError()); goto cleanup; @@ -362,10 +348,10 @@ do { if (!SetupGetStringFieldW(&InfContext, - 0, - szLineBuffer, - sizeof(szLineBuffer)/sizeof(szLineBuffer[0]), - &dwLineLength)) + 0, + szLineBuffer, + ARRAYSIZE(szLineBuffer), + &dwLineLength)) { return FALSE; } @@ -389,9 +375,9 @@ HINF hComponentInf = INVALID_HANDLE_VALUE; if (!SetupFindFirstLineW(hSysSetupInf, - L"Infs.Always", - NULL, - &InfContext)) + L"Infs.Always", + NULL, + &InfContext)) { DPRINT("No Inf.Always section found\n"); } @@ -400,20 +386,20 @@ do { if (!SetupGetStringFieldW(&InfContext, - 1, // Get the component name - szNameBuffer, - sizeof(szNameBuffer)/sizeof(szNameBuffer[0]), - NULL)) + 1, // Get the component name + szNameBuffer, + ARRAYSIZE(szNameBuffer), + NULL)) { FatalError("Error while trying to get component name \n"); return FALSE; } if (!SetupGetStringFieldW(&InfContext, - 2, // Get the component install section - szSectionBuffer, - sizeof(szSectionBuffer)/sizeof(szSectionBuffer[0]), - NULL)) + 2, // Get the component install section + szSectionBuffer, + ARRAYSIZE(szSectionBuffer), + NULL)) { FatalError("Error while trying to get component install section \n"); return FALSE; @@ -433,16 +419,16 @@ } if (!SetupInstallFromInfSectionW(NULL, - hComponentInf, - szSectionBuffer, - SPINST_ALL, - NULL, - NULL, - SP_COPY_NEWER, - SetupDefaultQueueCallbackW, - NULL, - NULL, - NULL)) + hComponentInf, + szSectionBuffer, + SPINST_ALL, + NULL, + NULL, + SP_COPY_NEWER, + SetupDefaultQueueCallbackW, + NULL, + NULL, + NULL)) { FatalError("Error while trying to install : %S (Error: %lu)\n", szNameBuffer, GetLastError()); SetupCloseInfFile(hComponentInf); @@ -456,7 +442,6 @@ return TRUE; } - @@ -479,7 +464,7 @@ do { /* Get the name of the current type library */ - if (!SetupGetStringFieldW(&InfContext, 1, szName, MAX_PATH, NULL)) + if (!SetupGetStringFieldW(&InfContext, 1, szName, ARRAYSIZE(szName), NULL)) { FatalError("SetupGetStringFieldW failed\n"); continue; @@ -496,7 +481,7 @@ } p = PathAddBackslash(szPath); - _tcscpy(p, szName); + wcscpy(p, szName); hmod = LoadLibraryW(szName); if (hmod == NULL) @@ -507,7 +492,7 @@ __wine_register_resources(hmod); - }while (SetupFindNextLine(&InfContext, &InfContext)); + } while (SetupFindNextLine(&InfContext, &InfContext)); return TRUE; } @@ -537,11 +522,11 @@ } bRet = ChangeServiceConfigW(hService, - SERVICE_NO_CHANGE, - SERVICE_AUTO_START, - SERVICE_NO_CHANGE, - NULL, NULL, NULL, - NULL, NULL, NULL, NULL); + SERVICE_NO_CHANGE, + SERVICE_AUTO_START, + SERVICE_NO_CHANGE, + NULL, NULL, NULL, + NULL, NULL, NULL, NULL); if (!bRet) { DPRINT1("Unable to change the service configuration\n"); @@ -580,7 +565,7 @@ { WCHAR szMsg[256]; - if (!LoadStringW(hDllInstance, IDS_STATUS_INSTALL_DEV, szMsg, sizeof(szMsg)/sizeof(szMsg[0]))) + if (!LoadStringW(hDllInstance, IDS_STATUS_INSTALL_DEV, szMsg, ARRAYSIZE(szMsg))) return FALSE; SetDlgItemTextW(hwndDlg, IDC_STATUSLABEL, szMsg); return TRUE; @@ -597,12 +582,11 @@ HWND hWnd; MSG Msg; - hWnd = CreateDialogParam( - hDllInstance, - MAKEINTRESOURCE(IDD_STATUSWINDOW_DLG), - GetDesktopWindow(), - StatusMessageWindowProc, - (LPARAM)NULL); + hWnd = CreateDialogParam(hDllInstance, + MAKEINTRESOURCE(IDD_STATUSWINDOW_DLG), + GetDesktopWindow(), + StatusMessageWindowProc, + (LPARAM)NULL); if (!hWnd) return 0; *phWnd = hWnd; @@ -664,12 +648,11 @@ BOOL bConsoleBoot = FALSE; LONG rc; - rc = RegOpenKeyExW( - HKEY_LOCAL_MACHINE, - L"SYSTEM\\CurrentControlSet\\Control", - 0, - KEY_QUERY_VALUE, - &hControlKey); + rc = RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SYSTEM\\CurrentControlSet\\Control", + 0, + KEY_QUERY_VALUE, + &hControlKey); if (rc != ERROR_SUCCESS) goto cleanup; @@ -706,11 +689,10 @@ { HWND hWnd = NULL; - hSysSetupInf = SetupOpenInfFileW( - L"syssetup.inf", - NULL, - INF_STYLE_WIN4, - NULL); + hSysSetupInf = SetupOpenInfFileW(L"syssetup.inf", + NULL, + INF_STYLE_WIN4, + NULL); if (hSysSetupInf == INVALID_HANDLE_VALUE) { FatalError("SetupOpenInfFileW() failed to open 'syssetup.inf' (Error: %lu)\n", GetLastError()); @@ -733,14 +715,12 @@ { HANDLE hThread; - hThread = CreateThread( - NULL, - 0, - ShowStatusMessageThread, - (LPVOID)&hWnd, - 0, - NULL); - + hThread = CreateThread(NULL, + 0, + ShowStatusMessageThread, + (LPVOID)&hWnd, + 0, + NULL); if (hThread) CloseHandle(hThread); } @@ -786,7 +766,7 @@ BOOL ret = FALSE; /* Get Windows directory */ - BufferSize = MAX_PATH - 5 - wcslen(InfFile); + BufferSize = ARRAYSIZE(Buffer) - 5 - wcslen(InfFile); if (GetWindowsDirectoryW(Buffer, BufferSize) > BufferSize) { /* Function failed */ @@ -812,16 +792,15 @@ if (ret && InfSection) { ret = SetupInstallFromInfSectionW( - hWnd, hInf, - InfSection, SPINST_ALL, - NULL, NULL, SP_COPY_NEWER, - SetupDefaultQueueCallbackW, Context, - NULL, NULL); + hWnd, hInf, + InfSection, SPINST_ALL, + NULL, NULL, SP_COPY_NEWER, + SetupDefaultQueueCallbackW, Context, + NULL, NULL); } if (ret && InfService) { - ret = SetupInstallServicesFromInfSectionW( - hInf, InfService, 0); + ret = SetupInstallServicesFromInfSectionW(hInf, InfService, 0); } cleanup: @@ -841,9 +820,9 @@ /* Hack: Install TCP/IP protocol driver */ bRes = InstallInfSection(NULL, - L"nettcpip.inf", - L"MS_TCPIP.PrimaryInstall", - L"MS_TCPIP.PrimaryInstall.Services"); + L"nettcpip.inf", + L"MS_TCPIP.PrimaryInstall", + L"MS_TCPIP.PrimaryInstall.Services"); if (!bRes && GetLastError() != ERROR_FILE_NOT_FOUND) { DPRINT("InstallInfSection() failed with error 0x%lx\n", GetLastError()); @@ -861,9 +840,9 @@ _SEH2_TRY { if (!SetupInstallFromInfSectionW(NULL, - hSysSetupInf, L"RegistrationPhase2", - SPINST_ALL, - 0, NULL, 0, NULL, NULL, NULL, NULL)) + hSysSetupInf, L"RegistrationPhase2", + SPINST_ALL, + 0, NULL, 0, NULL, NULL, NULL, NULL)) { DPRINT1("SetupInstallFromInfSectionW failed!\n"); } @@ -881,17 +860,16 @@ /* Run the shell */ ZeroMemory(&StartupInfo, sizeof(StartupInfo)); StartupInfo.cb = sizeof(StartupInfo); - bRes = CreateProcessW( - L"userinit.exe", - NULL, - NULL, - NULL, - FALSE, - 0, - NULL, - NULL, - &StartupInfo, - &ProcessInformation); + bRes = CreateProcessW(L"userinit.exe", + NULL, + NULL, + NULL, + FALSE, + 0, + NULL, + NULL, + &StartupInfo, + &ProcessInformation); if (!bRes) goto error; @@ -1075,10 +1053,10 @@ i = 0; while (LocaleData[i].pValue != NULL) { - if (GetLocaleInfo(lcid, - LocaleData[i].LCType | LOCALE_NOUSEROVERRIDE, - szBuffer, - sizeof(szBuffer) / sizeof(WCHAR))) + if (GetLocaleInfoW(lcid, + LocaleData[i].LCType | LOCALE_NOUSEROVERRIDE, + szBuffer, + ARRAYSIZE(szBuffer))) { RegSetValueExW(hLocaleKey, LocaleData[i].pValue, @@ -1100,7 +1078,7 @@ WINAPI InstallReactOS(HINSTANCE hInstance) { - TCHAR szBuffer[MAX_PATH]; + WCHAR szBuffer[MAX_PATH]; HANDLE token; TOKEN_PRIVILEGES privs; HKEY hKey; @@ -1122,7 +1100,7 @@ InitializeDefaultUserLocale(); - if (GetWindowsDirectory(szBuffer, sizeof(szBuffer) / sizeof(TCHAR))) + if (GetWindowsDirectoryW(szBuffer, ARRAYSIZE(szBuffer))) { if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", @@ -1148,7 +1126,7 @@ } PathAddBackslash(szBuffer); - _tcscat(szBuffer, _T("system")); + wcscat(szBuffer, L"system"); CreateDirectory(szBuffer, NULL); } @@ -1224,23 +1202,21 @@ FatalError("OpenProcessToken() failed!"); return 0; } - if (!LookupPrivilegeValue( - NULL, - SE_SHUTDOWN_NAME, - &privs.Privileges[0].Luid)) + if (!LookupPrivilegeValue(NULL, + SE_SHUTDOWN_NAME, + &privs.Privileges[0].Luid)) { FatalError("LookupPrivilegeValue() failed!"); return 0; } privs.PrivilegeCount = 1; privs.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; - if (AdjustTokenPrivileges( - token, - FALSE, - &privs, - 0, - (PTOKEN_PRIVILEGES)NULL, - NULL) == 0) + if (AdjustTokenPrivileges(token, + FALSE, + &privs, + 0, + (PTOKEN_PRIVILEGES)NULL, + NULL) == 0) { FatalError("AdjustTokenPrivileges() failed!"); return 0;
8 years, 9 months
1
0
0
0
[hbelusca] 71049: [SYSSETUP] Allow for an optional working directory in the shortcuts definitions in the shortcuts.inf file. Patch by Mark Jansen CORE-11020 #comment Thank you very much! [SHORTCUTS...
by hbelusca@svn.reactos.org
Author: hbelusca Date: Sat Mar 26 01:16:35 2016 New Revision: 71049 URL:
http://svn.reactos.org/svn/reactos?rev=71049&view=rev
Log: [SYSSETUP] Allow for an optional working directory in the shortcuts definitions in the shortcuts.inf file. Patch by Mark Jansen CORE-11020 #comment Thank you very much! [SHORTCUTS.INF] As an application of the previous feature, make the shortcuts (desktop & start menu) of cmd.exe start it from the user directory. CORE-11018 #comment Please retest with r71049. Modified: trunk/reactos/dll/win32/syssetup/install.c trunk/reactos/media/inf/shortcuts.inf Modified: trunk/reactos/dll/win32/syssetup/install.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
============================================================================== --- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Sat Mar 26 01:16:35 2016 @@ -143,13 +143,13 @@ LPCTSTR pszName, LPCTSTR pszCommand, LPCTSTR pszDescription, - INT iIconNr) + INT iIconNr, + LPCTSTR pszWorkingDir) { TCHAR szPath[MAX_PATH]; TCHAR szExeName[MAX_PATH]; + TCHAR szWorkingDirBuf[MAX_PATH]; LPTSTR Ptr; - TCHAR szWorkingDirBuf[MAX_PATH]; - LPTSTR pszWorkingDir = NULL; LPTSTR lpFilePart; DWORD dwLen; @@ -177,17 +177,23 @@ /* Save the file name */ _tcscpy(szExeName, lpFilePart); - /* We're only interested in the path. Cut the file name off. - Also remove the trailing backslash unless the working directory - is only going to be a drive, ie. C:\ */ - *(lpFilePart--) = _T('\0'); - if (!(lpFilePart - szWorkingDirBuf == 2 && szWorkingDirBuf[1] == _T(':') && - szWorkingDirBuf[2] == _T('\\'))) - { - *lpFilePart = _T('\0'); - } - - pszWorkingDir = szWorkingDirBuf; + if (pszWorkingDir == NULL || pszWorkingDir[0] == _T('\0')) + { + /* We're only interested in the path. Cut the file name off. + Also remove the trailing backslash unless the working directory + is only going to be a drive, ie. C:\ */ + *(lpFilePart--) = _T('\0'); + if (!(lpFilePart - szWorkingDirBuf == 2 && szWorkingDirBuf[1] == _T(':') && + szWorkingDirBuf[2] == _T('\\'))) + { + *lpFilePart = _T('\0'); + } + pszWorkingDir = szWorkingDirBuf; + } + } + else if (pszWorkingDir && pszWorkingDir[0] == _T('\0')) + { + pszWorkingDir = NULL; } _tcscpy(szPath, pszFolder); @@ -204,9 +210,11 @@ static BOOL CreateShortcutsFromSection(HINF hinf, LPWSTR pszSection, LPCWSTR pszFolder) { INFCONTEXT Context; + DWORD dwFieldCount; WCHAR szCommand[MAX_PATH]; WCHAR szName[MAX_PATH]; WCHAR szDescription[MAX_PATH]; + WCHAR szDirectory[MAX_PATH]; INT iIconNr; if (!SetupFindFirstLine(hinf, pszSection, NULL, &Context)) @@ -214,7 +222,8 @@ do { - if (SetupGetFieldCount(&Context) < 4) + dwFieldCount = SetupGetFieldCount(&Context); + if (dwFieldCount < 4) continue; if (!SetupGetStringFieldW(&Context, 1, szCommand, MAX_PATH, NULL)) @@ -229,11 +238,14 @@ if (!SetupGetIntField(&Context, 4, &iIconNr)) continue; + if (dwFieldCount < 5 || !SetupGetStringFieldW(&Context, 5, szDirectory, MAX_PATH, NULL)) + szDirectory[0] = L'\0'; + _tcscat(szName, L".lnk"); - CreateShortcut(pszFolder, szName, szCommand, szDescription, iIconNr); - - }while (SetupFindNextLine(&Context, &Context)); + CreateShortcut(pszFolder, szName, szCommand, szDescription, iIconNr, szDirectory); + + } while (SetupFindNextLine(&Context, &Context)); return TRUE; } Modified: trunk/reactos/media/inf/shortcuts.inf URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/inf/shortcuts.inf?re…
============================================================================== --- trunk/reactos/media/inf/shortcuts.inf [iso-8859-1] (original) +++ trunk/reactos/media/inf/shortcuts.inf [iso-8859-1] Sat Mar 26 01:16:35 2016 @@ -14,7 +14,7 @@ GamesShortcuts=2, %GAMES% [DesktopShortcuts] -%SystemRoot%\system32\cmd.exe, %CMD_TITLE%, %CMD_DESC%, 0 +%SystemRoot%\system32\cmd.exe, %CMD_TITLE%, %CMD_DESC%, 0, %HOMEDRIVE%%HOMEPATH% %SystemRoot%\system32\rapps.exe, %RAPPS_TITLE_SHORT%, %RAPPS_DESC%, 0 [ProgramShortcuts] @@ -32,7 +32,7 @@ [AccessoriesShortcuts] %SystemRoot%\system32\calc.exe, %CALC_TITLE%, %CALC_DESC%, 0 -%SystemRoot%\system32\cmd.exe, %CMD_TITLE%, %CMD_DESC%, 0 +%SystemRoot%\system32\cmd.exe, %CMD_TITLE%, %CMD_DESC%, 0, %HOMEDRIVE%%HOMEPATH% %SystemRoot%\system32\notepad.exe, %NOTEPAD_TITLE%, %NOTEPAD_DESC%, 0 %SystemRoot%\system32\screenshot.exe, %SCREENSHOT_TITLE%, %SCREENSHOT_DESC%, 0 %SystemRoot%\system32\wordpad.exe, %WORDPAD_TITLE%, %WORDPAD_DESC%, 0
8 years, 9 months
1
0
0
0
[rnaumann] 71048: [IERNONCE] Add resources, update file header, remove unneeded includes CORE-7194
by rnaumann@svn.reactos.org
Author: rnaumann Date: Fri Mar 25 23:54:55 2016 New Revision: 71048 URL:
http://svn.reactos.org/svn/reactos?rev=71048&view=rev
Log: [IERNONCE] Add resources, update file header, remove unneeded includes CORE-7194 Added: trunk/reactos/dll/win32/iernonce/iernonce.rc (with props) trunk/reactos/dll/win32/iernonce/lang/ trunk/reactos/dll/win32/iernonce/lang/en-US.rc (with props) trunk/reactos/dll/win32/iernonce/res/ trunk/reactos/dll/win32/iernonce/res/setup.ico (with props) trunk/reactos/dll/win32/iernonce/resource.h (with props) Modified: trunk/reactos/dll/win32/iernonce/CMakeLists.txt trunk/reactos/dll/win32/iernonce/iernonce.c Modified: trunk/reactos/dll/win32/iernonce/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/CMakeLi…
============================================================================== --- trunk/reactos/dll/win32/iernonce/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/iernonce/CMakeLists.txt [iso-8859-1] Fri Mar 25 23:54:55 2016 @@ -3,6 +3,7 @@ add_library(iernonce SHARED iernonce.c + iernonce.rc ${CMAKE_CURRENT_BINARY_DIR}/iernonce.def) set_module_type(iernonce win32dll UNICODE) Modified: trunk/reactos/dll/win32/iernonce/iernonce.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/iernonc…
============================================================================== --- trunk/reactos/dll/win32/iernonce/iernonce.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/iernonce/iernonce.c [iso-8859-1] Fri Mar 25 23:54:55 2016 @@ -2,18 +2,14 @@ * PROJECT: ReactOS system libraries * LICENSE: GPL - See COPYING in the top level directory * FILE: dll\win32\iernonce\iernonce.c - * PURPOSE: DLL for RunOnceEx Keys - * PROGRAMMERS: Copyright 2013 Robert Naumann + * PURPOSE: ReactOS Extended RunOnce processing with UI + * PROGRAMMERS: Copyright 2013-2016 Robert Naumann */ #define WIN32_NO_STATUS -#include <stdarg.h> #include <windef.h> #include <winbase.h> -#include <winreg.h> -#include <winuser.h> -#include <setupapi.h> #define NDEBUG #include <debug.h> Added: trunk/reactos/dll/win32/iernonce/iernonce.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/iernonc…
============================================================================== --- trunk/reactos/dll/win32/iernonce/iernonce.rc (added) +++ trunk/reactos/dll/win32/iernonce/iernonce.rc [iso-8859-1] Fri Mar 25 23:54:55 2016 @@ -0,0 +1,19 @@ +#include <windef.h> +#include <winuser.h> + +#include "resource.h" + +#define REACTOS_VERSION_DLL +#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Extended RunOnce processing with UI" +#define REACTOS_STR_INTERNAL_NAME "iernonce" +#define REACTOS_STR_ORIGINAL_FILENAME "iernonce.dll" +#include <reactos/version.rc> + +IDI_ICON ICON "res/setup.ico" + +/* UTF-8 */ +#pragma code_page(65001) + +#ifdef LANGUAGE_EN_US + #include "lang/en-US.rc" +#endif Propchange: trunk/reactos/dll/win32/iernonce/iernonce.rc ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/dll/win32/iernonce/lang/en-US.rc URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/lang/en…
============================================================================== --- trunk/reactos/dll/win32/iernonce/lang/en-US.rc (added) +++ trunk/reactos/dll/win32/iernonce/lang/en-US.rc [iso-8859-1] Fri Mar 25 23:54:55 2016 @@ -0,0 +1,27 @@ +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +STRINGTABLE +BEGIN + IDS_INVALIDFORMAT "The format of the %1 RunEx or RunOnceEx entry was invalid. A vertical bar ('|') is needed after the function name and the function needs to support WinMain() parameters." + IDS_LOADERROR "An error occurred loading %1. The file may not have been installed or it has been corrupted." + IDS_CALLERROR "An error or exception occurred while calling the function %1 in %2." + IDS_INCORRECTFORMAT "The format of the following RunEx or RunOnceEx command is incorrect: %1. The shell execute command must start with ||." + IDS_NOEXPORT "Unable to call the function %1 in the file %2 because that function does not exist or is not exported." + IDS_EXECUTEERROR "An error or exception occurred while executing %1." + IDS_NOFUNCTION "Unable to find the function %1 in the file %2." + IDS_NODEPENDENCY "Unable to load the dependency file %1." + IDS_SETUPERROR "An error has occurred while setting up %1. This error has been logged, the installation will continue" + IDS_INCOMPLETE "The previous installation of an application has not been completed.\n\nLogon with an Administrator account to complete the installation." + IDS_SETUP "ReactOS Setup" + IDS_SERVICEERROR "Some services could not be started. Setup needs to restart your system in order to start the services." +END + +IDD_DIALOG DIALOGEX 0, 0, 206, 166 +STYLE DS_MODALFRAME | DS_NOIDLEMSG | WS_POPUP | WS_VISIBLE | WS_CAPTION +CAPTION "ReactOS Setup" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "ReactOS is now setting up the following items:", -1, 36, 13, 163, 11 + LISTBOX IDC_LB_ITEMS, 36, 32, 163, 127, LBS_NOTIFY | LBS_OWNERDRAWVARIABLE | LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_VSCROLL | WS_TABSTOP + ICON IDI_ICON, -1, 7, 7, 20, 20 +END Propchange: trunk/reactos/dll/win32/iernonce/lang/en-US.rc ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/reactos/dll/win32/iernonce/res/setup.ico URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/res/set…
============================================================================== Binary file - no diff available. Propchange: trunk/reactos/dll/win32/iernonce/res/setup.ico ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: trunk/reactos/dll/win32/iernonce/resource.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iernonce/resourc…
============================================================================== --- trunk/reactos/dll/win32/iernonce/resource.h (added) +++ trunk/reactos/dll/win32/iernonce/resource.h [iso-8859-1] Fri Mar 25 23:54:55 2016 @@ -0,0 +1,20 @@ +#pragma once + +#define IDI_ICON 1 + +#define IDD_DIALOG 1999 + +#define IDC_LB_ITEMS 2009 + +#define IDS_INVALIDFORMAT 100 +#define IDS_LOADERROR 101 +#define IDS_CALLERROR 102 +#define IDS_INCORRECTFORMAT 103 +#define IDS_NOEXPORT 104 +#define IDS_EXECUTEERROR 105 +#define IDS_NOFUNCTION 106 +#define IDS_NODEPENDENCY 107 +#define IDS_SETUPERROR 108 +#define IDS_INCOMPLETE 109 +#define IDS_SETUP 110 +#define IDS_SERVICEERROR 111 Propchange: trunk/reactos/dll/win32/iernonce/resource.h ------------------------------------------------------------------------------ svn:eol-style = native
8 years, 9 months
1
0
0
0
← Newer
1
2
3
4
5
6
7
...
27
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Results per page:
10
25
50
100
200