search for: kdev_t

Displaying 18 results from an estimated 18 matches for "kdev_t".

Did you mean: dev_t
2004 Oct 13
0
Linux device number extension patch
Hello, I have a question about device number extension in "e2fsprogs-1.35". In Linux kernel 2.6, device number is extended from 16-bit to 32-bit. All utilities and libraries should make corresponding extension for this new feature in kernel 2.6. Following operation defines type "kdev_t" as "unsigned short" type, thus the device number has only 16-bit. In file lib/ext2fs/jfs_user.h: 4 typedef unsigned short kdev_t; In file misc/jfs_user.h: 4 typedef unsigned short kdev_t; In file debugfs/jfs_user.h: 4 typedef unsigned short kdev_t; It seem...
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
The difference between kdev_t and dev_t in 2.4 is rather theoretical, no need to clutter up the source for it. Index: src/inode.c =================================================================== --- src/inode.c (revision 969) +++ src/inode.c (working copy) @@ -1877,11 +1872,8 @@ case OCFS_ATTRIB_FIFO: case OCFS_ATTRI...
2002 Dec 06
2
[patch] fix the ext3 data=journal unmount bug
...) lock_super(sb); if (sb->s_dirt && sb->s_op && sb->s_op->write_super) sb->s_op->write_super(sb); + if (sb->s_op && sb->s_op->sync_fs) + sb->s_op->sync_fs(sb); unlock_super(sb); unlock_kernel(); @@ -346,7 +348,7 @@ int fsync_dev(kdev_t dev) lock_kernel(); sync_inodes(dev); DQUOT_SYNC(dev); - sync_supers(dev); + sync_supers(dev, 1); unlock_kernel(); return sync_buffers(dev, 1); @@ -2833,7 +2835,7 @@ static int sync_old_buffers(void) { lock_kernel(); sync_unlocked_inodes(); - sync_supers(0); + sync_supers(0, 0);...
2004 Jun 06
1
[PATCH] use sb_getblk
...+++ src/inc/ocfs.h (working copy) @@ -542,21 +542,16 @@ #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) -typedef struct block_device * ocfs_blockdev; typedef dev_t ocfs_dev; #define OCFS_NODEV 0 -#define OCFS_GET_BLOCKDEV(sb) ((sb)->s_bdev) #else /* 2.4 kernel */ -typedef kdev_t ocfs_blockdev; typedef int ocfs_dev; #define OCFS_NODEV NODEV -#define OCFS_GET_BLOCKDEV(sb) ((sb)->s_dev) #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) /* No longer exists in 2.5 */ #define fsync_inode_buffers(inode) sync_mapping_buffers(inode->i_mapping) -#define g...
2007 Oct 02
3
[PATCH] SIGTERM and SIGINT handler to flush xentop -b outputs
...;inakoshi.hiroya@jp.fujitsu.com> diff -r 83239b289072 -r 5543e74774a8 tools/xenstat/xentop/xentop.c --- a/tools/xenstat/xentop/xentop.c Thu Sep 27 16:29:43 2007 -0600 +++ b/tools/xenstat/xentop/xentop.c Tue Oct 02 09:09:55 2007 +0800 @@ -31,6 +31,7 @@ #if defined(__linux__) #include <linux/kdev_t.h> #endif +#include <signal.h> #include <xenstat.h> @@ -1011,6 +1012,13 @@ static void top(void) free(domains); } + +void a_sig_handler(int n) +{ + fflush(stdout); + exit(0); +} + int main(int argc, char **argv) { int opt, optind = 0; @@ -1102,6 +1110,8 @@ int main(int ar...
2002 Dec 15
2
problem with Andrew's patch ext3
Hello Andrew, I patched 2.4.20 with your patch found out on http://lwn.net/Articles/17447/ and I have a big problem with: once server is booted on 2.4.20 with your patch, when I want to reboot with /sbin/reboot, server makes a Segmentation fault and it crashs. I tested it on 50-60 servers and it is the same problem. I tested kernel 2.4.20 without your patch: no problem. # uname -a Linux XXXXXX
2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...he shell wildcard may be used. + .SH AVAILABILITY .B btrfs is part of btrfs-progs. Btrfs filesystem is currently under heavy development, diff --git a/utils.c b/utils.c index fd894f3..6112137 100644 --- a/utils.c +++ b/utils.c @@ -35,6 +35,8 @@ #include <linux/major.h> #include <linux/kdev_t.h> #include <limits.h> +#include <ctype.h> +#include <fnmatch.h> #include "kerncompat.h" #include "radix-tree.h" #include "ctree.h" @@ -833,7 +835,185 @@ void btrfs_register_one_device(char *fname) close(fd); } -int btrfs_scan_one_dir(char...
2002 May 07
0
Re: SAMBA compile errors at XFS kernel.. (fwd)
...waitqueue for quota to be unused */ int dq_count; /* Use count */ int dq_dup_ref; /* Number of duplicated refences */ /* fields after this point are cleared when invalidating */ struct super_block *dq_sb; /* superblock this applies to */ qid_t dq_id; /* ID this applies to (uid, gid) */ kdev_t dq_dev; /* Device this applies to */ short dq_type; /* Type of quota */ short dq_flags; /* See DQ_* */ loff_t dq_off; /* Offset of structure in file (0 for not allocated) */ unsigned long dq_referenced; /* Number of times this dquot was referenced during its lifetime */ struct...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...OCADDBUF _IOW(VIOTEST_MAGIC, 2, struct viotest_uaddbuf) +#define VIOTEST_IOCKICK _IOW(VIOTEST_MAGIC, 3, __u32) +#define VIOTEST_IOCGETBUF _IOWR(VIOTEST_MAGIC, 4, struct viotest_getbuf) +#define VIOTEST_IOCGETCBS _IOWR(VIOTEST_MAGIC, 5, struct viotest_cbinfo) + +#ifdef __KERNEL__ +#include <linux/kdev_t.h> +#include <linux/list.h> +#include <linux/spinlock.h> +#include <linux/virtio_config.h> +#include <asm/atomic.h> + +#define VIOTEST_MAJOR 0 +#define DEV_NAME_MAX 32 + +#define CLEANUP_PENDING 1 << 0 + +struct viotest_callback { + __u32 received; /*count of recie...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...OCADDBUF _IOW(VIOTEST_MAGIC, 2, struct viotest_uaddbuf) +#define VIOTEST_IOCKICK _IOW(VIOTEST_MAGIC, 3, __u32) +#define VIOTEST_IOCGETBUF _IOWR(VIOTEST_MAGIC, 4, struct viotest_getbuf) +#define VIOTEST_IOCGETCBS _IOWR(VIOTEST_MAGIC, 5, struct viotest_cbinfo) + +#ifdef __KERNEL__ +#include <linux/kdev_t.h> +#include <linux/list.h> +#include <linux/spinlock.h> +#include <linux/virtio_config.h> +#include <asm/atomic.h> + +#define VIOTEST_MAJOR 0 +#define DEV_NAME_MAX 32 + +#define CLEANUP_PENDING 1 << 0 + +struct viotest_callback { + __u32 received; /*count of recie...
2020 Sep 01
10
remove revalidate_disk()
Hi Jens, this series removes the revalidate_disk() function, which has been a really odd duck in the last years. The prime reason why most people use it is because it propagates a size change from the gendisk to the block_device structure. But it also calls into the rather ill defined ->revalidate_disk method which is rather useless for the callers. So this adds a new helper to just
2013 Nov 16
16
[PATCH] BTRFS-PROG: recursively subvolume snapshot and delete
Hi All, the following patches implement the recursively snapshotting and deleting of a subvolume. To snapshot recursively you must pass the -R switch: # btrfs subvolume create sub1 Create subvolume ''./sub1'' # btrfs subvolume create sub1/sub2 Create subvolume ''sub1/sub2'' # btrfs subvolume snapshot -R sub1 sub1-snap Create a snapshot of
2007 Aug 19
1
[PATCH 1/5] um/... convert #include "linux/..." to #include <linux/...>
...+++ b/arch/um/drivers/stdio_console.c @@ -3,22 +3,22 @@ * Licensed under the GPL */ -#include "linux/posix_types.h" -#include "linux/tty.h" -#include "linux/tty_flip.h" -#include "linux/types.h" -#include "linux/major.h" -#include "linux/kdev_t.h" -#include "linux/console.h" -#include "linux/string.h" -#include "linux/sched.h" -#include "linux/list.h" -#include "linux/init.h" -#include "linux/interrupt.h" -#include "linux/slab.h" -#include "linux/hardirq.h&quo...
2007 Aug 19
1
[PATCH 1/5] um/... convert #include "linux/..." to #include <linux/...>
...+++ b/arch/um/drivers/stdio_console.c @@ -3,22 +3,22 @@ * Licensed under the GPL */ -#include "linux/posix_types.h" -#include "linux/tty.h" -#include "linux/tty_flip.h" -#include "linux/types.h" -#include "linux/major.h" -#include "linux/kdev_t.h" -#include "linux/console.h" -#include "linux/string.h" -#include "linux/sched.h" -#include "linux/list.h" -#include "linux/init.h" -#include "linux/interrupt.h" -#include "linux/slab.h" -#include "linux/hardirq.h&quo...
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic