OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/3] proc: sysctl: rename proc_doutsstring to proc_do_uts_string
Re: [PATCH 3/3] proc: make UTS-related sysctls utsns aware [message #3376 is a reply to message #3367] Thu, 25 May 2006 03:51 Go to previous messageGo to previous message
Sam Vilain is currently offline  Sam Vilain
Messages: 73
Registered: February 2006
Member
Andrew Morton wrote:
> Sam Vilain <sam.vilain@catalyst.net.nz> wrote:
>
>>Add a new function proc_do_utsns_string, that derives the pointer
>> into the uts_namespace->name structure, currently based on the
>> filename of the dentry in /proc, and calls _proc_do_string()
>> ---
>> RFC only - not tested yet. builds, though
>
>
> So... is it tested yet?

No, I was waiting for feedback

(hackhackhack)

ok, now it's tested

root@ken:~# ./chuts /bin/bash
root@ken:~# uname -a
Linux ken 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root@ken:~# hostname bert
root@ken:~# uname -a
Linux bert 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root@ken:~# exit
root@ken:~# uname -a
Linux ken 2.6.17-rc4-mm2-g2214c350 #8 PREEMPT Thu May 25 09:32:27 NZST
2006 x86_64 GNU/Linux
root@ken:~# cat /proc/sys/kernel/hostname
ken
root@ken:~# ./chuts /bin/sh -c "hostname bert && cat
/proc/sys/kernel/hostname"
bert
root@ken:~# cat /proc/sys/kernel/hostname
ken
root@ken:~# ./chuts /bin/sh -c "echo 'bob' > /proc/sys/kernel/hostname
&& uname -n"
bob
root@ken:~# uname -n
ken


> You owe me three Signed-off-by:s, please.

They should be coming your way seperately very shortly. I've revised
the third one (namespaces-utsname-sysctl-hack-cleanup-2.patch), see my
reply to Dave Hansen's e-mail. The revised version is the one I tested.
--
Sam Vilain, Catalyst IT (NZ) Ltd.
phone: +64 4 499 2267 cell: +64 21 55 40 50
DDI: +64 4 803 2342 PGP ID: 0x66B25843
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] namespaces: uts_ns: make information visible via /proc/PID/uts directory
Next Topic: Beta openvz kernel compile error
Goto Forum:
  


Current Time: Wed Aug 14 23:54:12 GMT 2024

Total time taken to generate the page: 0.02685 seconds