Skip to contentSkip to conversation

Linux 2.4.22-pre4

PATCH In review Marcelo Tosatti 12 participants 21 messages Jul 9, 2003 – Jul 30, 2003

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

We decided to include this new code quota code which allows usage of quotas with 32bit UID/GIDs.

Most Toshibas should work now due to an important ACPI fix.

Please help and test.

Summary of changes from v2.4.22-pre3 to v2.4.22-pre4
============================================

<[email protected]>:
o [NET] Attach inner qdiscs to TBF

<[email protected]>:
o sh64: Add FIOQSIZE definition
o sh64: Fixup Cayman IRQ reporting
o sh64: SH-5 PCI updates
o sh64: Fix privileged insn handling
o sh64: IDE support

<[email protected]>:
o [IPV4] display bootserver in /proc/net/pnp

<[email protected]>:
o [NET] Fix refcounting of dev->promiscuity for af_packet

<[email protected]>:
o [RESEND 5th] Fix oom killer braindamage

<[email protected]>:
o Export 'acpi_disabled' symbol to modules

Alan Cox <[email protected]>:
o Make ACPI work on lots more boxes
o config for new Nvidia AGP
o parisc sync up (resend of resend of resend ... 8))
o AGP update - new intel, add nvidia
o ebda check in ibm hotplug is insufficient
o update mpt fusion driver
o fix the eexpress
o move sdla to mod_timer
o add code for missing c7000 driver
o resend - fix security bits in binfmt_exec/som
o re-fix printk level for buffer cachehash
o exec part of security fix
o fix inverted dnotify
o fix definition of boot_DT
o add the new agp modes to the headers
o kernel/fork helper for exec security fix
o S/390 CLAW bits
o fix up z85230 queue wake logic

Benjamin Herrenschmidt <[email protected]>:
o ppc32: Fix races in low level adb drivers

Christoph Hellwig <[email protected]>:
o quota patch breaks kernel build

Christoph Hellwig <[email protected]>:
o new quota code
o fix Q_SYNC for dev == 0

David S. Miller <[email protected]>:
o [SPARC64]: sys_sparc32.c needs linux/quotacompat.h
o [FS]: Provide unshare_files() declaration and export to modules
o [SPARC]: SEMTIMEDOP for both Sparc ports

Marcelo Tosatti <[email protected]>:

  o Cset exclude: [email protected]|ChangeSet|20030707182325|08049
  o Remove bogus diff from drivers/char/Config.in
  o Changed EXTRAVERSION to -pre4
  o Cset exclude: [email protected]|ChangeSet|20030707180059|08076
  o Fixes ext3 quota/truncate oops
  o CRIS architecture update
  o Cset exclude: Remove NFS direct IO patches Cset exclude: [email protected]|ChangeSet|20030708095239|55752
  o Cset exclude: remove NFS direct IO patches Cset exclude: [email protected]|ChangeSet|20030706143259|16957

o Add missing fs/quota_v2.c file
o Comment out VIA_APOLLO_P4X400 handling in drm_agpsupport.h: Alan will fix that up later

Matthew Wilcox <[email protected]>:
o pci_name()

Mikael Pettersson <[email protected]>:
o i386 cpufeature.h cleanup + comment

Paul Mackerras <[email protected]>:
o PPC32: Minor updates to comments and processor register definitions
o PPC32: Minor boot wrapper cleanups
o PPC32: Define screen_info if CONFIG_FB is set for the sake of vesafb
o PPC32: Make __kernel_ino_t be unsigned long like on other architectures

Randy Dunlap <[email protected]>:
o make profile= doc. clearer

Rusty Russell <[email protected]>:
o Configure.help Polish translation location update
o unreachable code in drivers_media_video_cpia_pp.c
o 2.4 drivers_char_random.c fix sample shellscripts
o trivial patch
o fix sound doc typos
o fs_bfs_dir.c unused variables
o Decision PCCOM4_PCCOM8 serial support for 2.4.19
o Re: setrlimit incorrectly allows hard limits to exceed
o fix linewrap in Documentation_ia64_efirtc.txt
o fix linewrap in Documentation_arm_SA1100_CERF
o fix linewrap in Documentation_filesystems_befs.txt
o [2.5 patch] two small MTD fixes
o 2.4 patch for more debug safety
o esssolo1.c doesn't free resources correctly

Trond Myklebust <[email protected]>:
o Back out some congestion control changes that were causing trouble among other things for the "soft" mount option.

#1 lore raw
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

Uh ? What the h**l have you diffed ?

Ahhhh, is it reversed ???

;)

Signature · 4 lines
J.A. Magallon <[email protected]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))
#2 lore raw
Quoted 11 lines · J.A. Magallon
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

Uh ? What the h**l have you diffed ?

Ahhhh, is it reversed ???

nice touch ... I like it! ;)

Quoted 1 line

;)

#3 lore raw
In reply to Marcelo Tosatti
Quoted 1 line · Marcelo Tosatti

Here goes -pre4. It contains a lot of updates and fixes.

patch-2.4.22-pre4.bz2 is reversed (it applies with -R). please upload a correct one.

--alex--

Signature · 4 lines
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |
#4 lore raw

-pre4 fixed on ftp.kernel.org Re: Linux 2.4.22-pre4

Quoted 6 lines · Alex Romosan
Quoted 1 line · Marcelo Tosatti

Here goes -pre4. It contains a lot of updates and fixes.

patch-2.4.22-pre4.bz2 is reversed (it applies with -R). please upload a correct one.

The correct one is already at ftp.kernel.org.

Sorry for the silly mistake.

#5 lore raw
In reply to Marcelo Tosatti

