Re: [RFC] Rollback FS
On 2013-10-20 15:06:33 (+0800), jiaweiwei wrote: > We could implement a File System to record all the operations which > send to VFS. Then when you think you have done a mistake command, you > could rollback from this File System. > > This is just a RFC, I would give detail implementations. Would anyone > please give me some suggestions? Thanks very much. I think it needs to be fleshed out a lot more. For example, how would you tell it to roll back without a functional libc? How does it differ from the snapshot feature in btrfs? Regards, Kristof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [RFC] Rollback FS
On 2013-10-20 15:06:33 (+0800), jiaweiwei jiaweiwei.xi...@gmail.com wrote: We could implement a File System to record all the operations which send to VFS. Then when you think you have done a mistake command, you could rollback from this File System. This is just a RFC, I would give detail implementations. Would anyone please give me some suggestions? Thanks very much. I think it needs to be fleshed out a lot more. For example, how would you tell it to roll back without a functional libc? How does it differ from the snapshot feature in btrfs? Regards, Kristof -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: lockdep warnings in ipv6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2008-02-24 13:10:58 (+0100), Jan Engelhardt <[EMAIL PROTECTED]> wrote: > Hi, > > > when doing IPv6 (ping6, ssh otherhost, etc.), lockdep spews a warning in > 2.6.25-rc2 on the target. CONFIG_..._FRAME_POINTER is off, I think that's the same bug I ran into. It was introduced in 69cc64d8d9 and reversed in 9ff56607468. I think Linus' tree has the reversal by now. Kristof -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHwW1CUEZ9DhGwDugRAkVJAKCFxUjwfQNTtAX0Z5OquJRyNimmCgCbBgio 0voGZL/B6iaz5kSLgTbV2EY= =CPho -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/
Re: lockdep warnings in ipv6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2008-02-24 13:10:58 (+0100), Jan Engelhardt [EMAIL PROTECTED] wrote: Hi, when doing IPv6 (ping6, ssh otherhost, etc.), lockdep spews a warning in 2.6.25-rc2 on the target. CONFIG_..._FRAME_POINTER is off, I think that's the same bug I ran into. It was introduced in 69cc64d8d9 and reversed in 9ff56607468. I think Linus' tree has the reversal by now. Kristof -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHwW1CUEZ9DhGwDugRAkVJAKCFxUjwfQNTtAX0Z5OquJRyNimmCgCbBgio 0voGZL/B6iaz5kSLgTbV2EY= =CPho -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/
Re: compile error in 2.6.24-rc1-git6 HEAD is on ea45d15394c57cb214aef8e6d40976c128995d43
On 2007-10-30 21:44:18 (+0100), Oliv?r Pint?r <[EMAIL PROTECTED]> wrote: > CHECK include/linux/tipc_config.h > /home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/tipc_config.h > requires linux/string.h, which does not exist in exported headers > make[3]: *** > [/home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/.check.tipc_config.h] > Error 1 > make[2]: *** [linux] Error 2 > make[1]: *** [headers_check] Error 2 > make: *** [vmlinux] Error 2 It was broken in commit 502ef38da15d817f8e67acefc12dc2212f7f8aa1 Take a look at http://bugzilla.kernel.org/show_bug.cgi?id=9260 for more details. Kristof pgp7P4zQmsXZ3.pgp Description: PGP signature
Re: [PATCH] several returns before unlocking in lmc_ioctl
On 2007-10-30 20:15:12 (+0100), Roel Kluin <[EMAIL PROTECTED]> wrote: > Kristof Provost wrote: > > I think you have an extra curly brace there. It breaks compile on my > > system. > > You are right. thanks for notifying me and sorry for the trouble. > please revert my patch (b463d40cdc436a12799a60a1d6ff1941a70a5bb6) > > and try instead: This seems to compile just fine. I'm afraid I can't test it though. I don't actually have that hardware. I mistakingly left it turned on, so I noticed the compile error. Kristof pgpJRZOoa0KHW.pgp Description: PGP signature
Re: [PATCH] several returns before unlocking in lmc_ioctl
On 2007-10-23 03:47:48 (+0200), Roel Kluin <[EMAIL PROTECTED]> wrote: > I think we should keep the lmc_tracing. Use this patch instead. > > -- > Several returns before unlocking in lmc_ioctl > > Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> > --- > diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c > index 5ea8772..64eb578 100644 > @@ -229,9 +234,10 @@ int lmc_ioctl (struct net_device *dev, struct ifreq > *ifr, int cmd) /*fold00*/ > sc->lmc_xinfo.Magic1 = 0xDEADBEEF; > > if (copy_to_user(ifr->ifr_data, >lmc_xinfo, > - sizeof (struct lmc_xinfo))) > -return -EFAULT; > -ret = 0; > + sizeof(struct lmc_xinfo))) { > + ret = -EFAULT; > + else > + ret = 0; I think you have an extra curly brace there. It breaks compile on my system. Kristof pgpKBu1cOlvRi.pgp Description: PGP signature
Re: [PATCH] several returns before unlocking in lmc_ioctl
On 2007-10-23 03:47:48 (+0200), Roel Kluin [EMAIL PROTECTED] wrote: I think we should keep the lmc_tracing. Use this patch instead. -- Several returns before unlocking in lmc_ioctl Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c index 5ea8772..64eb578 100644 snip @@ -229,9 +234,10 @@ int lmc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/ sc-lmc_xinfo.Magic1 = 0xDEADBEEF; if (copy_to_user(ifr-ifr_data, sc-lmc_xinfo, - sizeof (struct lmc_xinfo))) -return -EFAULT; -ret = 0; + sizeof(struct lmc_xinfo))) { + ret = -EFAULT; + else + ret = 0; I think you have an extra curly brace there. It breaks compile on my system. Kristof pgpKBu1cOlvRi.pgp Description: PGP signature
Re: [PATCH] several returns before unlocking in lmc_ioctl
On 2007-10-30 20:15:12 (+0100), Roel Kluin [EMAIL PROTECTED] wrote: Kristof Provost wrote: I think you have an extra curly brace there. It breaks compile on my system. You are right. thanks for notifying me and sorry for the trouble. please revert my patch (b463d40cdc436a12799a60a1d6ff1941a70a5bb6) and try instead: This seems to compile just fine. I'm afraid I can't test it though. I don't actually have that hardware. I mistakingly left it turned on, so I noticed the compile error. Kristof pgpJRZOoa0KHW.pgp Description: PGP signature
Re: compile error in 2.6.24-rc1-git6 HEAD is on ea45d15394c57cb214aef8e6d40976c128995d43
On 2007-10-30 21:44:18 (+0100), Oliv?r Pint?r [EMAIL PROTECTED] wrote: CHECK include/linux/tipc_config.h /home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/tipc_config.h requires linux/string.h, which does not exist in exported headers make[3]: *** [/home/oliver/develop/kernel/v2.6.24-git1-git6+/usr/include/linux/.check.tipc_config.h] Error 1 make[2]: *** [linux] Error 2 make[1]: *** [headers_check] Error 2 make: *** [vmlinux] Error 2 It was broken in commit 502ef38da15d817f8e67acefc12dc2212f7f8aa1 Take a look at http://bugzilla.kernel.org/show_bug.cgi?id=9260 for more details. Kristof pgp7P4zQmsXZ3.pgp Description: PGP signature
Re: [BUG] memory leak in dm
On 2007-10-16 15:23:46 (+0200), Jan-Simon M?ller <[EMAIL PROTECTED]> wrote: > Am Dienstag 16 Oktober 2007 13:44:58 schrieb Jens Axboe: > > Please try with this patch from Neil. > Tried the patch. Now its usable - as far as i can say. Compiled a fresh > kernel > to "stress" the system (make -j3). > Without the patch the system had freezed after some minutes during compile. Same here. As far as I can tell it's fixed. Thanks, Kristof signature.asc Description: Digital signature
[BUG] memory leak in dm
Hi, I'm seeing a serious memory leak whenever I use my /home partition. It's an encrypted partition using dm-crypt. Simply running 'stress -d 5' is enough to exhaust the memory in a few minutes. When I stop 'stress' the memory isn't returned. This doesn't seem to happen when I run stress on a normal (no dm and no encryption) partition. Here's the output of 'free -m' before and after 'stress -d 1 -t 5' Before: total used free sharedbuffers cached Mem: 751584167 0 14235 -/+ buffers/cache:334416 Swap: 980 0980 After: total used free sharedbuffers cached Mem: 751619131 0 12169 -/+ buffers/cache:437313 Swap: 980 0980 That's 100Mb of RAM gone in 5 seconds. I'm using a standard x86 centrino laptop. The log files don't reveal anything suspicious. git bisect tells me it started in one of these commits: d24517d793f21edab1a411da95f2c45cb88a84aa, 5bb23a688b2de23d7765a1dd439d89c038378978 and 9cc54d40b8ca01fcefc9151044b6996565061d90. The bug is still present in the last version of Linus' tree (65a6ec0d72a07f16719e9b7a96e1c4bae044b591) Let me know if I can provide more information. Regards, Kristof signature.asc Description: Digital signature
[BUG] memory leak in dm
Hi, I'm seeing a serious memory leak whenever I use my /home partition. It's an encrypted partition using dm-crypt. Simply running 'stress -d 5' is enough to exhaust the memory in a few minutes. When I stop 'stress' the memory isn't returned. This doesn't seem to happen when I run stress on a normal (no dm and no encryption) partition. Here's the output of 'free -m' before and after 'stress -d 1 -t 5' Before: total used free sharedbuffers cached Mem: 751584167 0 14235 -/+ buffers/cache:334416 Swap: 980 0980 After: total used free sharedbuffers cached Mem: 751619131 0 12169 -/+ buffers/cache:437313 Swap: 980 0980 That's 100Mb of RAM gone in 5 seconds. I'm using a standard x86 centrino laptop. The log files don't reveal anything suspicious. git bisect tells me it started in one of these commits: d24517d793f21edab1a411da95f2c45cb88a84aa, 5bb23a688b2de23d7765a1dd439d89c038378978 and 9cc54d40b8ca01fcefc9151044b6996565061d90. The bug is still present in the last version of Linus' tree (65a6ec0d72a07f16719e9b7a96e1c4bae044b591) Let me know if I can provide more information. Regards, Kristof signature.asc Description: Digital signature
Re: [BUG] memory leak in dm
On 2007-10-16 15:23:46 (+0200), Jan-Simon M?ller [EMAIL PROTECTED] wrote: Am Dienstag 16 Oktober 2007 13:44:58 schrieb Jens Axboe: Please try with this patch from Neil. Tried the patch. Now its usable - as far as i can say. Compiled a fresh kernel to stress the system (make -j3). Without the patch the system had freezed after some minutes during compile. Same here. As far as I can tell it's fixed. Thanks, Kristof signature.asc Description: Digital signature
Re: No linux/module.h
On 2007-09-26 11:29:33 (+0100), mahamuni ashish <[EMAIL PROTECTED]> wrote: > I am writing simple kernel module. > I have included linux/module.h > compiler gives me error that no such file, I also > searched it on my machine. > It really doesn't exist. I am using fedora 6. > How do I install required libraries. I suspect you either have an incorrect makefile or you don't have the kernel source code on your system. The header file can be found in the kerel source: include/linux/module.h Regards, Kristof signature.asc Description: Digital signature
Re: No linux/module.h
On 2007-09-26 11:29:33 (+0100), mahamuni ashish [EMAIL PROTECTED] wrote: I am writing simple kernel module. I have included linux/module.h compiler gives me error that no such file, I also searched it on my machine. It really doesn't exist. I am using fedora 6. How do I install required libraries. I suspect you either have an incorrect makefile or you don't have the kernel source code on your system. The header file can be found in the kerel source: include/linux/module.h Regards, Kristof signature.asc Description: Digital signature
Re: Multi kernel tree support on the same distro?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > Hello All, > > I am looking to use multiple kernel trees on the same distro. Example:- > > 2.6.19.1 for - software/tools development > 2.4.34for - embedded systems development. > > I do know that 2.6 supports embedded in a big waybut still > requirement demands to work with such boards as an example:- > > http://www.embeddedarm.com/linux/ARM.htm > > My question is HOW-TO enable a distro with multi kernel trees? > Presently am using Fedora Core 5/6 for much of the development > activities (Cell BE SDK related at Labs). > > Any hints/suggestions would be a great leap for me to do this on my own. > > ~Akula2 I'm not sure I understood your problem correctly. I see no reason to have two kernel versions on your host system. You can keep 2.6.x on the host, and compile a 2.4.x for the target. You don't need to run 2.4.x on your host. The TS-Kernel the website talks about is meant to run on the embedded target. Kristof -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnWI5UEZ9DhGwDugRA/SCAKCgBfrAIreTa4k6IsmAi4Dr2jGa6wCfbTF7 CexlUWurRHI20hHsp+TsN5k= =0kdG -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/
Re: Multi kernel tree support on the same distro?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Hello All, I am looking to use multiple kernel trees on the same distro. Example:- 2.6.19.1 for - software/tools development 2.4.34for - embedded systems development. I do know that 2.6 supports embedded in a big waybut still requirement demands to work with such boards as an example:- http://www.embeddedarm.com/linux/ARM.htm My question is HOW-TO enable a distro with multi kernel trees? Presently am using Fedora Core 5/6 for much of the development activities (Cell BE SDK related at Labs). Any hints/suggestions would be a great leap for me to do this on my own. ~Akula2 I'm not sure I understood your problem correctly. I see no reason to have two kernel versions on your host system. You can keep 2.6.x on the host, and compile a 2.4.x for the target. You don't need to run 2.4.x on your host. The TS-Kernel the website talks about is meant to run on the embedded target. Kristof -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnWI5UEZ9DhGwDugRA/SCAKCgBfrAIreTa4k6IsmAi4Dr2jGa6wCfbTF7 CexlUWurRHI20hHsp+TsN5k= =0kdG -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/