My favorites
▼
|
Sign in
fscops
OHSM - Online Hierarchical Storage Manager
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
9
attachment: dev1.c
(20.3 KB)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
#include<linux/kernel.h>
#include<linux/module.h>
#include<linux/fs.h>
#include<asm/uaccess.h>
#include <linux/fs.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/ext2_fs.h>
#define MNTPNT_LEN 30
#define DEVICE_NAME "OHSM_TEST_MODULE_VER_3"
#define BUFF_LEN 80
#define SUCCESS 0
/* Variables */
unsigned int Major;
int Device_open = 0;
char msg[BUFF_LEN] = "Character Device for OHSM META DATA PRINTING";
char *msg_ptr;
char *uptr;
/* Defining Operations */
int init_module (void);
void cleanup_module (void);
/* Operations of our device */
static int device_open (struct inode *, struct file *);
static ssize_t device_read (struct file *, char *, size_t, loff_t *);
static ssize_t device_write (struct file *, const char *, size_t, loff_t *);
static int device_release (struct inode *, struct file *);
static int device_ioctl (struct inode *, struct file *, unsigned int,
unsigned long);
/* Registering our device's functions */
struct file_operations fops = {
.open = device_open,
.read = device_read,
.write = device_write,
.release = device_release,
.ioctl = device_ioctl,
};
MODULE_LICENSE ("GPL");
MODULE_AUTHOR ("Rishi Bhushan Agrawal");
/* Init Module */
int
init_module (void)
{
printk (KERN_ALERT "\nCHAR DEVICE OSHM META: INITILAIZED\n");
Major = register_chrdev (0, DEVICE_NAME, &fops);
if (Major < 0)
{
printk (KERN_INFO
"\nCHAR DEVICE OHSM META: Unable to initialize driver\n");
return Major;
}
printk (KERN_INFO "\nCHAR DEVICE OSHM META: OHSM_TEST_MODULE_VER_3 %d\n",
Major);
printk (KERN_INFO
"\nCHAR DEVICE OSHM META: Dont forget to remove module when done\n");
return SUCCESS;
}
/* exit module */
void
cleanup_module (void)
{
unregister_chrdev (Major, DEVICE_NAME);
printk (KERN_ALERT "\nCHAR DEVICE OSHM META: I AM OUT\n");
}
/* Let us now open our device */
static int
device_open (struct inode *in, struct file *fp)
{
//static int count = 0;
if (Device_open)
return -EBUSY;
Device_open++;
/*sprintf( msg, "I hav been opened %d times already\n", count++ ); */
msg_ptr = msg;
try_module_get (THIS_MODULE);
return SUCCESS;
}
/* Releasing our device */
static int
device_release (struct inode *in, struct file *fp)
{
Device_open--;
module_put (THIS_MODULE);
return SUCCESS;
}
/* Read device */
static ssize_t
device_read (struct file *fp, char *buff, size_t len, loff_t * offset)
{
int bytes_read = 0;
if (msg_ptr == 0)
return 0;
printk (KERN_INFO "CHAR DEVICE OSHM META: Reading");
while (len && *msg_ptr)
{
put_user (*(msg_ptr++), buff++);
len--;
bytes_read++;
}
return bytes_read;
}
/* Writing to device */
static ssize_t
device_write (struct file *fp, const char *buff, size_t len, loff_t * offset)
{
int bytes_written = 0;
if (*buff == 0)
return 0;
while (len && *buff)
{
*(msg_ptr++) = *(buff++);
len--;
bytes_written++;
}
return bytes_written;
}
/*
copied here for reference
struct infox
{
unsigned int inode_num;
char mntpnt[20];
struct ext2_super_block sb;
int error
};
*/
struct ext2_inode_info
{
__le32 i_data[15];
__u32 i_flags;
__u32 i_faddr;
__u8 i_frag_no;
__u8 i_frag_size;
__u16 i_state;
__u32 i_file_acl;
__u32 i_dir_acl;
__u32 i_dtime;
/*
* i_block_group is the number of the block group which contains
* this file's inode. Constant across the lifetime of the inode,
* it is ued for making block allocation decisions - we try to
* place a file's data blocks near its inode block, and new inodes
* near to their parent directory's inode.
*/
__u32 i_block_group;
/* block reservation info */
struct ext2_block_alloc_info *i_block_alloc_info;
__u32 i_dir_start_lookup;
#ifdef CONFIG_EXT2_FS_XATTR
/*
* Extended attributes can be read independently of the main file
* data. Taking i_mutex even when reading would cause contention
* between readers of EAs and writers of regular file data, so
* instead we synchronize on xattr_sem when reading or changing
* EAs.
*/
struct rw_semaphore xattr_sem;
#endif
#ifdef CONFIG_EXT2_FS_POSIX_ACL
struct posix_acl *i_acl;
struct posix_acl *i_default_acl;
#endif
rwlock_t i_meta_lock;
/*
* truncate_mutex is for serialising ext2_truncate() against
* ext2_getblock(). It also protects the internals of the inode's
* reservation data structures: ext2_reserve_window and
* ext2_reserve_window_node.
*/
struct mutex truncate_mutex;
struct inode vfs_inode;
struct list_head i_orphan; /* unlinked but open inodes */
};
struct infox
{
unsigned int inode_num;
char mntpnt[20];
struct ext2_super_block sb;
// struct ext2_inode_info icore_inode;
int error;
};
/**************************************************/
static inline struct ext2_inode_info *
EXT2_I (struct inode *inode)
{
return container_of (inode, struct ext2_inode_info, vfs_inode);
}
/*extern struct ext2_inode * rishi_ext_get_inode(struct super_block *, ino_t ,
struct buffer_head **);
*/
void
rishi4 (unsigned long arg)
{
struct ext2_super_block *disk_sb = NULL;
struct ext2_sb_info *incore_sb = NULL;
struct nameidata nd;
struct infox *input = (struct infox *) arg;
struct vfsmount *vfsmnt = NULL;
struct super_block *sb = NULL;
struct inode *ind = NULL;
// struct ext2_inode_info *incore_inode = NULL;
//struct buffer_head *bh = NULL;
//struct ext2_inode *disk_inode = NULL;
int retval = 0;
printk (KERN_ALERT "\n\n****Passed Structure Inode Number : %u",
(unsigned int) (input->inode_num));
printk (KERN_ALERT "\n\n****Passed Structure Mnt Point : %s",
input->mntpnt);
/*
* taking the input path and sendin to path_lookup function which returns the
*
* */
retval = path_lookup (input->mntpnt, LOOKUP_DIRECTORY, &nd);
printk (KERN_ALERT "\n\nThe path using dentry is : %s",
nd.path.dentry->d_name.name);
printk (KERN_ALERT " \n\n The return value is %d", retval);
printk (KERN_ALERT "\n\nThe Inode Number of the Path is : %lu",
nd.path.dentry->d_inode->i_ino);
if (nd.path.dentry == NULL)
{
printk (KERN_ALERT "\n\n mymod.c : the Pathname %s has no dentry",
input->mntpnt);
}
else
{
printk (KERN_ALERT "\n\n mymod.c : the Pathname %s has dentry",
input->mntpnt);
}
printk (KERN_ALERT "\n\nThe number of things mounted on it is %d",
nd.path.dentry->d_mounted);
printk (KERN_ALERT "\n\nThe file name is %s", nd.path.dentry->d_name.name);
if (nd.path.dentry->d_mounted != 0)
{
printk (KERN_ALERT
"\n\n mymod.c : The pathname %s has something mounted on it ",
input->mntpnt);
}
else
{
printk (KERN_ALERT
"\n\n mymod.c : The Pathname %s has nothing mounted on it ",
input->mntpnt);
}
vfsmnt = (struct vfsmount *) nd.path.mnt;
if (vfsmnt == NULL)
{
printk (KERN_ALERT "\nvfsmnt is NULL");
goto end;
}
printk (KERN_ALERT "\n\nThis is one field inside vfsmnt: %s",
vfsmnt->mnt_devname);
printk (KERN_ALERT "\n\nThis is some superblock field : %lu",
vfsmnt->mnt_sb->s_blocksize);
// incore_inode = EXT2_I (ind);
/* if (incore_inode == NULL)
{
printk (KERN_ALERT "\n\nWRONG IN LINE 318");
goto end;
}
*/
//printk (KERN_ALERT "\n\nBlocks Count %u", disk_inode->i_blocks);
ind = ilookup (vfsmnt->mnt_sb, input->inode_num);
if (ind == NULL)
{
printk (KERN_ALERT "\n\nSomething is wrong in Line Number 238 dev1.c");
input->error = 1;
//goto end;
}
else
{
printk (KERN_ALERT "\n\nThe inode no. of inode is : %lu", ind->i_ino);
}
printk (KERN_ALERT
"\n\n11111******************************************************\n\n");
/*till here working fine */
sb = vfsmnt->mnt_sb;
printk (KERN_ALERT
"\n\n22222******************************************************\n\n");
incore_sb = sb->s_fs_info;
printk (KERN_ALERT
"\n\n33333******************************************************\n\n");
if (incore_sb == NULL)
{
printk (KERN_ALERT "\n Something is wrong in EXT2_SB");
//goto end;
}
printk (KERN_ALERT
"\n\n4444******************************************************\n\n");
disk_sb = incore_sb->s_es;
printk (KERN_ALERT
"\n\n5555******************************************************\n\n");
if (disk_sb == NULL)
{
printk (KERN_ALERT "\n Something is wrong in EXT2_SB");
goto end;
}
printk (KERN_ALERT
"\n\n66666******************************************************\n\n");
/****************/
(input->sb).s_inodes_count = disk_sb->s_inodes_count; /* Inodes count */
(input->sb).s_blocks_count = disk_sb->s_blocks_count; /* Blocks count */
(input->sb).s_r_blocks_count = disk_sb->s_r_blocks_count; /* Reserved blocks count */
(input->sb).s_free_blocks_count = disk_sb->s_free_blocks_count; /* Free blocks count */
(input->sb).s_free_inodes_count = disk_sb->s_free_inodes_count;
//printk(KERN_ALERT "\n\nThe free inodes %u",disk_sb->s_free_inodes_count); /* Free inodes count */
(input->sb).s_first_data_block = disk_sb->s_first_data_block; /* First Data Block */
(input->sb).s_log_block_size = disk_sb->s_log_block_size; /* Block size */
(input->sb).s_log_frag_size = disk_sb->s_log_frag_size; /* Fragment size */
(input->sb).s_blocks_per_group = disk_sb->s_blocks_per_group; /* # Blocks per group */
(input->sb).s_frags_per_group = disk_sb->s_frags_per_group; /* # Fragments per group */
(input->sb).s_inodes_per_group = disk_sb->s_inodes_per_group; /* # Inodes per group */
(input->sb).s_mtime = disk_sb->s_mtime; /* Mount time */
(input->sb).s_wtime = disk_sb->s_wtime; /* Write time */
(input->sb).s_mnt_count = disk_sb->s_mnt_count; /* Mount count */
(input->sb).s_max_mnt_count = disk_sb->s_max_mnt_count; /* Maximal mount count */
(input->sb).s_magic = disk_sb->s_magic; /* Magic signature */
(input->sb).s_state = disk_sb->s_state; /* File system state */
(input->sb).s_errors = disk_sb->s_errors; /* Behaviour when detecting errors */
(input->sb).s_minor_rev_level = disk_sb->s_minor_rev_level; /* minor revision level */
(input->sb).s_lastcheck = disk_sb->s_lastcheck; /* time of last check */
(input->sb).s_checkinterval = disk_sb->s_checkinterval; /* max. time between checks */
(input->sb).s_creator_os = disk_sb->s_creator_os; /* OS */
(input->sb).s_rev_level = disk_sb->s_rev_level; /* Revision level */
(input->sb).s_def_resuid = disk_sb->s_def_resuid; /* Default uid for reserved blocks */
(input->sb).s_def_resgid = disk_sb->s_def_resgid; /* Default gid for reserved blocks */
/*
* These fields are for EXT2_DYNAMIC_REV superblocks only.
*
* Note: the difference between the compatible feature set and
* the incompatible feature set is that if there is a bit set
* in the incompatible feature set that the kernel doesn't
* know about, it should refuse to mount the filesystem.
*
* e2fsck's requirements are more strict; if it doesn't know
* about a feature in either the compatible or incompatible
* feature set, it must abort and not try to meddle with
* things it doesn't understand...
*/
(input->sb).s_first_ino = disk_sb->s_first_ino; /* First non-reserved inode */
(input->sb).s_inode_size = disk_sb->s_inode_size; /* size of inode structure */
(input->sb).s_block_group_nr = disk_sb->s_block_group_nr; /* block group # of this superblock */
(input->sb).s_feature_compat = disk_sb->s_feature_compat; /* compatible feature set */
(input->sb).s_feature_incompat = disk_sb->s_feature_incompat; /* incompatible feature set */
(input->sb).s_feature_ro_compat = disk_sb->s_feature_ro_compat; /* readonly-compatible feature set */
//(input->sb).s_uuid[16] = disk_sb->; /* 128-bit uuid for volume */
//(input->sb).s_volume_name[16] = disk_sb->; /* volume name */
//(input->sb).s_last_mounted[64] = disk_sb->; /* directory where last mounted */
//(input->sb).s_algorithm_usage_bitmap = disk_sb->; /* For compression */
/*
* Performance hints. Directory preallocation should only
* happen if the EXT2_COMPAT_PREALLOC flag is on.
*/
//(input->sb).s_prealloc_blocks = disk_sb->; /* Nr of blocks to try to preallocate*/
//(input->sb).s_prealloc_dir_blocks = disk_sb->; /* Nr to preallocate for dirs */
//(input->sb).s_padding1 = disk_sb->;
/*
* Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set.
*/
//(input->sb).s_journal_uuid[16] = disk_sb->; /* uuid of journal superblock */
//(input->sb).s_journal_inum = disk_sb->; /* inode number of journal file */
//(input->sb).s_journal_dev = disk_sb->; /* device number of journal file */
//(input->sb).s_last_orphan = disk_sb->; /* start of list of inodes to delete */
//(input->sb).s_hash_seed[4] = disk_sb->; /* HTREE hash seed */
//(input->sb).s_def_hash_version = disk_sb->; /* Default hash version to use */
//(input->sb).s_reserved_char_pad = disk_sb->;
//(input->sb).s_reserved_word_pad = disk_sb->;
//(input->sb).s_default_mount_opts = disk_sb->;
//(input->sb).s_first_meta_bg = disk_sb->; /* First metablock block group */
//(input->sb).s_reserved[190] = disk_sb->; /* Padding to the end of the block */
/****************/
printk (KERN_ALERT
"\n\n777777******************************************************\n\n");
end:
printk (KERN_ALERT
"\n\n88888******************************************************\n\n");
return;
}
void ohsm_read_super(unsigned int);
static int
device_ioctl (struct inode *in, struct file *fp, unsigned int cmd,
unsigned long arg)
{
printk (KERN_ALERT "\n\nCHAR DEVICE OSHM META: ioctl called ");
switch (cmd)
{
case 1:
/*
user enters the mount point only
print the superblock information only
*/
ohsm_read_super (arg);
break;
case 2:
break;
case 3:
break;
case 4:
break;
}
return 0;
}
struct print_super_info
{
char mntpnt[MNTPNT_LEN];
struct ext2_super_block sb;
int error;
};
void
fill_the_super_block (struct ext2_super_block *dest,
struct ext2_super_block *disk_sb);
void
ohsm_read_super (unsigned int arg)
{
struct print_super_info *ptr = (struct print_super_info *) arg;
struct nameidata nd;
struct vfsmount *vfsmnt = NULL;
struct super_block *sb = NULL;
struct ext2_super_block *disk_sb = NULL;
struct ext2_sb_info *incore_sb = NULL;
int retval;
retval = path_lookup (ptr->mntpnt, LOOKUP_DIRECTORY, &nd);
vfsmnt = (struct vfsmount *) nd.path.mnt;
if (vfsmnt == NULL)
{
printk (KERN_ALERT "\nvfsmnt is NULL");
}
printk (KERN_ALERT "\n\nThis is one field inside vfsmnt: %s",
vfsmnt->mnt_devname);
printk (KERN_ALERT "\n\nThis is some superblock field : %lu",
vfsmnt->mnt_sb->s_blocksize);
printk (KERN_ALERT
"\n\n11111******************************************************\n\n");
sb = vfsmnt->mnt_sb;
printk (KERN_ALERT
"\n\n22222******************************************************\n\n");
incore_sb = sb->s_fs_info;
printk (KERN_ALERT
"\n\n33333******************************************************\n\n");
if (incore_sb == NULL)
{
printk (KERN_ALERT "\n Something is wrong in EXT2_SB");
//goto end;
}
printk (KERN_ALERT
"\n\n4444******************************************************\n\n");
disk_sb = incore_sb->s_es;
printk (KERN_ALERT
"\n\n5555******************************************************\n\n");
if (disk_sb == NULL)
{
printk (KERN_ALERT "\n Something is wrong in EXT2_SB");
}
printk (KERN_ALERT
"\n\n66666******************************************************\n\n");
fill_the_super_block (&(ptr->sb), disk_sb);
return;
}
void
fill_the_super_block (struct ext2_super_block *dest,
struct ext2_super_block *disk_sb)
{
dest->s_inodes_count = disk_sb->s_inodes_count; /* Inodes count */
dest->s_blocks_count = disk_sb->s_blocks_count; /* Blocks count */
dest->s_r_blocks_count = disk_sb->s_r_blocks_count; /* Reserved blocks count */
dest->s_free_blocks_count = disk_sb->s_free_blocks_count; /* Free blocks count */
dest->s_free_inodes_count = disk_sb->s_free_inodes_count;
//printk(KERN_ALERT "\n\nThe free inodes %u",disk_sb->s_free_inodes_count); /* Free inodes count */
dest->s_first_data_block = disk_sb->s_first_data_block; /* First Data Block */
dest->s_log_block_size = disk_sb->s_log_block_size; /* Block size */
dest->s_log_frag_size = disk_sb->s_log_frag_size; /* Fragment size */
dest->s_blocks_per_group = disk_sb->s_blocks_per_group; /* # Blocks per group */
dest->s_frags_per_group = disk_sb->s_frags_per_group; /* # Fragments per group */
dest->s_inodes_per_group = disk_sb->s_inodes_per_group; /* # Inodes per group */
dest->s_mtime = disk_sb->s_mtime; /* Mount time */
dest->s_wtime = disk_sb->s_wtime; /* Write time */
dest->s_mnt_count = disk_sb->s_mnt_count; /* Mount count */
dest->s_max_mnt_count = disk_sb->s_max_mnt_count; /* Maximal mount count */
dest->s_magic = disk_sb->s_magic; /* Magic signature */
dest->s_state = disk_sb->s_state; /* File system state */
dest->s_errors = disk_sb->s_errors; /* Behaviour when detecting errors */
dest->s_minor_rev_level = disk_sb->s_minor_rev_level; /* minor revision level */
dest->s_lastcheck = disk_sb->s_lastcheck; /* time of last check */
dest->s_checkinterval = disk_sb->s_checkinterval; /* max. time between checks */
dest->s_creator_os = disk_sb->s_creator_os; /* OS */
dest->s_rev_level = disk_sb->s_rev_level; /* Revision level */
dest->s_def_resuid = disk_sb->s_def_resuid; /* Default uid for reserved blocks */
dest->s_def_resgid = disk_sb->s_def_resgid; /* Default gid for reserved blocks */
/*
* These fields are for EXT2_DYNAMIC_REV superblocks only.
*
* Note: the difference between the compatible feature set and
* the incompatible feature set is that if there is a bit set
* in the incompatible feature set that the kernel doesn't
* know about, it should refuse to mount the filesystem.
*
* e2fsck's requirements are more strict; if it doesn't know
* about a feature in either the compatible or incompatible
* feature set, it must abort and not try to meddle with
* things it doesn't understand...
*/
dest->s_first_ino = disk_sb->s_first_ino; /* First non-reserved inode */
dest->s_inode_size = disk_sb->s_inode_size; /* size of inode structure */
dest->s_block_group_nr = disk_sb->s_block_group_nr; /* block group # of this superblock */
dest->s_feature_compat = disk_sb->s_feature_compat; /* compatible feature set */
dest->s_feature_incompat = disk_sb->s_feature_incompat; /* incompatible feature set */
dest->s_feature_ro_compat = disk_sb->s_feature_ro_compat; /* readonly-compatible feature set */
//(input->sb).s_uuid[16] = disk_sb->; /* 128-bit uuid for volume */
//(input->sb).s_volume_name[16] = disk_sb->; /* volume name */
//(input->sb).s_last_mounted[64] = disk_sb->; /* directory where last mounted */
//(input->sb).s_algorithm_usage_bitmap = disk_sb->; /* For compression */
/*
* Performance hints. Directory preallocation should only
* happen if the EXT2_COMPAT_PREALLOC flag is on.
*/
//(input->sb).s_prealloc_blocks = disk_sb->; /* Nr of blocks to try to preallocate*/
//(input->sb).s_prealloc_dir_blocks = disk_sb->; /* Nr to preallocate for dirs */
//(input->sb).s_padding1 = disk_sb->;
/*
* Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set.
*/
//(input->sb).s_journal_uuid[16] = disk_sb->; /* uuid of journal superblock */
//(input->sb).s_journal_inum = disk_sb->; /* inode number of journal file */
//(input->sb).s_journal_dev = disk_sb->; /* device number of journal file */
//(input->sb).s_last_orphan = disk_sb->; /* start of list of inodes to delete */
//(input->sb).s_hash_seed[4] = disk_sb->; /* HTREE hash seed */
//(input->sb).s_def_hash_version = disk_sb->; /* Default hash version to use */
//(input->sb).s_reserved_char_pad = disk_sb->;
//(input->sb).s_reserved_word_pad = disk_sb->;
//(input->sb).s_default_mount_opts = disk_sb->;
//(input->sb).s_first_meta_bg = disk_sb->; /* First metablock block group */
//(input->sb).s_reserved[190] = disk_sb->; /* Padding to the end of the block */
/****************/
printk (KERN_ALERT
"\n\n777777******************************************************\n\n");
printk (KERN_ALERT
"\n\n88888******************************************************\n\n");
return;
}
Powered by
Google Project Hosting