patching file CREDITS
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file CREDITS.rej
patching file Documentation/Configure.help
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
20 out of 20 hunks ignored -- saving rejects to file Documentation/Configure.help.rej patching file Documentation/arm/SA1100/CERF
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file Documentation/arm/SA1100/CERF.rej patching file Documentation/cciss.txt
Reversed (or previously applied) patch detected! Assume -R? [n]
.
.
.
.

and goes on

Regards,
Onur Kucuk

#6 lore raw

PATCH 1/1 do_generic_direct_write: bad flag check

In reply to Marcelo Tosatti
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

mm/filemap.c renamed from mm/filemap.c.orig +1 -1
@@ -3223,7 +3223,7 @@
 	if (err != 0 || count == 0)
 		goto out;
 
-	if (!file->f_flags & O_DIRECT)
+	if (!(file->f_flags & O_DIRECT))
 		BUG();
 
 	remove_suid(inode);

...but sure the fix in -ac is better.

Signature · 4 lines
J.A. Magallon <[email protected]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))
#7 lore raw

Re: [PATCH] do_generic_direct_write: bad flag check

Quoted 20 lines · J.A. Magallon
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

mm/filemap.c renamed from mm/filemap.c.orig +1 -1
@@ -3223,7 +3223,7 @@
 	if (err != 0 || count == 0)
 		goto out;
 
-	if (!file->f_flags & O_DIRECT)
+	if (!(file->f_flags & O_DIRECT))
 		BUG();
 
 	remove_suid(inode);
Quoted 1 line

...but sure the fix in -ac is better.

What is the difference between the fix in -ac and yours?

#8 lore raw

Re: [PATCH] do_generic_direct_write: bad flag check

Quoted 21 lines · Marcelo Tosatti
Quoted 17 lines · J.A. Magallon
Quoted 4 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

mm/filemap.c renamed from mm/filemap.c.orig +1 -1
@@ -3223,7 +3223,7 @@
 	if (err != 0 || count == 0)
 		goto out;
 
-	if (!file->f_flags & O_DIRECT)
+	if (!(file->f_flags & O_DIRECT))
 		BUG();
 
Quoted 6 lines
Quoted 3 lines
mm/filemap.c renamed from mm/filemap.c.orig +0 -0
 	remove_suid(inode);

...but sure the fix in -ac is better.

What is the difference between the fix in -ac and yours?

There's a difference?? Looks the same to me. Unless there is part of the patch we don't see.

#9 lore raw
In reply to Marcelo Tosatti
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

Looks like the directory drivers/scsi/aic79xx/aicasm is still there...

Signature · 4 lines
J.A. Magallon <[email protected]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))
#10 lore raw

PATCH 1/1 hfsplus: group Apple FS's and help text

In reply to Marcelo Tosatti
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

Agreed with maintainer some time ago...

Signature · 4 lines
J.A. Magallon <[email protected]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))
#11 lore raw

Re: [PATCH] hfsplus: group Apple FS's and help text

Quoted 10 lines · J.A. Magallon
Quoted 5 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

Agreed with maintainer some time ago...

I should learn to write with hands instead of feet...

Documentation/Configure.help +16 -1
diff -ruN linux-2.4.21-rc1/Documentation/Configure.help linux-2.4.21-rc1-hfs/Documentation/Configure.help
@@ -16094,7 +16094,7 @@
   say M here and read <file:Documentation/modules.txt>.  If unsure,
   say N.
 
-Apple Macintosh file system support
+Apple HFS file system support
 CONFIG_HFS_FS
   If you say Y here, you will be able to mount Macintosh-formatted
   floppy disks and hard drive partitions with full read-write access.
@@ -16107,6 +16107,21 @@
   compile it as a module, say M here and read
   <file:Documentation/modules.txt>.
 
+Apple HFS+ (Extended HFS) file system support
+CONFIG_HFSPLUS_FS
+  If you say Y here, you will be able to mount extended format
+  Macintosh-formatted hard drive partitions with full read-write access.
+
+  This file system is often called HFS+ and was introduced with
+  MacOS 8. It includes all Mac specific filesystem data such as
+  data forks and creator codes, but it also has several UNIX
+  style features such as file ownership and permissions.
+
+  This file system is also available as a module ( = code which can
+  be inserted in and removed from the running kernel whenever you
+  want). The module is called hfsplus.o. If you want to compile it
+  as a module, say M here and read Documentation/modules.txt.
+
 ROM file system support
 CONFIG_ROMFS_FS
   This is a very small read-only file system mainly intended for
fs/Config.in +3 -3
diff -ruN linux-2.4.21-rc1/fs/Config.in linux-2.4.21-rc1-hfs/fs/Config.in
@@ -19,13 +19,13 @@
 
 dep_tristate 'Amiga FFS file system support (EXPERIMENTAL)' CONFIG_AFFS_FS $CONFIG_EXPERIMENTAL
 
-dep_tristate 'Apple Macintosh file system support (EXPERIMENTAL)' CONFIG_HFS_FS $CONFIG_EXPERIMENTAL
+dep_tristate 'Apple HFS file system support (EXPERIMENTAL)' CONFIG_HFS_FS $CONFIG_EXPERIMENTAL
+
+dep_tristate 'Apple HFS+ (Extended HFS) file system support (EXPERIMENTAL)' CONFIG_HFSPLUS_FS $CONFIG_EXPERIMENTAL
 
 dep_tristate 'BeOS file systemv(BeFS) support (read only) (EXPERIMENTAL)' CONFIG_BEFS_FS $CONFIG_EXPERIMENTAL
 dep_mbool '  Debug Befs' CONFIG_BEFS_DEBUG $CONFIG_BEFS_FS
 
-dep_tristate 'Apple Extended HFS file system support (EXPERIMENTAL)' CONFIG_HFSPLUS_FS $CONFIG_EXPERIMENTAL
-
 dep_tristate 'BFS file system support (EXPERIMENTAL)' CONFIG_BFS_FS $CONFIG_EXPERIMENTAL
 
 tristate 'Ext3 journalling file system support' CONFIG_EXT3_FS
Signature · 4 lines
J.A. Magallon <[email protected]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-pre2-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk))
#12 lore raw
In reply to Marcelo Tosatti
Quoted 10 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

We decided to include this new code quota code which allows usage of quotas with 32bit UID/GIDs.

Most Toshibas should work now due to an important ACPI fix.

Please help and test.

I use -pre3 with succes, only power down is currently not working (only the discs shutdown, no real poweroff). That's why I disabled apm and enabled apm in the kernel with -pre4, but that gives:

cd /lib/modules/2.4.21; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.21; fi

depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/ac_adapter/ospm_ac_adapter.o
depmod:         bm_osl_generate_event_R7dc74281
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_os_callocate_R112250e2
depmod:         bm_evaluate_simple_integer_R24e881a5
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         acpi_get_object_info_R1f1c0bf5
depmod:         bm_proc_root_R4cd2bdc3
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/battery/ospm_battery.o
depmod:         bm_osl_generate_event_R7dc74281
depmod:         bm_evaluate_object_Rba8b2406
depmod:         bm_extract_package_data_R4f1d6ef7
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_get_device_status_R336289aa
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_os_callocate_R112250e2
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         bm_cast_buffer_Rb5d8e04e
depmod:         bm_proc_root_R4cd2bdc3
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/button/ospm_button.o
depmod:         bm_osl_generate_event_R7dc74281
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_remove_fixed_event_handler_R2005e68a
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_os_callocate_R112250e2
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         acpi_install_fixed_event_handler_R5ac376a5
depmod:         bm_proc_root_R4cd2bdc3
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/ec/ospm_ec.o
depmod:         acpi_os_create_semaphore_R9f8733e2
depmod:         bm_evaluate_object_Rba8b2406
depmod:         acpi_ut_exit_R4403d3ee
depmod:         acpi_os_write_port_R09b33830
depmod:         acpi_os_printf_R3f6e4e15
depmod:         acpi_remove_gpe_handler_Rb73b58d2
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_acquire_global_lock_R4c66e50f
depmod:         acpi_ut_trace_R8d457864
depmod:         acpi_os_delete_semaphore_Re65a005c
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_remove_address_space_handler_Re1d5f864
depmod:         acpi_os_read_port_Rba23b567
depmod:         acpi_install_address_space_handler_Re37edf75
depmod:         acpi_os_callocate_R112250e2
depmod:         acpi_os_stall_R69005013
depmod:         bm_evaluate_simple_integer_R24e881a5
depmod:         acpi_os_wait_semaphore_R21625bfa
depmod:         acpi_release_global_lock_Rfe5dad1b
depmod:         acpi_install_gpe_handler_Raca91f91
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_os_signal_semaphore_R8cdbc08d
depmod:         acpi_os_queue_for_execution_R173029e0
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         acpi_get_current_resources_R2cd1ca5d
depmod:         bm_cast_buffer_Rb5d8e04e
depmod:         bm_proc_root_R4cd2bdc3
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/processor/ospm_processor.o
depmod:         acpi_get_timer_duration_Rf0e32829
depmod:         acpi_get_timer_Rc632950f
depmod:         bm_osl_generate_event_R7dc74281
depmod:         bm_copy_to_buffer_R7c44a383
depmod:         acpi_os_write_port_R09b33830
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_hw_register_bit_access_R5477a41e
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_os_read_port_Rba23b567
depmod:         acpi_evaluate_object_Red2bc50a
depmod:         acpi_os_callocate_R112250e2
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         acpi_fadt_Re06d275f
depmod:         bm_cast_buffer_Rb5d8e04e
depmod:         bm_proc_root_R4cd2bdc3
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/system/ospm_system.o
depmod:         acpi_get_system_info_R10162128
depmod:         acpi_set_firmware_waking_vector_Rd611232e
depmod:         acpi_os_free_R43b9bbb4
depmod:         acpi_get_name_R739160a5
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_hw_register_bit_access_R5477a41e
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_os_callocate_R112250e2
depmod:         acpi_get_table_R8b39872c
depmod:         acpi_gbl_FADT_R25e8cc23
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         acpi_leave_sleep_state_Rce4904a4
depmod:         acpi_enter_sleep_state_Rfe047ce6
depmod:         bm_proc_root_R4cd2bdc3
depmod:         acpi_hw_register_read_Rfb3ac6f4
depmod:         acpi_hw_obtain_sleep_type_register_data_Rb6158f6c
depmod: *** Unresolved symbols in /lib/modules/2.4.21/kernel/drivers/acpi/ospm/thermal/ospm_thermal.o
depmod:         bm_osl_generate_event_R7dc74281
depmod:         acpi_ut_exit_R4403d3ee
depmod:         bm_evaluate_reference_list_R40476eee
depmod:         acpi_os_free_R43b9bbb4
depmod:         bm_set_device_power_state_R0ecbe631
depmod:         acpi_get_name_R739160a5
depmod:         bm_request_R93dcc82b
depmod:         acpi_ut_status_exit_R0b687984
depmod:         acpi_ut_trace_R8d457864
depmod:         bm_get_device_info_Rfaeb2303
depmod:         bm_register_driver_R53392fa7
depmod:         acpi_evaluate_object_Red2bc50a
depmod:         acpi_os_callocate_R112250e2
depmod:         bm_evaluate_simple_integer_R24e881a5
depmod:         acpi_ut_debug_print_raw_Re9aabc61
depmod:         acpi_os_queue_for_execution_R173029e0
depmod:         acpi_ut_debug_print_Rac38b5ca
depmod:         bm_unregister_driver_R40fde1ec
depmod:         bm_proc_root_R4cd2bdc3

Relevant part of .config:
CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_DEBUG=y
CONFIG_ACPI_BUSMGR=y
CONFIG_ACPI_SYS=m
CONFIG_ACPI_CPU=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_AC=m
CONFIG_ACPI_EC=m
CONFIG_ACPI_CMBATT=m
CONFIG_ACPI_THERMAL=m
# CONFIG_APM is not set

Have fun,

Aschwin Marsman

--

aYniK Software Solutions         all You need is Knowledge
P.O. box 134                     NL-7600 AC Almelo - the Netherlands
[email protected]              http://www.aYniK.com
#13 lore raw

Hi !

Quoted 9 lines · Aschwin Marsman
Quoted 7 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

We decided to include this new code quota code which allows usage of quotas with 32bit UID/GIDs.

Quoted 7 lines
Quoted 3 lines

Most Toshibas should work now due to an important ACPI fix.

Please help and test.

I use -pre3 with succes, only power down is currently not working (only the discs shutdown, no real poweroff). That's why I disabled apm and enabled apm in the kernel with -pre4, but that gives:

I remember having had problems with ACPI because my power off didn't work. After reading through the code, I noticed that due to erroneous comparisons, some code path would never be executed, and/or some preparatory work before entering S5 would be done twice, or could not recover from error, I don't recall exactly. So I sent the two patches below to the acpi-devel list twice, but never got any reply.

I don't even know if they still apply, but you can try them anyway, they're simple.

If I recall correctly, the first one should be enough to poweroff with a simple "echo 5 > /proc/acpi/sleep", while the second one allows the system to use this for poweroff.

Cheers,
Willy

drivers/acpi/system.c renamed from drivers/acpi/system.c-orig +2 -1
@@ -180,7 +180,7 @@
 			return AE_ERROR;
 	}
 
-	if (state < ACPI_STATE_S5) {
+	if (state <= ACPI_STATE_S5) {
 		/* Tell devices to stop I/O and actually save their state.
 		 * It is theoretically possible that something could fail,
 		 * so handle that gracefully..
@@ -277,6 +277,7 @@
 
 	switch (state) {
 	case ACPI_STATE_S1:
+	case ACPI_STATE_S5:
 		barrier();
 		status = acpi_enter_sleep_state(state);
 		break;
drivers/acpi/system.c renamed from drivers/acpi/system.c-orig +1 -3
@@ -90,9 +90,7 @@
 static void
 acpi_power_off (void)
 {
-	acpi_enter_sleep_state_prep(ACPI_STATE_S5);
-	ACPI_DISABLE_IRQS();
-	acpi_enter_sleep_state(ACPI_STATE_S5);
+	acpi_suspend(ACPI_STATE_S5);
 }
 
 #endif /*CONFIG_PM*/
#14 lore raw

compile warnings

In reply to Marcelo Tosatti

Hi

"Nie ma takiego pliku ani katalogu" mean " no such file or directory" and "UWAGA: 1 z 13 wyliczonych sum kontrolnych się NIE zgadza" mean "1of 13 checked checksums is NOT correct."

#v+
[root@slack:/usr/src/linux-2.4.22-pre4#] make dep > /dev/null acsi.c:74:25: asm/atarihw.h: Nie ma takiego pliku ani katalogu acsi.c:75:27: asm/atariints.h: Nie ma takiego pliku ani katalogu acsi.c:76:28: asm/atari_acsi.h: Nie ma takiego pliku ani katalogu acsi.c:77:29: asm/atari_stdma.h: Nie ma takiego pliku ani katalogu acsi.c:78:29: asm/atari_stram.h: Nie ma takiego pliku ani katalogu au1000_gpio.c:41:24: asm/au1000.h: Nie ma takiego pliku ani katalogu au1000_gpio.c:42:29: asm/au1000_gpio.h: Nie ma takiego pliku ani katalogu hp_psaux.c:41:26: asm/hardware.h: Nie ma takiego pliku ani katalogu hp_psaux.c:43:21: asm/gsc.h: Nie ma takiego pliku ani katalogu In file included from hp_sdc.c:64:/usr/src/linux-2.4.22-pre4/include/linux/hp_sdc.h:45:26:
asm/hardware.h: Nie ma takiego pliku ani katalogu /usr/src/linux-2.4.22-pre4/include/linux/hp_sdc.h:288:2: #error No support for device registration on this arch yet. hp_sdc.c:76:21:asm/gsc.h: Nie ma takiego pliku ani katalogu In file included from i2c-algo-ite.c:50:
i2c-ite.h:36:31: asm/it8172/it8172.h: Nie ma takiego pliku ani katalogu
md5sum: UWAGA: 1 z 13 wyliczonych sum kontrolnych się NIE zgadza rtc.c:27:25: asm/machdep.h: Nie ma takiego pliku ani katalogu rtc.c:29:22: asm/time.h: Nie ma takiego pliku ani katalogu via-pmu.c:36:22: asm/prom.h: Nie ma takiego pliku ani katalogu via-pmu.c:37:25: asm/machdep.h: Nie ma takiego pliku ani katalogu via-pmu.c:41:26: asm/sections.h: Nie ma takiego pliku ani katalogu via-pmu.c:44:30: asm/pmac_feature.h: Nie ma takiego pliku ani katalogu via-pmu.c:47:26: asm/sections.h: Nie ma takiego pliku ani katalogu via-pmu.c:48:26: asm/cputable.h: Nie ma takiego pliku ani katalogu via-pmu.c:49:22: asm/time.h: Nie ma takiego pliku ani katalogu i2o_pci.c:393:1: warning: no newline at end of file
In file included from nubus_syms.c:8:
/usr/src/linux-2.4.22-pre4/include/linux/nubus.h:16:23: asm/nubus.h:
Nie ma takiego pliku ani katalogu
audio.c:41:25: asm/audioio.h: Nie ma takiego pliku ani katalogu amd7930.c:95:26: asm/openprom.h: Nie ma takiego pliku ani katalogu amd7930.c:96:23: asm/oplib.h: Nie ma takiego pliku ani katalogu amd7930.c:100:22: asm/sbus.h: Nie ma takiego pliku ani katalogu amd7930.c:102:25: asm/audioio.h: Nie ma takiego pliku ani katalogu dbri.c:54:26: asm/openprom.h: Nie ma takiego pliku ani katalogu dbri.c:55:23: asm/oplib.h: Nie ma takiego pliku ani katalogu dbri.c:59:22: asm/sbus.h: Nie ma takiego pliku ani katalogu dbri.c:62:25: asm/audioio.h: Nie ma takiego pliku ani katalogu su.c:78:23: asm/oplib.h: Nie ma takiego pliku ani katalogu su.c:80:22: asm/ebus.h: Nie ma takiego pliku ani katalogu bbc_i2c.c: 16:23: asm/oplib.h: Nie ma takiego pliku ani katalogu bbc_i2c.c: 17:22: asm/ebus.h: Nie ma takiego pliku ani katalogu bbc_i2c.c: 18:26: asm/spitfire.h: Nie ma takiego pliku ani katalogu bbc_i2c.c: 19:21: asm/bbc.h: Nie ma takiego pliku ani katalogu In file included from bbc_i2c.c:21:
bbc_i2c.h:5:22: asm/ebus.h: Nie ma takiego pliku ani katalogu
In file included from 53c700.c:142:
53c700.h:40:2: #error "Config.in must define either CONFIG_53C700_IO_MAPPED or CONFIG_53C700_MEM_MAPPED to use this scsi core." 53c700.c:163:22: 53c700_d.h: Nie ma takiego pliku ani katalogu fas216.c:52:23: asm/ecard.h: Nie ma takiego pliku ani katalogu newport.c:11:21: asm/gfx.h: Nie ma takiego pliku ani katalogu newport.c:12:21: asm/ng1.h: Nie ma takiego pliku ani katalogu rrm.c:15:21: asm/rrm.h: Nie ma takiego pliku ani katalogu shmiq.c:57:23: asm/shmiq.h: Nie ma takiego pliku ani katalogu shmiq.c:58:21: asm/gfx.h: Nie ma takiego pliku ani katalogu usema.c:38:25: asm/usioctl.h: Nie ma takiego pliku ani katalogu tc.c:19:27: asm/addrspace.h: Nie ma takiego pliku ani katalogu tc.c:21:30: asm/dec/machtype.h: Nie ma takiego pliku ani katalogu tc.c:22:28: asm/dec/tcinfo.h: Nie ma takiego pliku ani katalogu tc.c:23:30: asm/dec/tcmodule.h: Nie ma takiego pliku ani katalogu tc.c:24:32: asm/dec/interrupts.h: Nie ma takiego pliku ani katalogu tc.c:25:25: asm/paccess.h: Nie ma takiego pliku ani katalogu sa1100fb.c:164:27: linux/cpufreq.h: Nie ma takiego pliku ani katalogu sa1100fb.c:166:26: asm/hardware.h: Nie ma takiego pliku ani katalogu sa1100fb.c:169:28: asm/mach-types.h: Nie ma takiego pliku ani katalogu sa1100fb.c:171:30: asm/arch/assabet.h: Nie ma takiego pliku ani katalogu sticore.c:27:26: asm/hardware.h: Nie ma takiego pliku ani katalogu stifb.c:76:62: asm/grfioctl.h: Nie ma takiego pliku ani katalogu In file included from zorro.c:17:
/usr/src/linux-2.4.22-pre4/include/linux/zorro.h:158:23: asm/zorro.h:
Nie ma takiego pliku ani katalogu
zorro.c:20:25: asm/amigahw.h: Nie ma takiego pliku ani katalogu crc32.c:34:24: crc32table.h: Nie ma takiego pliku ani katalogu #v-

[root@slack:/usr/src/linux-2.4.22-pre4#] make bzImage > /dev/null
md5sum: UWAGA: 1 z 13 wyliczonych sum kontrolnych się NIE zgadza
md5sum: UWAGA: 1 z 13 wyliczonych sum kontrolnych się NIE zgadza

Is it normal?

Signature · 3 lines
registered Linux user 261525 | Wszystko jest trudne przy
gg [email protected]|    odpowiednim stopniu
RMRMG signature version 0.0.2|        abstrakcji
#15 lore raw

Re: compile warnings

Quoted 5 lines · El Thu, 10 Jul 2003 17:51:35 +0200 Rafa³ 'rmrmg' Roszak <[email protected]> escribió:

Hi

"Nie ma takiego pliku ani katalogu" mean " no such file or directory" and "UWAGA: 1 z 13 wyliczonych sum kontrolnych siê NIE zgadza" mean "1of 13 checked checksums is NOT correct."

could you recompile with "LC_ALL='C' make whatever" ?

#16 lore raw

Re: compile warnings

begin Diego Calleja García <[email protected]> quote:

Quoted 1 line

could you recompile with "LC_ALL='C' make whatever" ?

#v+
[root@slack:/usr/src/linux-2.4.22-pre4#]LC_ALL='C' make dep > /dev/null
acsi.c:74:25: asm/atarihw.h: No such file or directory acsi.c:75:27: asm/atariints.h: No such file or directory acsi.c:76:28: asm/atari_acsi.h: No such file or directory acsi.c:77:29: asm/atari_stdma.h: No such file or directory acsi.c:78:29: asm/atari_stram.h: No such file or directory au1000_gpio.c:41:24: asm/au1000.h: No such file or directory au1000_gpio.c:42:29: asm/au1000_gpio.h: No such file or directory hp_psaux.c:41:26: asm/hardware.h: No such file or directory hp_psaux.c:43:21: asm/gsc.h: No such file or directory
In file included from hp_sdc.c:64:
/usr/src/linux-2.4.21/include/linux/hp_sdc.h:45:26: asm/hardware.h: No such file or directory/usr/src/linux-2.4.21/include/linux/hp_sdc.h:288:2: #error No support for device registration on this arch yet. hp_sdc.c:76:21:
asm/gsc.h: No such file or directory In file included from i2c-algo-ite.c:50: i2c-ite.h:36:31: asm/it8172/it8172.h: No such file or directory
md5sum: WARNING: 1 of 13 computed checksums did NOT match rtc.c:27:25: asm/machdep.h: No such file or directory rtc.c:29:22: asm/time.h: No such file or directory via-pmu.c:36:22: asm/prom.h: No such file or directory via-pmu.c:37:25: asm/machdep.h: No such file or directory via-pmu.c:41:26: asm/sections.h: No such file or directory via-pmu.c:44:30: asm/pmac_feature.h: No such file or directory via-pmu.c:47:26: asm/sections.h: No such file or directory via-pmu.c:48:26: asm/cputable.h: No such file or directory via-pmu.c:49:22: asm/time.h: No such file or directory i2o_pci.c:393:1: warning: no newline at end of file
In file included from nubus_syms.c:8:
/usr/src/linux-2.4.21/include/linux/nubus.h:16:23: asm/nubus.h: No such file or directory audio.c:41:25: asm/audioio.h: No such file or directory amd7930.c:95:26: asm/openprom.h: No such file or directory amd7930.c:96:23: asm/oplib.h: No such file or directory amd7930.c:100:22: asm/sbus.h: No such file or directory amd7930.c:102:25: asm/audioio.h: No such file or directory dbri.c:54:26: asm/openprom.h: No such file or directory dbri.c:55:23: asm/oplib.h: No such file or directory dbri.c:59:22: asm/sbus.h: No such file or directory dbri.c:62:25: asm/audioio.h: No such file or directory su.c:78:23: asm/oplib.h: No such file or directory su.c:80:22: asm/ebus.h: No such file or directory bbc_i2c.c:16:23: asm/oplib.h: No such file or directory bbc_i2c.c:17:22: asm/ebus.h: No such file or directory bbc_i2c.c:18:26: asm/spitfire.h: No such file or directory bbc_i2c.c:19:21: asm/bbc.h: No such file or directory
In file included from bbc_i2c.c:21:
bbc_i2c.h:5:22: asm/ebus.h: No such file or directory
In file included from 53c700.c:142:
53c700.h:40:2: #error "Config.in must define either CONFIG_53C700_IO_MAPPED or CONFIG_53C700_MEM_MAPPED to use this scsi core."
53c700.c:163:22: 53c700_d.h: No such file or directory fas216.c:52:23: asm/ecard.h: No such file or directory newport.c:11:21: asm/gfx.h: No such file or directory newport.c:12:21: asm/ng1.h: No such file or directory rrm.c:15:21: asm/rrm.h: No such file or directory shmiq.c:57:23: asm/shmiq.h: No such file or directory shmiq.c:58:21: asm/gfx.h: No such file or directory usema.c:38:25: asm/usioctl.h: No such file or directory tc.c:19:27: asm/addrspace.h: No such file or directory tc.c:21:30: asm/dec/machtype.h: No such file or directory tc.c:22:28: asm/dec/tcinfo.h: No such file or directory tc.c:23:30: asm/dec/tcmodule.h: No such file or directory tc.c:24:32: asm/dec/interrupts.h: No such file or directory tc.c:25:25: asm/paccess.h: No such file or directory sa1100fb.c:164:27: linux/cpufreq.h: No such file or directory sa1100fb.c:166:26: asm/hardware.h: No such file or directory sa1100fb.c:169:28: asm/mach-types.h: No such file or directory sa1100fb.c:171:30: asm/arch/assabet.h: No such file or directory sticore.c:27:26: asm/hardware.h: No such file or directory stifb.c:76:62: asm/grfioctl.h: No such file or directory
In file included from zorro.c:17:
/usr/src/linux-2.4.21/include/linux/zorro.h:158:23: asm/zorro.h:
No such file or directory
zorro.c:20:25: asm/amigahw.h:
No such file or directory
crc32.c:34:24: crc32table.h: No such file or directory
#v-

[root@slack:/usr/src/linux-2.4.22-pre4#] LC_ALL='C' make bzImage > /dev/null
md5sum: WARNING: 1 of 13 computed checksums did NOT match
md5sum: WARNING: 1 of 13 computed checksums did NOT match

Signature · 3 lines
registered Linux user 261525 | Wszystko jest trudne przy
gg [email protected]|    odpowiednim stopniu
RMRMG signature version 0.0.2|        abstrakcji
#17 lore raw

2.4.22-pre4: devfs on initrd stays busy after pivot_root

In reply to Marcelo Tosatti

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Quoted 11 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

We decided to include this new code quota code which allows usage of quotas with 32bit UID/GIDs.

Most Toshibas should work now due to an important ACPI fix.

Please help and test.

Beginning with 2.4.22-pre4 I can't unmount devfs on my initial ramdisk anymore because of EBUSY

I use initrd and let the kernel mount devfs on /dev on boot. I then set up all the drivers needed to mount the real root device, do a "pivot_root" and continue with /sbin/init, just like it is described in Documentation/initrd.txt

When the boot process is finished, filesystems are mounted as follows:

root@install:~ {520} $ mount
rootfs on / type rootfs (rw)
/dev/root on /initrd type romfs (ro)
none on /initrd/dev type devfs (rw) /dev/ide/host0/bus0/target0/lun0/part3 on / type ext2 (rw) devfs on /dev type devfs (rw)
proc on /proc type proc (rw)

I then want to get rid of everything mounted under /initrd

root@install:~ {521} $ umount /initrd/dev
umount: /initrd/dev: device is busy

This used to work just fine with 2.4.21 and 2.4.22-pre[123]

It does not work with 2.4.22-pre4 and 2.4.22-pre8 Also, with linux-2.4.21-ac4 unmounting /initrd/dev does not work.

I made a diff between pre3 and pre4 and some changes in fs/exec.c, fs/binfmt_elf.c and kernel/fork.c (around new function "unshare_files()") look suspicious to me. I find these changes in both 2.4.21-ac4 and 2.4.22-pre4 patchset (but I'm not a kernel hacker, so I might be wrong)

Any idea anyone?

- - andreas

- --

Andreas Haumer                     | mailto:[email protected]
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/Jn/MxJmyeGcXPhERApunAKCIUOiZh8kSaeJEXHwj06yBlvMnhQCfe9M3 hfmnS3VtpDx5sCMq5nlJLmU=
=1Tnh
-----END PGP SIGNATURE-----

#18 lore raw

Re: 2.4.22-pre4: devfs on initrd stays busy after pivot_root

Quoted 7 lines · Andreas Haumer

Beginning with 2.4.22-pre4 I can't unmount devfs on my initial ramdisk anymore because of EBUSY

I use initrd and let the kernel mount devfs on /dev on boot. I then set up all the drivers needed to mount the real root device, do a "pivot_root" and continue with /sbin/init, just like it is described in Documentation/initrd.txt

The kernel opens /dev/tty but doesn't close it on the thread that isnt forking and execing init. Its on my todo list. Basically a crazy piece of the old setup broke because we imposed sanity. Fixing it however may require a little thought

#19 lore raw

Re: 2.4.22-pre4: devfs on initrd stays busy after pivot_root

In reply to Andreas Haumer
Quoted 47 lines · Andreas Haumer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Quoted 11 lines · Marcelo Tosatti

Hi,

Here goes -pre4. It contains a lot of updates and fixes.

We decided to include this new code quota code which allows usage of quotas with 32bit UID/GIDs.

Most Toshibas should work now due to an important ACPI fix.

Please help and test.

Beginning with 2.4.22-pre4 I can't unmount devfs on my initial ramdisk anymore because of EBUSY

I use initrd and let the kernel mount devfs on /dev on boot. I then set up all the drivers needed to mount the real root device, do a "pivot_root" and continue with /sbin/init, just like it is described in Documentation/initrd.txt

When the boot process is finished, filesystems are mounted as follows:

root@install:~ {520} $ mount
rootfs on / type rootfs (rw)
/dev/root on /initrd type romfs (ro)
none on /initrd/dev type devfs (rw) /dev/ide/host0/bus0/target0/lun0/part3 on / type ext2 (rw) devfs on /dev type devfs (rw)
proc on /proc type proc (rw)

I then want to get rid of everything mounted under /initrd

root@install:~ {521} $ umount /initrd/dev
umount: /initrd/dev: device is busy

This used to work just fine with 2.4.21 and 2.4.22-pre[123]

It does not work with 2.4.22-pre4 and 2.4.22-pre8 Also, with linux-2.4.21-ac4 unmounting /initrd/dev does not work.

Quoted 7 lines

I made a diff between pre3 and pre4 and some changes in fs/exec.c, fs/binfmt_elf.c and kernel/fork.c (around new function "unshare_files()") look suspicious to me. I find these changes in both 2.4.21-ac4 and 2.4.22-pre4 patchset (but I'm not a kernel hacker, so I might be wrong)

Any idea anyone?

there is an update of devfs available since 2.4.20 or so, but it hasn't made it in the marcelo tree yet

I don't remember the original path, but it was in one of Richard Goochs directories on kernel.org, anyway, you can grab it from the following url:

http://www.13thfloor.at/VServer/patches-2.4.22-p7c17/04_devfs-patch-v199.17.diff.bz2

I don't know if this solves your problems or not, but I use this patch since it is available, and had no issues with devfs, so I would suggest you give it a try ...

best,
Herbert

Quoted 21 lines

- - andreas

- --

Andreas Haumer                     | mailto:[email protected]
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/Jn/MxJmyeGcXPhERApunAKCIUOiZh8kSaeJEXHwj06yBlvMnhQCfe9M3 hfmnS3VtpDx5sCMq5nlJLmU=
=1Tnh
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#20 lore raw

Re: 2.4.22-pre4: devfs on initrd stays busy after pivot_root

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Thanks for your reply!

Quoted 2 lines · Herbert Pötzl

On Tue, Jul 29, 2003 at 04:08:23PM +0200, Andreas Haumer wrote:

[...]

Quoted 4 lines
Quoted 4 lines

Beginning with 2.4.22-pre4 I can't unmount devfs on my initial ramdisk anymore because of EBUSY

[...]

Quoted 8 lines

there is an update of devfs available since 2.4.20 or so, but it hasn't made it in the marcelo tree yet

I don't remember the original path, but it was in
one of Richard Goochs directories on kernel.org,
anyway, you can grab it from the following url:

I know. The location of Richard's latest devfs patch for linux 2.4 is
<http://www.kernel.org/pub/linux/kernel/people/rgooch/v2.4/>

But this patch doesn't solve the problem.
In fact, it's not a problem with devfs itself.

I just reproduced it for linux-2.4.22-pre4 with an initial ramdisk and legacy device files. I created the necessary device files on the initrd fs, booted with "devfs=nomount" and mounted devfs after pivot_root

root@install:~ {501} $ mount
rootfs on / type rootfs (rw)
/dev/root on /initrd type romfs (ro)
/dev/hda3 on / type ext2 (rw)
devfs on /dev type devfs (rw)
proc on /proc type proc (rw)

root@install:~ {502} $ umount /initrd
umount: /initrd: device is busy

Now look at this:

root@install:~ {514} $ find /initrd/ -exec fuser -v {} \;

USER PID ACCESS COMMAND
/initrd/ root 1883 ..c.. find
root kernel mount /initrd

USER PID ACCESS COMMAND

/initrd/dev/console  root          2 f....  keventd
                     root          3 f....  ksoftirqd_CPU0
                     root          4 f....  kswapd
                     root          5 f....  bdflush
                     root          6 f....  kupdated
                     root        259 f....  kjournald
                     root        260 f....  kjournald
                     root        261 f....  kjournald
                     root        262 f....  kjournald
                     root        404 f....  khubd
                     root        776 f....  rpciod
                     root        780 f....  lockd
                     root        855 f....  nfsd
                     root        856 f....  nfsd
                     root        857 f....  nfsd
                     root        858 f....  nfsd
                     root        859 f....  nfsd
                     root        860 f....  nfsd
                     root        861 f....  nfsd
                     root        862 f....  nfsd

root@install:~ {515} $ fuser -v /dev/console

USER PID ACCESS COMMAND
/dev/console root 381 f.... syslogd

root@install:~ {522} $ lsof /initrd/dev/console
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

keventd     2 root    0u   CHR    5,1      681424 /initrd/dev/console
keventd     2 root    1u   CHR    5,1      681424 /initrd/dev/console
keventd     2 root    2u   CHR    5,1      681424 /initrd/dev/console
ksoftirqd   3 root    0u   CHR    5,1      681424 /initrd/dev/console
ksoftirqd   3 root    1u   CHR    5,1      681424 /initrd/dev/console
ksoftirqd   3 root    2u   CHR    5,1      681424 /initrd/dev/console
kswapd      4 root    0u   CHR    5,1      681424 /initrd/dev/console
kswapd      4 root    1u   CHR    5,1      681424 /initrd/dev/console
kswapd      4 root    2u   CHR    5,1      681424 /initrd/dev/console
bdflush     5 root    0u   CHR    5,1      681424 /initrd/dev/console
bdflush     5 root    1u   CHR    5,1      681424 /initrd/dev/console
bdflush     5 root    2u   CHR    5,1      681424 /initrd/dev/console
kupdated    6 root    0u   CHR    5,1      681424 /initrd/dev/console
kupdated    6 root    1u   CHR    5,1      681424 /initrd/dev/console
kupdated    6 root    2u   CHR    5,1      681424 /initrd/dev/console
kjournald 259 root    0u   CHR    5,1      681424 /initrd/dev/console
kjournald 259 root    1u   CHR    5,1      681424 /initrd/dev/console
kjournald 259 root    2u   CHR    5,1      681424 /initrd/dev/console
kjournald 260 root    0u   CHR    5,1      681424 /initrd/dev/console
kjournald 260 root    1u   CHR    5,1      681424 /initrd/dev/console
kjournald 260 root    2u   CHR    5,1      681424 /initrd/dev/console
kjournald 261 root    0u   CHR    5,1      681424 /initrd/dev/console
kjournald 261 root    1u   CHR    5,1      681424 /initrd/dev/console
kjournald 261 root    2u   CHR    5,1      681424 /initrd/dev/console
kjournald 262 root    0u   CHR    5,1      681424 /initrd/dev/console
kjournald 262 root    1u   CHR    5,1      681424 /initrd/dev/console
kjournald 262 root    2u   CHR    5,1      681424 /initrd/dev/console
khubd     404 root    0u   CHR    5,1      681424 /initrd/dev/console
khubd     404 root    1u   CHR    5,1      681424 /initrd/dev/console
khubd     404 root    2u   CHR    5,1      681424 /initrd/dev/console
rpciod    776 root    0u   CHR    5,1      681424 /initrd/dev/console
rpciod    776 root    1u   CHR    5,1      681424 /initrd/dev/console
rpciod    776 root    2u   CHR    5,1      681424 /initrd/dev/console
lockd     780 root    0u   CHR    5,1      681424 /initrd/dev/console
lockd     780 root    1u   CHR    5,1      681424 /initrd/dev/console
lockd     780 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      855 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      855 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      855 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      856 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      856 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      856 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      857 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      857 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      857 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      858 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      858 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      858 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      859 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      859 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      859 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      860 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      860 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      860 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      861 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      861 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      861 root    2u   CHR    5,1      681424 /initrd/dev/console
nfsd      862 root    0u   CHR    5,1      681424 /initrd/dev/console
nfsd      862 root    1u   CHR    5,1      681424 /initrd/dev/console
nfsd      862 root    2u   CHR    5,1      681424 /initrd/dev/console

Those processes accessing /initrd/dev/console are all kernel threads. Processes with PID>100 were even started _after_ the call to pivot_root

It looks like it's not just the kernel init thread which isn't giving up its console device...

- - andreas

- --

Andreas Haumer                     | mailto:[email protected]
*x Software + Systeme              | http://www.xss.co.at/
Karmarschgasse 51/2/20             | Tel: +43-1-6060114-0
A-1100 Vienna, Austria             | Fax: +43-1-6060114-71

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/J5XbxJmyeGcXPhERAny8AJ49TI0MNeQsZOPChraBjWskpybRPQCgsGoh zHIKP5qoQ3dxlwXsUXWR3Hg=
=SiEn
-----END PGP SIGNATURE-----